summaryrefslogtreecommitdiff
path: root/api_package_list-2.schema.json
blob: 334586c7b8cc9657e84eebb955642d37d1600459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://hydrilla.koszko.org/schemas/api_package_list-2.0.1.schema.json",
    "title": "Package list",
    "description": "Object with lists of references to all known resources and all known mappings",
    "type": "object",
    "required": ["$schema", "resources", "mappings"],
    "properties": {
	"$schema": {
	    "description": "Mark this instance as conforming to package list schema 2.x",
	    "type": "string",
	    "pattern": "^https://hydrilla\\.koszko\\.org/schemas/api_package_list-2\\.(([1-9][0-9]*|0)\\.)*schema\\.json$"
	},
	"resources": {
	    "description": "References to all resources served by this Hydrilla instance",
	    "type": "array",
	    "items": {
		"allOf": [{
		    "$ref": "./common_definitions-2.schema.json#/definitions/item_ref"
		}, {
		    "type": "object",
		    "required": ["revision"],
		    "properties": {
			"revision": {
			    "description": "Which revision of a packaging of given version of an upstream resource is this",
			    "type": "integer",
			    "minimum": 1
			}
		    }
		}]
	    }
	},
	"mappings": {
	    "description": "References to all mappings served by this Hydrilla instance",
	    "type": "array",
	    "items": {
		"$ref": "./common_definitions-2.schema.json#/definitions/item_ref"
	    }
	},
	"generated_by": {
	    "$ref": "./common_definitions-2.schema.json#/definitions/generated_by"
	}
    }
}