-
-
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.
Un-bundle single-vocabulary meta-schemas.
This seems to work (thanks @FFY00), even though previously I thought I was having issues with importlib.resources. Let's see if CI agrees.
- Loading branch information
Showing
16 changed files
with
578 additions
and
2 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,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.