1
|
{
|
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
"$id": "https://hydrilla.koszko.org/schemas/api_query_result-1.0.1.schema.json",
|
4
|
"title": "Query result",
|
5
|
"description": "Object with a list of references to mappings that contain payloads for requested URL",
|
6
|
"type": "object",
|
7
|
"required": ["$schema", "mappings"],
|
8
|
"properties": {
|
9
|
"$schema": {
|
10
|
"description": "Mark this instance as conforming to query result schema 1.x",
|
11
|
"type": "string",
|
12
|
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_query_result-1\\.(([1-9][0-9]*|0)\\.)*schema\\.json$"
|
13
|
},
|
14
|
"mappings": {
|
15
|
"description": "References to mappings using at least one pattern that matches the requested URL",
|
16
|
"type": "array",
|
17
|
"items": {
|
18
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/item_ref"
|
19
|
}
|
20
|
},
|
21
|
"generated_by": {
|
22
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/generated_by"
|
23
|
}
|
24
|
}
|
25
|
}
|