forked from redhat-appstudio-qe/strategy-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
35 lines (35 loc) · 1.01 KB
/
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://redhat.com/appstudio/hacbs/release/config.schema.json",
"title": "ReleaseStrategy Config",
"description": "A configuration file for a release strategy",
"type": "object",
"properties": {
"mapping": {
"description": "Array of components and pullspec to use to filter a snapshot",
"type": "array",
"items": {
"type": "object",
"properties": {
"component": {
"type": "string"
},
"repository": {
"type": "string",
"pattern": "^(https?:\/\/)?(?:w{1,3}\\.)?[^\\s.]+(?:\\.[a-z]+)*(?::\\d+)?((?:\/\\w+)|(?:-\\w+))*\/?(?![^<]*(?:<\/\\w+>|\/?>))$"
},
"tag": {
"type": "string",
"pattern": "^[\\w][\\w.-]{0,127}$"
}
},
"additionalProperties": false,
"required": [
"component",
"repository"
]
}
}
},
"additionalProperties": false
}