Compare commits
2 Commits
1.0.2
...
1d068b2655
| Author | SHA1 | Date | |
|---|---|---|---|
|
1d068b2655
|
|||
|
ef25adf5ed
|
@@ -312,18 +312,11 @@ const docTemplate = `{
|
|||||||
"models.Group": {
|
"models.Group": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"id",
|
|
||||||
"name"
|
"name"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
|
||||||
"parent_group": {
|
|
||||||
"$ref": "#/definitions/models.Group"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -303,18 +303,11 @@
|
|||||||
"models.Group": {
|
"models.Group": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"id",
|
|
||||||
"name"
|
"name"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
|
||||||
"parent_group": {
|
|
||||||
"$ref": "#/definitions/models.Group"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -94,14 +94,9 @@ definitions:
|
|||||||
type: object
|
type: object
|
||||||
models.Group:
|
models.Group:
|
||||||
properties:
|
properties:
|
||||||
id:
|
|
||||||
type: integer
|
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
parent_group:
|
|
||||||
$ref: '#/definitions/models.Group'
|
|
||||||
required:
|
required:
|
||||||
- id
|
|
||||||
- name
|
- name
|
||||||
type: object
|
type: object
|
||||||
models.Runner:
|
models.Runner:
|
||||||
|
|||||||
@@ -14,9 +14,7 @@ type Runner struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Group struct {
|
type Group struct {
|
||||||
ID int `json:"id" validate:"required"`
|
Name string `json:"name" validate:"required"`
|
||||||
Name string `json:"name" validate:"required"`
|
|
||||||
ParentGroup *Group `json:"parent_group" validate:"optional"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ContractTemplateOptions struct {
|
type ContractTemplateOptions struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user