From 87d432dd523a6d029cfb1e21d08016b49d53b66f Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sat, 27 Apr 2024 21:09:15 +0200 Subject: [PATCH] feat(api): use custom types for uuid types --- api/v1/openapi.yaml | 66 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/api/v1/openapi.yaml b/api/v1/openapi.yaml index ce998f0..485b195 100644 --- a/api/v1/openapi.yaml +++ b/api/v1/openapi.yaml @@ -80,6 +80,9 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training responses: "200": description: A training @@ -111,6 +114,9 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training requestBody: required: true content: @@ -155,6 +161,9 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training responses: "204": description: Training deleted @@ -184,6 +193,9 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training responses: "200": description: A list of dates @@ -212,6 +224,9 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training requestBody: required: true content: @@ -251,12 +266,18 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training - name: dateID in: path required: true schema: type: string format: uuid + x-go-type: training.DateID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training responses: "204": description: Date deleted @@ -286,12 +307,18 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training - name: dateID in: path required: true schema: type: string format: uuid + x-go-type: training.DateID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training responses: "200": description: A list of attendees @@ -365,18 +392,27 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training - name: dateID in: path required: true schema: type: string format: uuid + x-go-type: training.DateID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training - name: attendeeID in: path required: true schema: type: string format: uuid + x-go-type: training.AttendeeID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training responses: "204": description: Attendee deleted @@ -406,18 +442,27 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training - name: dateID in: path required: true schema: type: string format: uuid + x-go-type: training.DateID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training - name: attendeeID in: path required: true schema: type: string format: uuid + x-go-type: training.AttendeeID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training requestBody: required: true content: @@ -457,12 +502,18 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training - name: dateID in: path required: true schema: type: string format: uuid + x-go-type: training.DateID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training responses: "200": description: A list of feedback @@ -492,6 +543,9 @@ paths: schema: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training responses: "200": description: A list of feedback @@ -586,6 +640,9 @@ components: id: type: string format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training required: - id @@ -620,6 +677,9 @@ components: id: type: string format: uuid + x-go-type: training.DateID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training address: type: string required: @@ -644,6 +704,9 @@ components: id: type: string format: uuid + x-go-type: training.AttendeeID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training company: type: string required: @@ -677,6 +740,9 @@ components: id: type: string format: uuid + x-go-type: training.FeedbackID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training required: - id