Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit c7c4bb7

Browse files
committed
Modify v2 schema for easier error generation
Signed-off-by: Josh Curl <[email protected]>
1 parent f7c0796 commit c7c4bb7

File tree

1 file changed

+4
-37
lines changed

1 file changed

+4
-37
lines changed

script/config_schema_v2.0.json

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,9 @@
33
"id": "config_schema_v2.0.json",
44
"type": "object",
55

6-
"properties": {
7-
"version": {
8-
"type": "string"
9-
},
10-
11-
"services": {
12-
"id": "#/properties/services",
13-
"type": "object",
14-
"patternProperties": {
15-
"^[a-zA-Z0-9._-]+$": {
16-
"$ref": "#/definitions/service"
17-
}
18-
},
19-
"additionalProperties": false
20-
},
21-
22-
"networks": {
23-
"id": "#/properties/networks",
24-
"type": "object",
25-
"patternProperties": {
26-
"^[a-zA-Z0-9._-]+$": {
27-
"$ref": "#/definitions/network"
28-
}
29-
}
30-
},
31-
32-
"volumes": {
33-
"id": "#/properties/volumes",
34-
"type": "object",
35-
"patternProperties": {
36-
"^[a-zA-Z0-9._-]+$": {
37-
"$ref": "#/definitions/volume"
38-
}
39-
},
40-
"additionalProperties": false
6+
"patternProperties": {
7+
"^[a-zA-Z0-9._-]+$": {
8+
"$ref": "#/definitions/service"
419
}
4210
},
4311

@@ -269,8 +237,7 @@
269237
"properties": {
270238
"name": {"type": "string"}
271239
}
272-
},
273-
"additionalProperties": false
240+
}
274241
},
275242
"additionalProperties": false
276243
},

0 commit comments

Comments
 (0)