This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
perla.templates.schema.json
88 lines (88 loc) · 2.62 KB
/
perla.templates.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Perla Templates Configuration",
"description": "Perla Templates Configuration Schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the template",
"required": true
},
"description": {
"type": "string",
"description": "The description of the template"
},
"author": {
"type": "string",
"description": "The author of the template",
"required": true
},
"license": {
"type": "string",
"description": "The license of the template",
"required": true
},
"repository": {
"type": "string",
"description": "The repository of the template"
},
"group": {
"type": "string",
"description": "A unique identifier for this set of templates",
"required": true
},
"templates": {
"type": "array",
"description": "A list of objects containing information related to the templates",
"required": true,
"items": {
"$ref": "#/$defs/templateObject"
}
}
},
"required": [
"name",
"author",
"license",
"group",
"templates"
],
"$defs": {
"templateObject": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for this template",
"required": true
},
"name": {
"type": "string",
"description": "The name of the template",
"required": true
},
"description": {
"type": "string",
"description": "The description of the template"
},
"shortname": {
"type": "string",
"description": "A short name for the template",
"required": true
},
"path": {
"type": "string",
"description": "The path to the template relative to the root of the repository",
"required": true
}
},
"required": [
"id",
"name",
"shortname",
"path"
]
}
}
}