1 |
c72c8438
|
Wojtek Kosior
|
{
|
2 |
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
3 |
7206db45
|
Wojtek Kosior
|
"$id": "https://hydrilla.koszko.org/schemas/api_mapping_description-2.schema.json",
|
4 |
c72c8438
|
Wojtek Kosior
|
"title": "Mapping description",
|
5 |
|
|
"description": "Definition of a Hydrilla mapping, as served through HTTP API",
|
6 |
|
|
"allOf": [{
|
7 |
7206db45
|
Wojtek Kosior
|
"$ref": "./common_definitions-2.schema.json#/definitions/mapping_definition_base"
|
8 |
c72c8438
|
Wojtek Kosior
|
}, {
|
9 |
7206db45
|
Wojtek Kosior
|
"$ref": "./common_definitions-2.schema.json#/definitions/item_definition"
|
10 |
1d1c93d5
|
Wojtek Kosior
|
}, {
|
11 |
|
|
"type": "object",
|
12 |
7206db45
|
Wojtek Kosior
|
"required": ["$schema", "type"],
|
13 |
1d1c93d5
|
Wojtek Kosior
|
"properties": {
|
14 |
|
|
"$schema": {
|
15 |
7206db45
|
Wojtek Kosior
|
"description": "Mark this instance as conforming to mapping description schema 2.x",
|
16 |
1d1c93d5
|
Wojtek Kosior
|
"type": "string",
|
17 |
7206db45
|
Wojtek Kosior
|
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_mapping_description-2\\.(([1-9][0-9]*|0)\\.)*schema\\.json$"
|
18 |
|
|
},
|
19 |
|
|
"type": {
|
20 |
|
|
"description": "Identify this item as a mapping",
|
21 |
|
|
"const": "mapping"
|
22 |
1d1c93d5
|
Wojtek Kosior
|
}
|
23 |
|
|
}
|
24 |
c72c8438
|
Wojtek Kosior
|
}]
|
25 |
|
|
}
|