diff --git a/api/v1/openapi.yaml b/api/v1/openapi.yaml index 706994a..b0d65a2 100644 --- a/api/v1/openapi.yaml +++ b/api/v1/openapi.yaml @@ -1,6 +1,6 @@ openapi: "3.1.0" info: - version: 1.0.0 + version: 1.0.1 title: Backoffice API license: name: Proprietary @@ -446,9 +446,7 @@ paths: schema: type: array items: - type: object - properties: - $ref: "#/components/schemas/TrainingFeedback" + $ref: "#/components/schemas/TrainingFeedback" default: description: Unexpected error content: @@ -475,9 +473,7 @@ paths: schema: type: array items: - type: object - properties: - $ref: "#/components/schemas/TrainingFeedback" + $ref: "#/components/schemas/TrainingFeedback" default: description: Unexpected error content: @@ -558,7 +554,7 @@ components: format: float minimum: 0 length: - type: number + type: integer format: int32 required: - name @@ -623,12 +619,9 @@ components: required: - id - TrainingFeedback: + NewTrainingFeedback: type: object properties: - id: - type: string - format: uuid rating: type: integer format: int32 @@ -646,6 +639,17 @@ components: - rating - comment + TrainingFeedback: + allOf: + - $ref: "#/components/schemas/NewTrainingFeedback" + - type: object + properties: + id: + type: string + format: uuid + required: + - id + Error: type: object properties: