Skip to content

Commit 39e5ecb

Browse files
Change: update body and components schema to use content array instead of element reference
1 parent 1332306 commit 39e5ecb

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/schema/v1/definition.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,11 @@
299299
"body": {
300300
"type": "object",
301301
"properties": {
302-
"element": {
303-
"$ref": "#/$defs/element"
302+
"content": {
303+
"type": "array",
304+
"items": {
305+
"$ref": "#/$defs/element"
306+
}
304307
},
305308
"width": {
306309
"type": "number",
@@ -313,7 +316,7 @@
313316
"minimum": 1
314317
}
315318
},
316-
"required": ["element", "width", "height"]
319+
"required": ["content", "width", "height"]
317320
},
318321
"components": {
319322
"type": "array",
@@ -376,11 +379,14 @@
376379
"$ref": "#/$defs/name",
377380
"description": "The alpha-numeric name of the component variant."
378381
},
379-
"element": {
380-
"$ref": "#/$defs/element"
382+
"content": {
383+
"type": "array",
384+
"items": {
385+
"$ref": "#/$defs/element"
386+
}
381387
}
382388
},
383-
"required": ["name", "element"]
389+
"required": ["name", "content"]
384390
}
385391
}
386392
},

0 commit comments

Comments
 (0)