summaryrefslogtreecommitdiff
path: root/api_mapping_description-1.schema.json
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-14 10:45:18 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-14 10:45:18 +0100
commit1d1c93d5a9011ecdf58a4952afcb5a1faff30e76 (patch)
tree2e03dffe1fbd35c885948a9ca6276262f6534301 /api_mapping_description-1.schema.json
parentb19171081e23bcccf9b41588c0464ca9c2c657c0 (diff)
downloadhydrilla-json-schemas-1d1c93d5a9011ecdf58a4952afcb5a1faff30e76.tar.gz
hydrilla-json-schemas-1d1c93d5a9011ecdf58a4952afcb5a1faff30e76.zip
specify full schema URL in instances
Diffstat (limited to 'api_mapping_description-1.schema.json')
-rw-r--r--api_mapping_description-1.schema.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/api_mapping_description-1.schema.json b/api_mapping_description-1.schema.json
index 6b0e723..e37dd00 100644
--- a/api_mapping_description-1.schema.json
+++ b/api_mapping_description-1.schema.json
@@ -7,5 +7,15 @@
"$ref": "./common_definitions-1.schema.json#/definitions/mapping_definition_base"
}, {
"$ref": "./common_definitions-1.schema.json#/definitions/item_definition"
+ }, {
+ "type": "object",
+ "required": ["$schema"],
+ "properties": {
+ "$schema": {
+ "description": "Mark this instance as conforming to mapping description schema 1.x",
+ "type": "string",
+ "pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_mapping_description-1\\.([1-9][0-9]*\\.)*schema\\.json$"
+ }
+ }
}]
}