Project

General

Profile

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

hydrilla-json-schemas / package_source-1.0.1.schema.json @ 09634f34

1
{
2
    "$schema": "http://json-schema.org/draft-07/schema#",
3
    "$id": "https://hydrilla.koszko.org/schemas/package_source-1.0.1.schema.json",
4
    "title": "Package source",
5
    "description": "Definition of a Hydrilla source package",
6
    "type": "object",
7
    "required": [
8
	"$schema",
9
	"source_name",
10
	"copyright",
11
	"upstream_url",
12
	"definitions"
13
    ],
14
    "properties": {
15
	"$schema": {
16
	    "description": "Mark this instance as conforming to package source schema 1.x",
17
	    "type": "string",
18
	    "pattern": "^https://hydrilla\\.koszko\\.org/schemas/package_source-1\\.(([1-9][0-9]*|0)\\.)*schema\\.json$"
19
	},
20
	"source_name": {
21
	    "$ref": "./common_definitions-1.0.1.schema.json#/definitions/source_name"
22
	},
23
	"copyright":  {
24
	    "description": "Which files from the source package indicate its license terms and should be included in the distribution packages",
25
	    "$ref": "./common_definitions-1.0.1.schema.json#/definitions/file_ref_list"
26
	},
27
	"upstream_url": {
28
	    "description": "Where this software/work initially comes from",
29
	    "type": "string"
30
	},
31
	"comment": {
32
	    "$ref": "./common_definitions-1.0.1.schema.json#/definitions/comment"
33
	},
34
	"definitions": {
35
	    "description": "Definitions of site resources and pattern->payload mappings",
36
	    "type": "array",
37
	    "items": {
38
		"anyOf": [{
39
		    "$ref": "./common_definitions-1.0.1.schema.json#/definitions/resource_definition_base"
40
		}, {
41
		    "$ref": "./common_definitions-1.0.1.schema.json#/definitions/mapping_definition_base"
42
		}]
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
	    "$ref": "./common_definitions-1.0.1.schema.json#/definitions/file_ref_list",
48
	    "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
}
(11-11/12)