«
Previous
|
Next
»
Revision d94ef454
Added by koszko about 1 year ago
- ID d94ef4544faac662f49bed41700c9010804b2450
- Parent 7206db45
| api_package_list-2.schema.json | ||
|---|---|---|
| 1 |
{
|
|
| 2 |
"$schema": "http://json-schema.org/draft-07/schema#", |
|
| 3 |
"$id": "https://hydrilla.koszko.org/schemas/api_package_list-2.0.1.schema.json", |
|
| 4 |
"title": "Package list", |
|
| 5 |
"description": "Object with lists of references to all known resources and all known mappings", |
|
| 6 |
"type": "object", |
|
| 7 |
"required": ["$schema", "resources", "mappings"], |
|
| 8 |
"properties": {
|
|
| 9 |
"$schema": {
|
|
| 10 |
"description": "Mark this instance as conforming to package list schema 2.x", |
|
| 11 |
"type": "string", |
|
| 12 |
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_package_list-2\\.(([1-9][0-9]*|0)\\.)*schema\\.json$" |
|
| 13 |
}, |
|
| 14 |
"resources": {
|
|
| 15 |
"description": "References to all resources served by this Hydrilla instance", |
|
| 16 |
"type": "array", |
|
| 17 |
"items": {
|
|
| 18 |
"allOf": [{
|
|
| 19 |
"$ref": "./common_definitions-2.schema.json#/definitions/item_ref" |
|
| 20 |
}, {
|
|
| 21 |
"type": "object", |
|
| 22 |
"required": ["revision"], |
|
| 23 |
"properties": {
|
|
| 24 |
"revision": {
|
|
| 25 |
"description": "Which revision of a packaging of given version of an upstream resource is this", |
|
| 26 |
"type": "integer", |
|
| 27 |
"minimum": 1 |
|
| 28 |
} |
|
| 29 |
} |
|
| 30 |
}] |
|
| 31 |
} |
|
| 32 |
}, |
|
| 33 |
"mappings": {
|
|
| 34 |
"description": "References to all mappings served by this Hydrilla instance", |
|
| 35 |
"type": "array", |
|
| 36 |
"items": {
|
|
| 37 |
"$ref": "./common_definitions-2.schema.json#/definitions/item_ref" |
|
| 38 |
} |
|
| 39 |
}, |
|
| 40 |
"generated_by": {
|
|
| 41 |
"$ref": "./common_definitions-2.schema.json#/definitions/generated_by" |
|
| 42 |
} |
|
| 43 |
} |
|
| 44 |
} |
|
| api_package_list-2.schema.json.license | ||
|---|---|---|
| 1 |
SPDX-License-Identifier: CC0-1.0 |
|
| 2 |
|
|
| 3 |
Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org> |
|
| 4 |
|
|
| 5 |
Available under the terms of Creative Commons Zero v1.0 Universal. |
|
Also available in: Unified diff
specify a schema for packages listing generated by Hydrilla