-
-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'json/' changes from 4cfead7ba..6eaf7dff4
6eaf7dff4 Merge pull request #586 from handrews/dollar-schema b5270c56e Update all draft-next $schema, $id, $ref. dd343685e Copy remotes to draft-next without changes. 8919ce99b Add $schema to optional/format 2019-09 tests d88c04ff5 Add $schema for optional/format 2020-12 da237da59 draft-specific 2020-12 remotes, $refs, and $ids 0eb6893f4 draft-specific 2019-09 remotes, $refs, and $ids c0ba85b60 Remove accidental duplication e8851f1a9 Add "$schema" to all document roots 8d653be4d Copy remotes to draft dirs, no changes yet 113a08e5c Optional tests for no $schema (2019-09+) 909835901 Update README to reflect $schema detection be49e5b07 Add $schema to all 2019-09 tests 64793fe67 Add $schema for all 2020-12 tests. git-subtree-dir: json git-subtree-split: 6eaf7dff43b81e78bd10658b3dd917bf0b345ab1
- Loading branch information
Showing
272 changed files
with
3,192 additions
and
584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"type": "integer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"type": "integer" | ||
} |
4 changes: 4 additions & 0 deletions
4
remotes/draft-next/baseUriChangeFolderInSubschema/folderInteger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"type": "integer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"description": "extendible array", | ||
"$id": "http://localhost:1234/draft-next/extendible-dynamic-ref.json", | ||
"type": "object", | ||
"properties": { | ||
"elements": { | ||
"type": "array", | ||
"items": { | ||
"$dynamicRef": "#elements" | ||
} | ||
} | ||
}, | ||
"required": ["elements"], | ||
"additionalProperties": false, | ||
"$defs": { | ||
"elements": { | ||
"$dynamicAnchor": "elements" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"type": "integer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"$defs": { | ||
"refToInteger": { | ||
"$ref": "#foo" | ||
}, | ||
"A": { | ||
"$anchor": "foo", | ||
"type": "integer" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
remotes/draft-next/locationIndependentIdentifierDraft4.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"definitions": { | ||
"refToInteger": { | ||
"$ref": "#foo" | ||
}, | ||
"A": { | ||
"id": "#foo", | ||
"type": "integer" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
remotes/draft-next/locationIndependentIdentifierPre2019.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"definitions": { | ||
"refToInteger": { | ||
"$ref": "#foo" | ||
}, | ||
"A": { | ||
"$id": "#foo", | ||
"type": "integer" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"$defs": { | ||
"orNull": { | ||
"anyOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "#" | ||
} | ||
] | ||
} | ||
}, | ||
"type": "string" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"definitions": { | ||
"orNull": { | ||
"anyOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "#" | ||
} | ||
] | ||
} | ||
}, | ||
"type": "string" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"type": "object", | ||
"properties": { | ||
"foo": {"$ref": "string.json"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"type": "string" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"$id": "http://localhost:1234/draft-next/ref-and-definitions.json", | ||
"definitions": { | ||
"inner": { | ||
"properties": { | ||
"bar": { "type": "string" } | ||
} | ||
} | ||
}, | ||
"allOf": [ { "$ref": "#/definitions/inner" } ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"$id": "http://localhost:1234/draft-next/ref-and-defs.json", | ||
"$defs": { | ||
"inner": { | ||
"properties": { | ||
"bar": { "type": "string" } | ||
} | ||
} | ||
}, | ||
"$ref": "#/$defs/inner" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"$defs": { | ||
"integer": { | ||
"type": "integer" | ||
}, | ||
"refToInteger": { | ||
"$ref": "#/$defs/integer" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"integer": { | ||
"type": "integer" | ||
}, | ||
"refToInteger": { | ||
"$ref": "#/integer" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"description": "tree schema, extensible", | ||
"$id": "http://localhost:1234/draft-next/tree.json", | ||
"$dynamicAnchor": "node", | ||
|
||
"type": "object", | ||
"properties": { | ||
"data": true, | ||
"children": { | ||
"type": "array", | ||
"items": { | ||
"$dynamicRef": "#node" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"type": "integer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"type": "integer" | ||
} |
4 changes: 4 additions & 0 deletions
4
remotes/draft2019-09/baseUriChangeFolderInSubschema/folderInteger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"type": "integer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "extendible array", | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "http://localhost:1234/draft2019-09/extendible-dynamic-ref.json", | ||
"type": "object", | ||
"properties": { | ||
"elements": { | ||
"type": "array", | ||
"items": { | ||
"$dynamicRef": "#elements" | ||
} | ||
} | ||
}, | ||
"required": ["elements"], | ||
"additionalProperties": false, | ||
"$defs": { | ||
"elements": { | ||
"$dynamicAnchor": "elements" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"type": "integer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$defs": { | ||
"refToInteger": { | ||
"$ref": "#foo" | ||
}, | ||
"A": { | ||
"$anchor": "foo", | ||
"type": "integer" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
remotes/draft2019-09/locationIndependentIdentifierDraft4.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"definitions": { | ||
"refToInteger": { | ||
"$ref": "#foo" | ||
}, | ||
"A": { | ||
"id": "#foo", | ||
"type": "integer" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
remotes/draft2019-09/locationIndependentIdentifierPre2019.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"definitions": { | ||
"refToInteger": { | ||
"$ref": "#foo" | ||
}, | ||
"A": { | ||
"$id": "#foo", | ||
"type": "integer" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$defs": { | ||
"orNull": { | ||
"anyOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "#" | ||
} | ||
] | ||
} | ||
}, | ||
"type": "string" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"definitions": { | ||
"orNull": { | ||
"anyOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "#" | ||
} | ||
] | ||
} | ||
}, | ||
"type": "string" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"type": "object", | ||
"properties": { | ||
"foo": {"$ref": "string.json"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"type": "string" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "http://localhost:1234/draft2019-09/ref-and-definitions.json", | ||
"definitions": { | ||
"inner": { | ||
"properties": { | ||
"bar": { "type": "string" } | ||
} | ||
} | ||
}, | ||
"allOf": [ { "$ref": "#/definitions/inner" } ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "http://localhost:1234/draft2019-09/ref-and-defs.json", | ||
"$defs": { | ||
"inner": { | ||
"properties": { | ||
"bar": { "type": "string" } | ||
} | ||
} | ||
}, | ||
"$ref": "#/$defs/inner" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$defs": { | ||
"integer": { | ||
"type": "integer" | ||
}, | ||
"refToInteger": { | ||
"$ref": "#/$defs/integer" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"integer": { | ||
"type": "integer" | ||
}, | ||
"refToInteger": { | ||
"$ref": "#/integer" | ||
} | ||
} |
Oops, something went wrong.