mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2026-01-04 20:14:54 +01:00
Generate swagger documentation for label parent/child features
Co-authored-by: tankerkiller125 <3457368+tankerkiller125@users.noreply.github.com>
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -2112,6 +2112,11 @@ components:
|
||||
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:
|
||||
@@ -2121,6 +2126,10 @@ components:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/ent.Item"
|
||||
parent:
|
||||
description: Parent holds the value of the parent edge.
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/ent.Label"
|
||||
ent.Location:
|
||||
type: object
|
||||
properties:
|
||||
@@ -2956,9 +2965,16 @@ components:
|
||||
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
|
||||
createdAt:
|
||||
@@ -2969,6 +2985,8 @@ components:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
parent:
|
||||
$ref: "#/components/schemas/repo.LabelSummary"
|
||||
updatedAt:
|
||||
type: string
|
||||
repo.LabelSummary:
|
||||
|
||||
@@ -3214,6 +3214,13 @@
|
||||
"ent.LabelEdges": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"children": {
|
||||
"description": "Children holds the value of the children edge.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/ent.Label"
|
||||
}
|
||||
},
|
||||
"group": {
|
||||
"description": "Group holds the value of the group edge.",
|
||||
"allOf": [
|
||||
@@ -3228,6 +3235,14 @@
|
||||
"items": {
|
||||
"$ref": "#/definitions/ent.Item"
|
||||
}
|
||||
},
|
||||
"parent": {
|
||||
"description": "Parent holds the value of the parent edge.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ent.Label"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -4435,12 +4450,22 @@
|
||||
"type": "string",
|
||||
"maxLength": 255,
|
||||
"minLength": 1
|
||||
},
|
||||
"parentId": {
|
||||
"type": "string",
|
||||
"x-nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"repo.LabelOut": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"children": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/repo.LabelSummary"
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -4456,6 +4481,9 @@
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"parent": {
|
||||
"$ref": "#/definitions/repo.LabelSummary"
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
@@ -534,6 +534,11 @@ definitions:
|
||||
type: object
|
||||
ent.LabelEdges:
|
||||
properties:
|
||||
children:
|
||||
description: Children holds the value of the children edge.
|
||||
items:
|
||||
$ref: '#/definitions/ent.Label'
|
||||
type: array
|
||||
group:
|
||||
allOf:
|
||||
- $ref: '#/definitions/ent.Group'
|
||||
@@ -543,6 +548,10 @@ definitions:
|
||||
items:
|
||||
$ref: '#/definitions/ent.Item'
|
||||
type: array
|
||||
parent:
|
||||
allOf:
|
||||
- $ref: '#/definitions/ent.Label'
|
||||
description: Parent holds the value of the parent edge.
|
||||
type: object
|
||||
ent.Location:
|
||||
properties:
|
||||
@@ -1371,11 +1380,18 @@ definitions:
|
||||
maxLength: 255
|
||||
minLength: 1
|
||||
type: string
|
||||
parentId:
|
||||
type: string
|
||||
x-nullable: true
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
repo.LabelOut:
|
||||
properties:
|
||||
children:
|
||||
items:
|
||||
$ref: '#/definitions/repo.LabelSummary'
|
||||
type: array
|
||||
color:
|
||||
type: string
|
||||
createdAt:
|
||||
@@ -1386,6 +1402,8 @@ definitions:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
parent:
|
||||
$ref: '#/definitions/repo.LabelSummary'
|
||||
updatedAt:
|
||||
type: string
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user