Skip to content

Commit 690033c

Browse files
committed
feat: add components schema to extension configuration
1 parent 6c89be8 commit 690033c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

schemas/extension.schema.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,28 @@
5454
}
5555
},
5656
"additionalProperties": false
57+
},
58+
"components": {
59+
"type": "array",
60+
"description": "Array of components to render in the Extensions component",
61+
"items": {
62+
"type": "object",
63+
"required": ["name"],
64+
"properties": {
65+
"name": {
66+
"type": "string",
67+
"description": "The component name to render (should match one of the imported specifiers)",
68+
"pattern": "^[A-Z][a-zA-Z0-9]*$"
69+
},
70+
"props": {
71+
"type": "object",
72+
"description": "Props to pass to the component (optional)",
73+
"additionalProperties": true
74+
}
75+
},
76+
"additionalProperties": false
77+
},
78+
"minItems": 1
5779
}
5880
},
5981
"additionalProperties": false

0 commit comments

Comments
 (0)