Project

General

Profile

Download (1.4 KB) Statistics
| Branch: | Tag: | Revision:

hydrilla-json-schemas / api_package_list-2.schema.json @ master

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
}
(3-3/14)