Revision 1d1c93d5
Added by koszko over 1 year ago
| api_mapping_description-1.schema.json | ||
|---|---|---|
| 7 | 7 |
"$ref": "./common_definitions-1.schema.json#/definitions/mapping_definition_base" |
| 8 | 8 |
}, {
|
| 9 | 9 |
"$ref": "./common_definitions-1.schema.json#/definitions/item_definition" |
| 10 |
}, {
|
|
| 11 |
"type": "object", |
|
| 12 |
"required": ["$schema"], |
|
| 13 |
"properties": {
|
|
| 14 |
"$schema": {
|
|
| 15 |
"description": "Mark this instance as conforming to mapping description schema 1.x", |
|
| 16 |
"type": "string", |
|
| 17 |
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_mapping_description-1\\.([1-9][0-9]*\\.)*schema\\.json$" |
|
| 18 |
} |
|
| 19 |
} |
|
| 10 | 20 |
}] |
| 11 | 21 |
} |
| api_query_result-1.schema.json | ||
|---|---|---|
| 4 | 4 |
"title": "Query result", |
| 5 | 5 |
"description": "Object with a list of references to mappings that contain payloads for requested URL", |
| 6 | 6 |
"type": "object", |
| 7 |
"required": [ |
|
| 8 |
"api_schema_version", |
|
| 9 |
"mappings" |
|
| 10 |
], |
|
| 7 |
"required": ["$schema", "mappings"], |
|
| 11 | 8 |
"properties": {
|
| 12 |
"api_schema_version": {
|
|
| 13 |
"$ref": "./common_definitions-1.schema.json#/definitions/schema_version" |
|
| 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]*\\.)*schema\\.json$" |
|
| 14 | 13 |
}, |
| 15 | 14 |
"mappings": {
|
| 16 | 15 |
"description": "References to mappings using at least one pattern that matches the requested URL", |
| api_resource_description-1.schema.json | ||
|---|---|---|
| 9 | 9 |
"$ref": "./common_definitions-1.schema.json#/definitions/item_definition" |
| 10 | 10 |
}, {
|
| 11 | 11 |
"type": "object", |
| 12 |
"required": ["$schema"], |
|
| 12 | 13 |
"properties": {
|
| 14 |
"$schema": {
|
|
| 15 |
"description": "Mark this instance as conforming to resource description schema 1.x", |
|
| 16 |
"type": "string", |
|
| 17 |
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_resource_description-1\\.([1-9][0-9]*\\.)*schema\\.json$" |
|
| 18 |
}, |
|
| 13 | 19 |
"scripts": {
|
| 14 | 20 |
"description": "Which files are resource's scripts and need to be installed", |
| 15 | 21 |
"$ref": "./common_definitions-1.schema.json#/definitions/file_ref_list_sha256", |
| api_source_description-1.schema.json | ||
|---|---|---|
| 5 | 5 |
"description": "Built description of a Hydrilla source package", |
| 6 | 6 |
"type": "object", |
| 7 | 7 |
"required": [ |
| 8 |
"api_schema_version",
|
|
| 8 |
"$schema",
|
|
| 9 | 9 |
"source_name", |
| 10 | 10 |
"source_copyright", |
| 11 | 11 |
"source_archives", |
| ... | ... | |
| 13 | 13 |
"definitions" |
| 14 | 14 |
], |
| 15 | 15 |
"properties": {
|
| 16 |
"api_schema_version": {
|
|
| 17 |
"$ref": "./common_definitions-1.schema.json#/definitions/schema_version" |
|
| 16 |
"$schema": {
|
|
| 17 |
"description": "Mark this instance as conforming to source description schema 1.x", |
|
| 18 |
"type": "string", |
|
| 19 |
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_source_description-1\\.([1-9][0-9]*\\.)*schema\\.json$" |
|
| 18 | 20 |
}, |
| 19 | 21 |
"source_name": {
|
| 20 | 22 |
"$ref": "./common_definitions-1.schema.json#/definitions/source_name" |
| common_definitions-1.schema.json | ||
|---|---|---|
| 18 | 18 |
}, |
| 19 | 19 |
"minItems": 1 |
| 20 | 20 |
}, |
| 21 |
"schema_version": {
|
|
| 22 |
"description": "Which version of appropriate schema a JSON document conforms to (major number is assumed to be 1)", |
|
| 23 |
"allOf": [{
|
|
| 24 |
"$ref": "#definitions/version" |
|
| 25 |
}, {
|
|
| 26 |
"type": "array", |
|
| 27 |
"items": [{
|
|
| 28 |
"const": 1 |
|
| 29 |
}] |
|
| 30 |
}] |
|
| 31 |
}, |
|
| 32 | 21 |
"source_name": {
|
| 33 | 22 |
"description": "Unique identifier of this source package", |
| 34 | 23 |
"type": "string", |
| ... | ... | |
| 226 | 215 |
"item_definition": {
|
| 227 | 216 |
"description": "Definition of a resource/mapping (fields specific to built definitions)", |
| 228 | 217 |
"type": "object", |
| 229 |
"required": [ |
|
| 230 |
"api_schema_version", |
|
| 231 |
"source_name", |
|
| 232 |
"source_copyright" |
|
| 233 |
], |
|
| 218 |
"required": ["source_name", "source_copyright"], |
|
| 234 | 219 |
"properties": {
|
| 235 |
"api_schema_version": {
|
|
| 236 |
"$ref": "#/definitions/schema_version" |
|
| 237 |
}, |
|
| 238 | 220 |
"source_name": {
|
| 239 | 221 |
"$ref": "#/definitions/source_name" |
| 240 | 222 |
}, |
| package_source-1.schema.json | ||
|---|---|---|
| 5 | 5 |
"description": "Definition of a Hydrilla source package", |
| 6 | 6 |
"type": "object", |
| 7 | 7 |
"required": [ |
| 8 |
"source_schema_version",
|
|
| 8 |
"$schema",
|
|
| 9 | 9 |
"source_name", |
| 10 | 10 |
"copyright", |
| 11 | 11 |
"upstream_url", |
| 12 | 12 |
"definitions" |
| 13 | 13 |
], |
| 14 | 14 |
"properties": {
|
| 15 |
"source_schema_version": {
|
|
| 16 |
"$ref": "./common_definitions-1.schema.json#/definitions/schema_version" |
|
| 15 |
"$schema": {
|
|
| 16 |
"description": "Mark this instance as conforming to package source schema 1.x", |
|
| 17 |
"type": "string", |
|
| 18 |
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/package_source-1\\.([1-9][0-9]*\\.)*schema\\.json$" |
|
| 17 | 19 |
}, |
| 18 | 20 |
"source_name": {
|
| 19 | 21 |
"$ref": "./common_definitions-1.schema.json#/definitions/source_name" |
Also available in: Unified diff
specify full schema URL in instances