Skip to content

Commit

Permalink
Update fixtures
Browse files Browse the repository at this point in the history
From json-schema-test-suite update.
  • Loading branch information
davishmcclurg committed Nov 16, 2023
1 parent 052cb8b commit a47f148
Show file tree
Hide file tree
Showing 5 changed files with 663 additions and 36 deletions.
206 changes: 206 additions & 0 deletions test/fixtures/draft2019-09.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,43 @@
}
]
],
[
[
{
"data": "bar",
"data_pointer": "/1",
"schema": false,
"schema_pointer": "/additionalItems",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"items": [
{
}
],
"additionalItems": false
},
"type": "schema"
},
{
"data": 37,
"data_pointer": "/2",
"schema": false,
"schema_pointer": "/additionalItems",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"items": [
{
}
],
"additionalItems": false
},
"type": "schema"
}
],
[

]
],
[
[

Expand Down Expand Up @@ -4210,6 +4247,7 @@
"schema": false,
"schema_pointer": "/dependentSchemas/foo/additionalProperties",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"properties": {
"foo": {
}
Expand Down Expand Up @@ -4237,6 +4275,7 @@
"schema": false,
"schema_pointer": "/dependentSchemas/foo/additionalProperties",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"properties": {
"foo": {
}
Expand Down Expand Up @@ -12021,6 +12060,21 @@
},
"type": "format"
}
],
[

],
[

],
[

],
[

],
[

]
]
],
Expand Down Expand Up @@ -12615,6 +12669,21 @@
],
[

],
[

],
[

],
[

],
[

],
[

]
]
],
Expand Down Expand Up @@ -12755,6 +12824,22 @@
},
"type": "format"
}
],
[
{
"data": "192.168.1.0/24",
"data_pointer": "",
"schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"format": "ipv4"
},
"schema_pointer": "",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"format": "ipv4"
},
"type": "format"
}
]
]
],
Expand Down Expand Up @@ -14983,6 +15068,32 @@
"type": "integer"
}
]
],
[
[

],
[
{
"data": 42,
"data_pointer": "",
"schema": {
"type": "string"
},
"schema_pointer": "/examples/0",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "/base",
"examples": [
{
"type": "string"
}
],
"$ref": "#/examples/0"
},
"type": "string"
}
]
]
],
"JSON-Schema-Test-Suite/tests/draft2019-09/pattern.json": [
Expand Down Expand Up @@ -19119,6 +19230,7 @@
},
"schema_pointer": "/$defs/foo/$defs/bar",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$ref": "urn:uuid:deadbeef-4321-ffff-ffff-1234feebdaed",
"$defs": {
"foo": {
Expand Down Expand Up @@ -19147,6 +19259,7 @@
},
"schema_pointer": "/if",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$ref": "http://example.com/ref/if",
"if": {
"$id": "http://example.com/ref/if",
Expand All @@ -19171,6 +19284,7 @@
},
"schema_pointer": "/then",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$ref": "http://example.com/ref/then",
"then": {
"$id": "http://example.com/ref/then",
Expand All @@ -19195,6 +19309,7 @@
},
"schema_pointer": "/else",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$ref": "http://example.com/ref/else",
"else": {
"$id": "http://example.com/ref/else",
Expand Down Expand Up @@ -19222,6 +19337,7 @@
},
"schema_pointer": "/$defs/b",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "http://example.com/ref/absref.json",
"$defs": {
"a": {
Expand Down Expand Up @@ -19252,6 +19368,7 @@
},
"schema_pointer": "/$defs/foo",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "file:///folder/file.json",
"$defs": {
"foo": {
Expand All @@ -19277,6 +19394,7 @@
},
"schema_pointer": "/$defs/foo",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "file:///c:/folder/file.json",
"$defs": {
"foo": {
Expand All @@ -19302,6 +19420,7 @@
},
"schema_pointer": "/$defs//$defs/",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$defs": {
"": {
"$defs": {
Expand Down Expand Up @@ -21655,6 +21774,50 @@
}
]
],
[
[

],
[
{
"data": "too many",
"data_pointer": "/1/3",
"schema": false,
"schema_pointer": "/$defs/tree/items/1/unevaluatedItems",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://example.com/extended-tree",
"$recursiveAnchor": true,
"$ref": "/tree",
"items": [
true,
true,
{
"type": "string"
}
],
"$defs": {
"tree": {
"$id": "/tree",
"$recursiveAnchor": true,
"type": "array",
"items": [
{
"type": "number"
},
{
"$comment": "unevaluatedItems comes first so it's more likely to catch bugs with implementations that are sensitive to keyword ordering",
"unevaluatedItems": false,
"$recursiveRef": "#"
}
]
}
}
},
"type": "schema"
}
]
],
[
[
{
Expand Down Expand Up @@ -22625,6 +22788,49 @@
}
]
],
[
[

],
[
{
"data": "b",
"data_pointer": "/branches/foo",
"schema": false,
"schema_pointer": "/$defs/tree/properties/branches/unevaluatedProperties",
"root_schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://example.com/extended-tree",
"$recursiveAnchor": true,
"$ref": "/tree",
"properties": {
"name": {
"type": "string"
}
},
"$defs": {
"tree": {
"$id": "/tree",
"$recursiveAnchor": true,
"type": "object",
"properties": {
"node": true,
"branches": {
"$comment": "unevaluatedProperties comes first so it's more likely to bugs errors with implementations that are sensitive to keyword ordering",
"unevaluatedProperties": false,
"$recursiveRef": "#"
}
},
"required": [
"node"
]
}
}
},
"type": "schema"
}
]
],
[
[
{
Expand Down
Loading

0 comments on commit a47f148

Please sign in to comment.