1 |
ea7b9b1e
|
Wojtek Kosior
|
{
|
2 |
7ce7ee1a
|
Wojtek Kosior
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
3 |
09634f34
|
Wojtek Kosior
|
"$id": "https://hydrilla.koszko.org/schemas/package_source-1.0.1.schema.json",
|
4 |
ea7b9b1e
|
Wojtek Kosior
|
"title": "Package source",
|
5 |
|
|
"description": "Definition of a Hydrilla source package",
|
6 |
|
|
"type": "object",
|
7 |
|
|
"required": [
|
8 |
1d1c93d5
|
Wojtek Kosior
|
"$schema",
|
9 |
ea7b9b1e
|
Wojtek Kosior
|
"source_name",
|
10 |
|
|
"copyright",
|
11 |
ca1de2ed
|
Wojtek Kosior
|
"upstream_url",
|
12 |
|
|
"definitions"
|
13 |
ea7b9b1e
|
Wojtek Kosior
|
],
|
14 |
|
|
"properties": {
|
15 |
1d1c93d5
|
Wojtek Kosior
|
"$schema": {
|
16 |
|
|
"description": "Mark this instance as conforming to package source schema 1.x",
|
17 |
|
|
"type": "string",
|
18 |
09634f34
|
Wojtek Kosior
|
"pattern": "^https://hydrilla\\.koszko\\.org/schemas/package_source-1\\.(([1-9][0-9]*|0)\\.)*schema\\.json$"
|
19 |
ea7b9b1e
|
Wojtek Kosior
|
},
|
20 |
|
|
"source_name": {
|
21 |
09634f34
|
Wojtek Kosior
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/source_name"
|
22 |
ea7b9b1e
|
Wojtek Kosior
|
},
|
23 |
|
|
"copyright": {
|
24 |
|
|
"description": "Which files from the source package indicate its license terms and should be included in the distribution packages",
|
25 |
09634f34
|
Wojtek Kosior
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/file_ref_list"
|
26 |
ea7b9b1e
|
Wojtek Kosior
|
},
|
27 |
|
|
"upstream_url": {
|
28 |
|
|
"description": "Where this software/work initially comes from",
|
29 |
|
|
"type": "string"
|
30 |
|
|
},
|
31 |
|
|
"comment": {
|
32 |
09634f34
|
Wojtek Kosior
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/comment"
|
33 |
ea7b9b1e
|
Wojtek Kosior
|
},
|
34 |
|
|
"definitions": {
|
35 |
|
|
"description": "Definitions of site resources and pattern->payload mappings",
|
36 |
|
|
"type": "array",
|
37 |
|
|
"items": {
|
38 |
c72c8438
|
Wojtek Kosior
|
"anyOf": [{
|
39 |
09634f34
|
Wojtek Kosior
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/resource_definition_base"
|
40 |
ea7b9b1e
|
Wojtek Kosior
|
}, {
|
41 |
09634f34
|
Wojtek Kosior
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/mapping_definition_base"
|
42 |
ea7b9b1e
|
Wojtek Kosior
|
}]
|
43 |
|
|
}
|
44 |
|
|
},
|
45 |
|
|
"additional_files": {
|
46 |
|
|
"description": "Files which should be included in the source archive produced by Hydrilla builder in addition to script and copyright files",
|
47 |
09634f34
|
Wojtek Kosior
|
"$ref": "./common_definitions-1.0.1.schema.json#/definitions/file_ref_list",
|
48 |
ea7b9b1e
|
Wojtek Kosior
|
"default": []
|
49 |
|
|
},
|
50 |
|
|
"reuse_generate_spdx_report": {
|
51 |
|
|
"description": "Should report.spdx be automatically generated for the package using REUSE tool",
|
52 |
|
|
"type": "boolean",
|
53 |
|
|
"default": false
|
54 |
|
|
}
|
55 |
|
|
}
|
56 |
|
|
}
|