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