Skip to content

Commit 47a868b

Browse files
committed
fix: adding missing file rack-group schema.json
1 parent 3743480 commit 47a868b

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../schema/rack-groups.schema.json

schema/rack-groups.schema.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://rackerlabs.github.io/understack/schema/rack-group.schema.json",
4+
"title": "UnderStack Rack Groups",
5+
"description": "Hierarchical rack group configuration schema for Nautobot rack organization",
6+
"type": "array",
7+
"items": {
8+
"$ref": "#/$defs/rackGroup"
9+
},
10+
"minItems": 1,
11+
"$defs": {
12+
"rackGroup": {
13+
"type": "object",
14+
"description": "A rack group definition with optional nested children",
15+
"properties": {
16+
"name": {
17+
"description": "Name of the rack group",
18+
"type": "string",
19+
"minLength": 1
20+
},
21+
"description": {
22+
"description": "Human-readable description of the rack group",
23+
"type": "string"
24+
},
25+
"location": {
26+
"description": "Location where the rack group is situated (must correspond to a defined location)",
27+
"type": "string",
28+
"minLength": 1
29+
},
30+
"children": {
31+
"description": "Child rack groups nested under this rack group",
32+
"type": "array",
33+
"items": {
34+
"$ref": "#/$defs/rackGroup"
35+
}
36+
}
37+
},
38+
"required": ["name", "description", "location"],
39+
"additionalProperties": false
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)