Generate swagger documentation for label parent/child features

Co-authored-by: tankerkiller125 <3457368+tankerkiller125@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-14 02:12:47 +00:00
parent 422faffbe0
commit 5da734c8f1
9 changed files with 212 additions and 0 deletions

View File

@@ -3413,6 +3413,13 @@
"ent.LabelEdges": {
"type": "object",
"properties": {
"children": {
"description": "Children holds the value of the children edge.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ent.Label"
}
},
"group": {
"description": "Group holds the value of the group edge.",
"allOf": [
@@ -3427,6 +3434,14 @@
"items": {
"$ref": "#/components/schemas/ent.Item"
}
},
"parent": {
"description": "Parent holds the value of the parent edge.",
"allOf": [
{
"$ref": "#/components/schemas/ent.Label"
}
]
}
}
},
@@ -4634,12 +4649,22 @@
"type": "string",
"maxLength": 255,
"minLength": 1
},
"parentId": {
"type": "string",
"nullable": true
}
}
},
"repo.LabelOut": {
"type": "object",
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/components/schemas/repo.LabelSummary"
}
},
"color": {
"type": "string"
},
@@ -4655,6 +4680,9 @@
"name": {
"type": "string"
},
"parent": {
"$ref": "#/components/schemas/repo.LabelSummary"
},
"updatedAt": {
"type": "string"
}