summaryrefslogtreecommitdiff
path: root/api_query_result-1.schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'api_query_result-1.schema.json')
-rw-r--r--api_query_result-1.schema.json11
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",