forked from patefacio/json_schema
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from jonasfj/add-fix-data
Add `lib/fix_data.yaml` for automatic migration with `dart fix`.
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 1 | ||
transforms: | ||
- title: Rename to validate | ||
date: 2024-10-15 | ||
element: | ||
uris: | ||
- json_schema.dart | ||
method: validateWithResults | ||
inClass: Validator | ||
changes: | ||
- kind: rename | ||
newName: validate | ||
- title: Rename to validate | ||
date: 2024-10-15 | ||
element: | ||
uris: | ||
- json_schema.dart | ||
method: validateWithResults | ||
inClass: JsonSchema | ||
changes: | ||
- kind: rename | ||
newName: validate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import 'package:json_schema/json_schema.dart'; | ||
|
||
void main() { | ||
final schema = JsonSchema.empty(); | ||
schema.validateWithResults(null); | ||
final validator = Validator(schema); | ||
validator.validateWithResults(null); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import 'package:json_schema/json_schema.dart'; | ||
|
||
void main() { | ||
final schema = JsonSchema.empty(); | ||
schema.validate(null); | ||
final validator = Validator(schema); | ||
validator.validate(null); | ||
} |