feat(api): add TrainingID schema
This commit is contained in:
parent
adb793034a
commit
92f2460b6b
1 changed files with 9 additions and 10 deletions
|
|
@ -123,11 +123,7 @@ components:
|
|||
name: trainingID
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
x-go-type: training.TrainingID
|
||||
x-go-type-import:
|
||||
path: gitlab.mareshq.com/hq/yggdrasil/pkg/training
|
||||
$ref: "#/components/schemas/TrainingID"
|
||||
description: Training ID
|
||||
|
||||
schemas:
|
||||
|
|
@ -171,14 +167,17 @@ components:
|
|||
- type: object
|
||||
- properties:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
x-go-type: training.TrainingID
|
||||
x-go-type-import:
|
||||
path: gitlab.mareshq.com/hq/yggdrasil/pkg/training
|
||||
$ref: "#/components/schemas/TrainingID"
|
||||
- required:
|
||||
- id
|
||||
|
||||
TrainingID:
|
||||
type: string
|
||||
format: uuid
|
||||
x-go-type: training.TrainingID
|
||||
x-go-type-import:
|
||||
path: gitlab.mareshq.com/hq/yggdrasil/pkg/training
|
||||
|
||||
ProblemDetails:
|
||||
type: object
|
||||
description: >
|
||||
|
|
|
|||
Reference in a new issue