1 |
c72c8438
|
Wojtek Kosior
|
{
|
2 |
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
3 |
09634f34
|
Wojtek Kosior
|
"$id": "https://hydrilla.koszko.org/schemas/api_resource_description-1.0.1.schema.json",
|
4 |
c72c8438
|
Wojtek Kosior
|
"title": "Resource description",
|
5 |
|
|
"description": "Definition of a Hydrilla resource, as served through HTTP API",
|
6 |
|
|
"allOf": [{
|
7 |
09634f34
|
Wojtek Kosior
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/resource_definition_base"
|
8 |
c72c8438
|
Wojtek Kosior
|
}, {
|
9 |
09634f34
|
Wojtek Kosior
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/item_definition"
|
10 |
c72c8438
|
Wojtek Kosior
|
}, {
|
11 |
|
|
"type": "object",
|
12 |
1d1c93d5
|
Wojtek Kosior
|
"required": ["$schema"],
|
13 |
c72c8438
|
Wojtek Kosior
|
"properties": {
|
14 |
1d1c93d5
|
Wojtek Kosior
|
"$schema": {
|
15 |
|
|
"description": "Mark this instance as conforming to resource description schema 1.x",
|
16 |
|
|
"type": "string",
|
17 |
09634f34
|
Wojtek Kosior
|
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_resource_description-1\\.(([1-9][0-9]*|0)\\.)*schema\\.json$"
|
18 |
1d1c93d5
|
Wojtek Kosior
|
},
|
19 |
c72c8438
|
Wojtek Kosior
|
"scripts": {
|
20 |
|
|
"description": "Which files are resource's scripts and need to be installed",
|
21 |
09634f34
|
Wojtek Kosior
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/file_ref_list_sha256",
|
22 |
c72c8438
|
Wojtek Kosior
|
"default": []
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
}]
|
26 |
|
|
}
|