From 1d1c93d5a9011ecdf58a4952afcb5a1faff30e76 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 14 Feb 2022 10:45:18 +0100 Subject: specify full schema URL in instances --- api_query_result-1.schema.json | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'api_query_result-1.schema.json') 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", -- cgit v1.2.3