-
-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'json/' changes from 54440eab4..ba3a90534
ba3a90534 Merge pull request #523 from olegshtch/extendible-schema-test-suite 458e7ac1e Add test suite to test dynamic reference and anchor link and their independency of order fe405a119 draft/future -> draft/next in $refs also 3d9d35a2a Merge pull request #522 from json-schema-org/ether/draft-next 11b5076f0 rename draft-future to draft-next 0245dcc94 Merge pull request #521 from olegshtch/add-recursive-ref-test-suite e9fb9cf45 Merge pull request #517 from ChALkeR/chalker/date-time-leap f1b230c69 Add test from Appendix C. Example of recursive schema extension of the draft. bb2e37317 Test date-time with leap second on a wrong hour/minute 8b797cfe6 Merge pull request #520 from json-schema-org/ether/custom-dialect 5d23f3112 Add tests for invalid date-time past leap second 63f8e93c1 Improve leap seconds test in optional/format/date-time 3d00f593d test the use of the $vocabulary keyword in a custom metaschema git-subtree-dir: json git-subtree-split: ba3a9053400dd6237aef9cc63601758b1d266818
- Loading branch information
Showing
85 changed files
with
680 additions
and
22 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$id": "http://localhost:1234/draft2019-09/metaschema-no-validation.json", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2019-09/vocab/applicator": true, | ||
"https://json-schema.org/draft/2019-09/vocab/core": true | ||
}, | ||
"allOf": [ | ||
{ "$ref": "https://json-schema.org/draft/2019-09/meta/applicator" }, | ||
{ "$ref": "https://json-schema.org/draft/2019-09/meta/core" } | ||
] | ||
} |
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,11 @@ | ||
{ | ||
"$id": "http://localhost:1234/draft2020-12/metaschema-no-validation.json", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2020-12/vocab/applicator": true, | ||
"https://json-schema.org/draft/2020-12/vocab/core": true | ||
}, | ||
"allOf": [ | ||
{ "$ref": "https://json-schema.org/draft/2020-12/meta/applicator" }, | ||
{ "$ref": "https://json-schema.org/draft/2020-12/meta/core" } | ||
] | ||
} |
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,20 @@ | ||
{ | ||
"description": "extendible array", | ||
"$id": "http://localhost:1234/extendible-dynamic-ref.json", | ||
"type": "object", | ||
"properties": { | ||
"elements": { | ||
"type": "array", | ||
"items": { | ||
"$dynamicRef": "#elements" | ||
} | ||
} | ||
}, | ||
"required": ["elements"], | ||
"additionalProperties": false, | ||
"$defs": { | ||
"elements": { | ||
"$dynamicAnchor": "elements" | ||
} | ||
} | ||
} |
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,16 @@ | ||
{ | ||
"description": "tree schema, extensible", | ||
"$id": "http://localhost:1234/tree.json", | ||
"$dynamicAnchor": "node", | ||
|
||
"type": "object", | ||
"properties": { | ||
"data": true, | ||
"children": { | ||
"type": "array", | ||
"items": { | ||
"$dynamicRef": "#node" | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,34 @@ | ||
[ | ||
{ | ||
"description": "schema that uses custom metaschema with with no validation vocabulary", | ||
"schema": { | ||
"$id": "https://schema/using/no/validation", | ||
"$schema": "http://localhost:1234/draft2020-12/metaschema-no-validation.json", | ||
"properties": { | ||
"badProperty": false, | ||
"numberProperty": { | ||
"minimum": 10 | ||
} | ||
} | ||
}, | ||
"tests": [ | ||
{ | ||
"description": "applicator vocabulary still works", | ||
"data": { | ||
"badProperty": "this property should not exist" | ||
}, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "no validation: valid number", | ||
"data": 20, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "no validation: invalid number, but it still validates", | ||
"data": 1, | ||
"valid": true | ||
} | ||
] | ||
} | ||
] |
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
Oops, something went wrong.