diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-14 10:45:18 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-14 10:45:18 +0100 |
commit | 1d1c93d5a9011ecdf58a4952afcb5a1faff30e76 (patch) | |
tree | 2e03dffe1fbd35c885948a9ca6276262f6534301 /api_query_result-1.schema.json | |
parent | b19171081e23bcccf9b41588c0464ca9c2c657c0 (diff) | |
download | hydrilla-json-schemas-1d1c93d5a9011ecdf58a4952afcb5a1faff30e76.tar.gz hydrilla-json-schemas-1d1c93d5a9011ecdf58a4952afcb5a1faff30e76.zip |
specify full schema URL in instances
Diffstat (limited to 'api_query_result-1.schema.json')
-rw-r--r-- | api_query_result-1.schema.json | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/api_query_result-1.schema.json b/api_query_result-1.schema.json index 62144dd..7de8f76 100644 --- a/api_query_result-1.schema.json +++ b/api_query_result-1.schema.json @@ -4,13 +4,12 @@ "title": "Query result", "description": "Object with a list of references to mappings that contain payloads for requested URL", "type": "object", - "required": [ - "api_schema_version", - "mappings" - ], + "required": ["$schema", "mappings"], "properties": { - "api_schema_version": { - "$ref": "./common_definitions-1.schema.json#/definitions/schema_version" + "$schema": { + "description": "Mark this instance as conforming to query result schema 1.x", + "type": "string", + "pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_query_result-1\\.([1-9][0-9]*\\.)*schema\\.json$" }, "mappings": { "description": "References to mappings using at least one pattern that matches the requested URL", |