diff options
author | Julian Berman <Julian@GrayVines.com> | 2022-11-11 11:34:21 -0500 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2022-11-11 11:34:21 -0500 |
commit | 227069f8489eb04404bc5ef79d727322d94d19e1 (patch) | |
tree | 18ed85646d1f6a774f1dce6700f0c9cc6f5fe0a1 /json/tests | |
parent | 6de73c3d21e6f57f8edf0ad0060ff7ed7da56dbd (diff) | |
parent | 79e3a85ed15c55d5141a502d025fe76ea82f9287 (diff) | |
download | jsonschema-227069f8489eb04404bc5ef79d727322d94d19e1.tar.gz |
Merge commit '79e3a85ed15c55d5141a502d025fe76ea82f9287'
* commit '79e3a85ed15c55d5141a502d025fe76ea82f9287':
Squashed 'json/' changes from ed0b855e7..0fa89d2ab
Diffstat (limited to 'json/tests')
-rw-r--r-- | json/tests/draft-next/ref.json | 2 | ||||
-rw-r--r-- | json/tests/draft-next/unevaluatedProperties.json | 25 | ||||
-rw-r--r-- | json/tests/draft2019-09/ref.json | 2 | ||||
-rw-r--r-- | json/tests/draft2019-09/unevaluatedProperties.json | 25 | ||||
-rw-r--r-- | json/tests/draft2020-12/ref.json | 2 | ||||
-rw-r--r-- | json/tests/draft2020-12/unevaluatedProperties.json | 25 |
6 files changed, 78 insertions, 3 deletions
diff --git a/json/tests/draft-next/ref.json b/json/tests/draft-next/ref.json index 8e0fbb6..7da4afb 100644 --- a/json/tests/draft-next/ref.json +++ b/json/tests/draft-next/ref.json @@ -638,7 +638,7 @@ "$ref": "#bigint", "$defs": { "bigint": { - "$comment": "canonical uri: /ref-and-id2/base.json/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint", + "$comment": "canonical uri: /ref-and-id2/base.json#/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint", "$anchor": "bigint", "maximum": 10 }, diff --git a/json/tests/draft-next/unevaluatedProperties.json b/json/tests/draft-next/unevaluatedProperties.json index 729d9d7..cb33fb3 100644 --- a/json/tests/draft-next/unevaluatedProperties.json +++ b/json/tests/draft-next/unevaluatedProperties.json @@ -741,6 +741,31 @@ ] }, { + "description": "unevaluatedProperties can't see inside cousins (reverse order)", + "schema": { + "$schema": "https://json-schema.org/draft/next/schema", + "allOf": [ + { + "unevaluatedProperties": false + }, + { + "properties": { + "foo": true + } + } + ] + }, + "tests": [ + { + "description": "always fails", + "data": { + "foo": 1 + }, + "valid": false + } + ] + }, + { "description": "nested unevaluatedProperties, outer false, inner true, properties outside", "schema": { "$schema": "https://json-schema.org/draft/next/schema", diff --git a/json/tests/draft2019-09/ref.json b/json/tests/draft2019-09/ref.json index 3142cd9..f8c03be 100644 --- a/json/tests/draft2019-09/ref.json +++ b/json/tests/draft2019-09/ref.json @@ -638,7 +638,7 @@ "$ref": "#bigint", "$defs": { "bigint": { - "$comment": "canonical uri: /draft2019-09/ref-and-id2/base.json/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint", + "$comment": "canonical uri: /draft2019-09/ref-and-id2/base.json#/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint", "$anchor": "bigint", "maximum": 10 }, diff --git a/json/tests/draft2019-09/unevaluatedProperties.json b/json/tests/draft2019-09/unevaluatedProperties.json index b9141f1..62960ea 100644 --- a/json/tests/draft2019-09/unevaluatedProperties.json +++ b/json/tests/draft2019-09/unevaluatedProperties.json @@ -741,6 +741,31 @@ ] }, { + "description": "unevaluatedProperties can't see inside cousins (reverse order)", + "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", + "allOf": [ + { + "unevaluatedProperties": false + }, + { + "properties": { + "foo": true + } + } + ] + }, + "tests": [ + { + "description": "always fails", + "data": { + "foo": 1 + }, + "valid": false + } + ] + }, + { "description": "nested unevaluatedProperties, outer false, inner true, properties outside", "schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", diff --git a/json/tests/draft2020-12/ref.json b/json/tests/draft2020-12/ref.json index 2b9c481..45803df 100644 --- a/json/tests/draft2020-12/ref.json +++ b/json/tests/draft2020-12/ref.json @@ -638,7 +638,7 @@ "$ref": "#bigint", "$defs": { "bigint": { - "$comment": "canonical uri: /ref-and-id2/base.json/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint", + "$comment": "canonical uri: /ref-and-id2/base.json#/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint", "$anchor": "bigint", "maximum": 10 }, diff --git a/json/tests/draft2020-12/unevaluatedProperties.json b/json/tests/draft2020-12/unevaluatedProperties.json index b52c879..31bb691 100644 --- a/json/tests/draft2020-12/unevaluatedProperties.json +++ b/json/tests/draft2020-12/unevaluatedProperties.json @@ -741,6 +741,31 @@ ] }, { + "description": "unevaluatedProperties can't see inside cousins (reverse order)", + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "allOf": [ + { + "unevaluatedProperties": false + }, + { + "properties": { + "foo": true + } + } + ] + }, + "tests": [ + { + "description": "always fails", + "data": { + "foo": 1 + }, + "valid": false + } + ] + }, + { "description": "nested unevaluatedProperties, outer false, inner true, properties outside", "schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", |