From 92f2460b6baa110c9bb10658d4ab75783f3b8db5 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sat, 4 May 2024 17:19:30 +0200 Subject: [PATCH] feat(api): add TrainingID schema --- api/v1/openapi.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/api/v1/openapi.yaml b/api/v1/openapi.yaml index 11a1d4a..328af04 100644 --- a/api/v1/openapi.yaml +++ b/api/v1/openapi.yaml @@ -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: >