summaryrefslogtreecommitdiff
path: root/api_query_result-1.schema.json
blob: a8dd30a3bcd950b22e7f1ccb8a1044f452131b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://hydrilla.koszko.org/api_query_result-1.schema.json",
    "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"
    ],
    "properties": {
	"api_schema_version": {
	    "$ref": "./common_definitions-1.schema.json#/definitions/schema_version"
	},
	"mappings": {
	    "description": "References to mappings using at least one pattern that matches the requested URL",
	    "type": "array",
	    "items": {
		"$ref": "./common_definitions-1.schema.json#/definitions/item_ref"
	    }
	}
    }
}