Skip to content
Open
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
11 changes: 11 additions & 0 deletions tests/draft2020-12/type.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
{
"description": "integer type matches integers",
"specification": [{"validation": "6.1.1"}],

Check notice on line 4 in tests/draft2020-12/type.json

View workflow job for this annotation

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-01#section-6.1.1
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "integer"
Expand Down Expand Up @@ -55,6 +56,7 @@
},
{
"description": "number type matches numbers",
"specification": [{"validation": "6.1.1"}],

Check notice on line 59 in tests/draft2020-12/type.json

View workflow job for this annotation

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-01#section-6.1.1
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number"
Expand Down Expand Up @@ -109,6 +111,7 @@
},
{
"description": "string type matches strings",
"specification": [{"validation": "6.1.1"}],

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

View workflow job for this annotation

GitHub Actions / annotate

Specification Link

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-01#section-6.1.1
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string"
Expand Down Expand Up @@ -163,6 +166,7 @@
},
{
"description": "object type matches objects",
"specification": [{"validation": "6.1.1"}],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object"
Expand Down Expand Up @@ -207,6 +211,7 @@
},
{
"description": "array type matches arrays",
"specification": [{"validation": "6.1.1"}],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array"
Expand Down Expand Up @@ -251,6 +256,7 @@
},
{
"description": "boolean type matches booleans",
"specification": [{"validation": "6.1.1"}],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "boolean"
Expand Down Expand Up @@ -310,6 +316,7 @@
},
{
"description": "null type matches only the null object",
"specification": [{"validation": "6.1.1"}],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "null"
Expand Down Expand Up @@ -369,6 +376,7 @@
},
{
"description": "multiple types can be specified in an array",
"specification": [{"validation": "6.1.1"}],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": ["integer", "string"]
Expand Down Expand Up @@ -413,6 +421,7 @@
},
{
"description": "type as array with one item",
"specification": [{"validation": "6.1.1"}],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": ["string"]
Expand All @@ -432,6 +441,7 @@
},
{
"description": "type: array or object",
"specification": [{"validation": "6.1.1"}],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": ["array", "object"]
Expand Down Expand Up @@ -466,6 +476,7 @@
},
{
"description": "type: array, object or null",
"specification": [{"validation": "6.1.1"}],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": ["array", "object", "null"]
Expand Down
Loading