Project

General

Profile

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

hydrilla-json-schemas / api_source_description-1.schema.json @ b1917108

1
{
2
    "$schema": "http://json-schema.org/draft-07/schema#",
3
    "$id": "https://hydrilla.koszko.org/schemas/api_source_description-1.schema.json",
4
    "title": "Source description",
5
    "description": "Built description of a Hydrilla source package",
6
    "type": "object",
7
    "required": [
8
	"api_schema_version",
9
	"source_name",
10
	"source_copyright",
11
	"source_archives",
12
	"upstream_url",
13
	"definitions"
14
    ],
15
    "properties": {
16
	"api_schema_version": {
17
	    "$ref": "./common_definitions-1.schema.json#/definitions/schema_version"
18
	},
19
	"source_name": {
20
	    "$ref": "./common_definitions-1.schema.json#/definitions/source_name"
21
	},
22
	"source_copyright":  {
23
	    "description": "Which files indicate license terms of the source package",
24
	    "$ref": "./common_definitions-1.schema.json#/definitions/file_ref_list_sha256"
25
	},
26
	"source_archives": {
27
	    "description": "What archive extensions are available for this package's sources",
28
	    "type": "object",
29
	    "required": ["zip"],
30
	    "additionalProperties": {
31
		"description": "What is the SHA256 sum of given source archive",
32
		"type": "object",
33
		"required": ["sha256"],
34
		"properties": {
35
		    "sha256": {
36
			"$ref": "./common_definitions-1.schema.json#/definitions/sha256"
37
		    }
38
		}
39
	    },
40
	    "examples": [{
41
		"zip": {
42
		    "sha256": "688461da362ffe2fc8e85db73e709a5356d41c8aeb7d1eee7170c64ee21dd2a2"
43
		}
44
	    }]
45
	},
46
	"upstream_url": {
47
	    "description": "Where this software/work initially comes from",
48
	    "type": "string"
49
	},
50
	"comment": {
51
	    "$ref": "./common_definitions-1.schema.json#/definitions/comment"
52
	},
53
	"definitions": {
54
	    "description": "References to site resources and pattern->payload mappings",
55
	    "type": "array",
56
	    "items": {
57
		"$ref": "./common_definitions-1.schema.json#/definitions/typed_item_ref"
58
	    }
59
	},
60
	"generated_by": {
61
	    "$ref": "./common_definitions-1.schema.json#/definitions/generated_by"
62
	}
63
    }
64
}
(7-7/12)