Skip to content
Open
17 changes: 0 additions & 17 deletions tests/draft2019-09/additionalItems.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,23 +127,6 @@
}
]
},
{
"description": "additionalItems does not look in applicators, valid case",
"schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"allOf": [
{ "items": [ { "type": "integer" } ] }
],
"additionalItems": { "type": "boolean" }
},
"tests": [
{
"description": "items defined in allOf are not examined",
"data": [ 1, null ],
"valid": true
}
]
},
{
"description": "additionalItems does not look in applicators, invalid case",
"schema": {
Expand Down
18 changes: 0 additions & 18 deletions tests/draft2020-12/additionalProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"description":
"additionalProperties being false does not allow other properties",
"specification": [ { "core":"10.3.2.3", "quote": "The value of \"additionalProperties\" MUST be a valid JSON Schema. Boolean \"false\" forbids everything." } ],

Check notice on line 5 in tests/draft2020-12/additionalProperties.json

View workflow job for this annotation

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {"foo": {}, "bar": {}},
Expand Down Expand Up @@ -44,7 +44,7 @@
},
{
"description": "non-ASCII pattern with additionalProperties",
"specification": [ { "core":"10.3.2.3"} ],

Check notice on line 47 in tests/draft2020-12/additionalProperties.json

View workflow job for this annotation

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"patternProperties": {"^á": {}},
Expand All @@ -65,7 +65,7 @@
},
{
"description": "additionalProperties with schema",
"specification": [ { "core":"10.3.2.3", "quote": "The value of \"additionalProperties\" MUST be a valid JSON Schema." } ],

Check notice on line 68 in tests/draft2020-12/additionalProperties.json

View workflow job for this annotation

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {"foo": {}, "bar": {}},
Expand All @@ -91,7 +91,7 @@
},
{
"description": "additionalProperties can exist by itself",
"specification": [ { "core":"10.3.2.3", "quote": "With no other applicator applying to object instances. This validates all the instance values irrespective of their property names" } ],

Check notice on line 94 in tests/draft2020-12/additionalProperties.json

View workflow job for this annotation

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": {"type": "boolean"}
Expand All @@ -111,7 +111,7 @@
},
{
"description": "additionalProperties are allowed by default",
"specification": [ { "core":"10.3.2.3", "quote": "Omitting this keyword has the same assertion behavior as an empty schema." } ],

Check notice on line 114 in tests/draft2020-12/additionalProperties.json

View workflow job for this annotation

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {"foo": {}, "bar": {}}
Expand All @@ -124,27 +124,9 @@
}
]
},
{
"description": "additionalProperties does not look in applicators",
"specification":[ { "core": "10.2", "quote": "Subschemas of applicator keywords evaluate the instance completely independently such that the results of one such subschema MUST NOT impact the results of sibling subschemas." } ],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"allOf": [
{"properties": {"foo": {}}}
],
"additionalProperties": {"type": "boolean"}
},
"tests": [
{
"description": "properties defined in allOf are not examined",
"data": {"foo": 1, "bar": true},
"valid": false
}
]
},
{
"description": "additionalProperties with null valued instance properties",
"specification": [ { "core":"10.3.2.3" } ],

Check notice on line 129 in tests/draft2020-12/additionalProperties.json

View workflow job for this annotation

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": {
Expand Down
16 changes: 0 additions & 16 deletions tests/draft3/additionalItems.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,6 @@
}
]
},
{
"description": "additionalItems does not look in applicators",
"schema": {
"extends": [
{ "items": [ { "type": "integer" } ] }
],
"additionalItems": { "type": "boolean" }
},
"tests": [
{
"description": "items defined in extends are not examined",
"data": [ 1, null ],
"valid": true
}
]
},
{
"description": "additionalItems with heterogeneous array",
"schema": {
Expand Down
16 changes: 0 additions & 16 deletions tests/draft4/additionalItems.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,6 @@
}
]
},
{
"description": "additionalItems does not look in applicators, valid case",
"schema": {
"allOf": [
{ "items": [ { "type": "integer" } ] }
],
"additionalItems": { "type": "boolean" }
},
"tests": [
{
"description": "items defined in allOf are not examined",
"data": [ 1, null ],
"valid": true
}
]
},
{
"description": "additionalItems does not look in applicators, invalid case",
"schema": {
Expand Down
16 changes: 0 additions & 16 deletions tests/draft6/additionalItems.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,6 @@
}
]
},
{
"description": "additionalItems does not look in applicators, valid case",
"schema": {
"allOf": [
{ "items": [ { "type": "integer" } ] }
],
"additionalItems": { "type": "boolean" }
},
"tests": [
{
"description": "items defined in allOf are not examined",
"data": [ 1, null ],
"valid": true
}
]
},
{
"description": "additionalItems does not look in applicators, invalid case",
"schema": {
Expand Down
16 changes: 0 additions & 16 deletions tests/draft7/additionalItems.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,6 @@
}
]
},
{
"description": "additionalItems does not look in applicators, valid case",
"schema": {
"allOf": [
{ "items": [ { "type": "integer" } ] }
],
"additionalItems": { "type": "boolean" }
},
"tests": [
{
"description": "items defined in allOf are not examined",
"data": [ 1, null ],
"valid": true
}
]
},
{
"description": "additionalItems does not look in applicators, invalid case",
"schema": {
Expand Down
17 changes: 0 additions & 17 deletions tests/v1/additionalProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,23 +120,6 @@
}
]
},
{
"description": "additionalProperties does not look in applicators",
"schema": {
"$schema": "https://json-schema.org/v1",
"allOf": [
{"properties": {"foo": {}}}
],
"additionalProperties": {"type": "boolean"}
},
"tests": [
{
"description": "properties defined in allOf are not examined",
"data": {"foo": 1, "bar": true},
"valid": false
}
]
},
{
"description": "additionalProperties with null valued instance properties",
"schema": {
Expand Down
Loading