Skip to content

Commit d29c671

Browse files
authored
Update sidebar.schema.json
1 parent b30765a commit d29c671

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

schema/v1.0.0/sidebar.schema.json

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,27 @@
44
"version": "v1.0.0",
55
"description": "Schema defining nested navigational structures with reusable sidebar components and metadata.",
66
"type": "object",
7-
"properties": {
8-
"sidebars": {
9-
"type": "array",
10-
"minItems": 0,
11-
"items": {
12-
"anyOf": [
13-
{ "$ref": "#/$defs/visibleString" },
14-
{ "$ref": "#/$defs/emptySidebar" },
15-
{ "$ref": "#/$defs/populatedSidebar" }
16-
]
17-
}
7+
"allOf": [
8+
{ "$ref": "#/$defs/commonMeta" },
9+
{
10+
"type": "object",
11+
"properties": {
12+
"sidebars": {
13+
"type": "array",
14+
"minItems": 0,
15+
"items": {
16+
"anyOf": [
17+
{ "$ref": "#/$defs/visibleString" },
18+
{ "$ref": "#/$defs/emptySidebar" },
19+
{ "$ref": "#/$defs/populatedSidebar" }
20+
]
21+
}
22+
}
23+
},
24+
"required": ["sidebars"],
25+
"additionalProperties": false
1826
}
19-
},
20-
"additionalProperties": false,
27+
],
2128
"$defs": {
2229
"visibleString": {
2330
"type": "string",

0 commit comments

Comments
 (0)