1 |
c72c8438
|
Wojtek Kosior
|
{
|
2 |
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
3 |
7206db45
|
Wojtek Kosior
|
"$id": "https://hydrilla.koszko.org/schemas/api_query_result-2.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 |
7206db45
|
Wojtek Kosior
|
"description": "Mark this instance as conforming to query result schema 2.x",
|
11 |
1d1c93d5
|
Wojtek Kosior
|
"type": "string",
|
12 |
7206db45
|
Wojtek Kosior
|
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_query_result-2\\.(([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 |
7206db45
|
Wojtek Kosior
|
"$ref": "./common_definitions-2.schema.json#/definitions/item_ref"
|
19 |
c72c8438
|
Wojtek Kosior
|
}
|
20 |
b1917108
|
Wojtek Kosior
|
},
|
21 |
|
|
"generated_by": {
|
22 |
7206db45
|
Wojtek Kosior
|
"$ref": "./common_definitions-2.schema.json#/definitions/generated_by"
|
23 |
c72c8438
|
Wojtek Kosior
|
}
|
24 |
|
|
}
|
25 |
|
|
}
|