FEAT: update CustomerSidebarSection to support both menu and link items

This commit is contained in:
viniciusgadea
2026-03-25 15:24:59 -03:00
parent 10293ad6a9
commit 80f3913fd2
3 changed files with 20 additions and 52 deletions
+8 -48
View File
@@ -11050,53 +11050,6 @@
"description"
]
},
"CustomerSidebarLinkItem": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"link": {
"type": "string"
},
"icon": {
"type": "string"
}
},
"required": [
"type",
"title",
"link"
]
},
"CustomerSidebarMenuItem": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"icon": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomerSidebarLinkItem"
}
}
},
"required": [
"type",
"title",
"items"
]
},
"CustomerSidebarSection": {
"type": "object",
"properties": {
@@ -11106,7 +11059,14 @@
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomerSidebarMenuItem"
"oneOf": [
{
"$ref": "#/components/schemas/CustomerSidebarMenuItem"
},
{
"$ref": "#/components/schemas/CustomerSidebarLinkItem"
}
]
}
}
},