Skip to content

All format test cases should be under the format directory. #751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions tests/draft-next/optional/ecmascript-regex.json
Original file line number Diff line number Diff line change
@@ -405,20 +405,6 @@
}
]
},
{
"description": "\\a is not an ECMA 262 control escape",
"schema": {
"$schema": "https://json-schema.org/draft/next/schema",
"format": "regex"
},
"tests": [
{
"description": "when used as a pattern",
"data": "\\a",
"valid": false
}
]
},
{
"description": "pattern with non-ASCII digits",
"schema": {
16 changes: 16 additions & 0 deletions tests/draft-next/optional/format/ecmascript-regex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"description": "\\a is not an ECMA 262 control escape",
"schema": {
"$schema": "https://json-schema.org/draft/next/schema",
"format": "regex"
},
"tests": [
{
"description": "when used as a pattern",
"data": "\\a",
"valid": false
}
]
}
]
14 changes: 0 additions & 14 deletions tests/draft2020-12/optional/ecmascript-regex.json
Original file line number Diff line number Diff line change
@@ -405,20 +405,6 @@
}
]
},
{
"description": "\\a is not an ECMA 262 control escape",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"format": "regex"
},
"tests": [
{
"description": "when used as a pattern",
"data": "\\a",
"valid": false
}
]
},
{
"description": "pattern with non-ASCII digits",
"schema": {
16 changes: 16 additions & 0 deletions tests/draft2020-12/optional/format/ecmascript-regex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"description": "\\a is not an ECMA 262 control escape",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"format": "regex"
},
"tests": [
{
"description": "when used as a pattern",
"data": "\\a",
"valid": false
}
]
}
]

Unchanged files with check annotations Beta

{
"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

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": {}},
},
{
"description": "non-ASCII pattern with additionalProperties",
"specification": [ { "core":"10.3.2.3"} ],

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

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": {"^á": {}},
},
{
"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

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": {}},
},
{
"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

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"}
},
{
"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

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": {}}
},
{
"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." } ],

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

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.2
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"allOf": [
},
{
"description": "additionalProperties with null valued instance properties",
"specification": [ { "core":"10.3.2.3" } ],

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

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": {