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