-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
Showing
15 changed files
with
629 additions
and
0 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
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 @@ | ||
.travis.yml | ||
CONTRIBUTING.md | ||
jsonschema-core.xml | ||
jsonschema-hyperschema.xml | ||
jsonschema-validation.xml | ||
Makefile | ||
README.md | ||
relative-json-pointer.xml | ||
output/verbose-example.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,26 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/hyper-schema", | ||
"$id": "https://json-schema.org/draft/2019-09/hyper-schema", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2019-09/vocab/core": true, | ||
"https://json-schema.org/draft/2019-09/vocab/applicator": true, | ||
"https://json-schema.org/draft/2019-09/vocab/validation": true, | ||
"https://json-schema.org/draft/2019-09/vocab/meta-data": true, | ||
"https://json-schema.org/draft/2019-09/vocab/format": false, | ||
"https://json-schema.org/draft/2019-09/vocab/content": true, | ||
"https://json-schema.org/draft/2019-09/vocab/hyper-schema": true | ||
}, | ||
"$recursiveAnchor": true, | ||
|
||
"title": "JSON Hyper-Schema", | ||
"allOf": [ | ||
{"$ref": "https://json-schema.org/draft/2019-09/schema"}, | ||
{"$ref": "https://json-schema.org/draft/2019-09/meta/hyper-schema"} | ||
], | ||
"links": [ | ||
{ | ||
"rel": "self", | ||
"href": "{+%24id}" | ||
} | ||
] | ||
} |
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,91 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://json-schema.org/draft/2019-09/links", | ||
"title": "Link Description Object", | ||
"allOf": [ | ||
{ "required": [ "rel", "href" ] }, | ||
{ "$ref": "#/$defs/noRequiredFields" } | ||
], | ||
"$defs": { | ||
"noRequiredFields": { | ||
"type": "object", | ||
"properties": { | ||
"anchor": { | ||
"type": "string", | ||
"format": "uri-template" | ||
}, | ||
"anchorPointer": { | ||
"type": "string", | ||
"anyOf": [ | ||
{ "format": "json-pointer" }, | ||
{ "format": "relative-json-pointer" } | ||
] | ||
}, | ||
"rel": { | ||
"anyOf": [ | ||
{ "type": "string" }, | ||
{ | ||
"type": "array", | ||
"items": { "type": "string" }, | ||
"minItems": 1 | ||
} | ||
] | ||
}, | ||
"href": { | ||
"type": "string", | ||
"format": "uri-template" | ||
}, | ||
"hrefSchema": { | ||
"$ref": "https://json-schema.org/draft/2019-09/hyper-schema", | ||
"default": false | ||
}, | ||
"templatePointers": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string", | ||
"anyOf": [ | ||
{ "format": "json-pointer" }, | ||
{ "format": "relative-json-pointer" } | ||
] | ||
} | ||
}, | ||
"templateRequired": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"uniqueItems": true | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"targetSchema": { | ||
"$ref": "https://json-schema.org/draft/2019-09/hyper-schema", | ||
"default": true | ||
}, | ||
"targetMediaType": { | ||
"type": "string" | ||
}, | ||
"targetHints": { }, | ||
"headerSchema": { | ||
"$ref": "https://json-schema.org/draft/2019-09/hyper-schema", | ||
"default": true | ||
}, | ||
"submissionMediaType": { | ||
"type": "string", | ||
"default": "application/json" | ||
}, | ||
"submissionSchema": { | ||
"$ref": "https://json-schema.org/draft/2019-09/hyper-schema", | ||
"default": true | ||
}, | ||
"$comment": { | ||
"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,56 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://json-schema.org/draft/2019-09/meta/applicator", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2019-09/vocab/applicator": true | ||
}, | ||
"$recursiveAnchor": true, | ||
|
||
"title": "Applicator vocabulary meta-schema", | ||
"type": ["object", "boolean"], | ||
"properties": { | ||
"additionalItems": { "$recursiveRef": "#" }, | ||
"unevaluatedItems": { "$recursiveRef": "#" }, | ||
"items": { | ||
"anyOf": [ | ||
{ "$recursiveRef": "#" }, | ||
{ "$ref": "#/$defs/schemaArray" } | ||
] | ||
}, | ||
"contains": { "$recursiveRef": "#" }, | ||
"additionalProperties": { "$recursiveRef": "#" }, | ||
"unevaluatedProperties": { "$recursiveRef": "#" }, | ||
"properties": { | ||
"type": "object", | ||
"additionalProperties": { "$recursiveRef": "#" }, | ||
"default": {} | ||
}, | ||
"patternProperties": { | ||
"type": "object", | ||
"additionalProperties": { "$recursiveRef": "#" }, | ||
"propertyNames": { "format": "regex" }, | ||
"default": {} | ||
}, | ||
"dependentSchemas": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$recursiveRef": "#" | ||
} | ||
}, | ||
"propertyNames": { "$recursiveRef": "#" }, | ||
"if": { "$recursiveRef": "#" }, | ||
"then": { "$recursiveRef": "#" }, | ||
"else": { "$recursiveRef": "#" }, | ||
"allOf": { "$ref": "#/$defs/schemaArray" }, | ||
"anyOf": { "$ref": "#/$defs/schemaArray" }, | ||
"oneOf": { "$ref": "#/$defs/schemaArray" }, | ||
"not": { "$recursiveRef": "#" } | ||
}, | ||
"$defs": { | ||
"schemaArray": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { "$recursiveRef": "#" } | ||
} | ||
} | ||
} |
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/2019-09/schema", | ||
"$id": "https://json-schema.org/draft/2019-09/meta/content", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2019-09/vocab/content": true | ||
}, | ||
"$recursiveAnchor": true, | ||
|
||
"title": "Content vocabulary meta-schema", | ||
|
||
"type": ["object", "boolean"], | ||
"properties": { | ||
"contentMediaType": { "type": "string" }, | ||
"contentEncoding": { "type": "string" }, | ||
"contentSchema": { "$recursiveRef": "#" } | ||
} | ||
} |
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,57 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://json-schema.org/draft/2019-09/meta/core", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2019-09/vocab/core": true | ||
}, | ||
"$recursiveAnchor": true, | ||
|
||
"title": "Core vocabulary meta-schema", | ||
"type": ["object", "boolean"], | ||
"properties": { | ||
"$id": { | ||
"type": "string", | ||
"format": "uri-reference", | ||
"$comment": "Non-empty fragments not allowed.", | ||
"pattern": "^[^#]*#?$" | ||
}, | ||
"$schema": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"$anchor": { | ||
"type": "string", | ||
"pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$" | ||
}, | ||
"$ref": { | ||
"type": "string", | ||
"format": "uri-reference" | ||
}, | ||
"$recursiveRef": { | ||
"type": "string", | ||
"format": "uri-reference" | ||
}, | ||
"$recursiveAnchor": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"$vocabulary": { | ||
"type": "object", | ||
"propertyNames": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"additionalProperties": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"$comment": { | ||
"type": "string" | ||
}, | ||
"$defs": { | ||
"type": "object", | ||
"additionalProperties": { "$recursiveRef": "#" }, | ||
"default": {} | ||
} | ||
} | ||
} |
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,14 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://json-schema.org/draft/2019-09/meta/format", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2019-09/vocab/format": true | ||
}, | ||
"$recursiveAnchor": true, | ||
|
||
"title": "Format vocabulary meta-schema", | ||
"type": ["object", "boolean"], | ||
"properties": { | ||
"format": { "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,29 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/hyper-schema", | ||
"$id": "https://json-schema.org/draft/2019-09/meta/hyper-schema", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2019-09/vocab/hyper-schema": true | ||
}, | ||
"$recursiveAnchor": true, | ||
|
||
"title": "JSON Hyper-Schema Vocabulary Schema", | ||
"type": ["object", "boolean"], | ||
"properties": { | ||
"base": { | ||
"type": "string", | ||
"format": "uri-template" | ||
}, | ||
"links": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://json-schema.org/draft/2019-09/links" | ||
} | ||
} | ||
}, | ||
"links": [ | ||
{ | ||
"rel": "self", | ||
"href": "{+%24id}" | ||
} | ||
] | ||
} |
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,37 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://json-schema.org/draft/2019-09/meta/meta-data", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2019-09/vocab/meta-data": true | ||
}, | ||
"$recursiveAnchor": true, | ||
|
||
"title": "Meta-data vocabulary meta-schema", | ||
|
||
"type": ["object", "boolean"], | ||
"properties": { | ||
"title": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"default": true, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"readOnly": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"writeOnly": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"examples": { | ||
"type": "array", | ||
"items": true | ||
} | ||
} | ||
} |
Oops, something went wrong.