-
Notifications
You must be signed in to change notification settings - Fork 2
/
.AutoPkgRecipe.schema.json
93 lines (93 loc) · 2.33 KB
/
.AutoPkgRecipe.schema.json
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/jgstew/jgstew-recipes/blob/main/.AutoPkgRecipe.schema.json",
"$comment": "v0.1",
"title": "AutoPkg Recipe YAML schema",
"description": "A schema for validating AutoPkg Recipe YAML files. Used by check-jsonschema pre-commit hook.",
"$ref": "#/definitions/AutoPkgRecipe",
"definitions": {
"AutoPkgRecipe": {
"type": "object",
"additionalProperties": true,
"properties": {
"Description": {
"type": "string"
},
"Identifier": {
"type": "string",
"comment": "No Spaces Allowed",
"pattern": "^[^\\s]*$"
},
"Input": {
"$ref": "#/definitions/Input"
},
"MinimumVersion": {
"type": "string",
"comment": "Allow 0.0 through 3.9.9, does not support RC's",
"pattern": "[0-3](\\.\\d){1,2}"
},
"ParentRecipe": {
"type": "string",
"comment": "No Spaces Allowed",
"pattern": "^[^\\s]*$"
},
"Process": {
"type": "array",
"items": {
"$ref": "#/definitions/Process"
}
}
},
"required": ["Description", "Identifier", "Input", "MinimumVersion"],
"title": "AutoPkgRecipe"
},
"Input": {
"type": "object",
"additionalProperties": true,
"properties": {
"NAME": {
"type": "string",
"comment": "No Spaces Allowed",
"pattern": "^[^\\s]*$"
}
},
"required": ["NAME"],
"title": "Input"
},
"Process": {
"type": "object",
"additionalProperties": false,
"properties": {
"Processor": {
"type": "string"
},
"Arguments": {
"$ref": "#/definitions/Arguments"
}
},
"required": ["Processor"],
"title": "Process"
},
"Arguments": {
"type": "object",
"additionalProperties": true,
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"re_pattern": {
"type": "string"
},
"filename": {
"type": "string"
},
"COMPUTE_HASHES": {
"type": "boolean"
}
},
"required": [],
"title": "Arguments"
}
}
}