1
0
Fork 0

fix(openapi): missing NewTrainingFeedback component and do not use properties when using $ref

This commit is contained in:
Vojtěch Mareš 2024-02-28 20:53:59 +01:00
parent f679dff15d
commit bb8e1aceb1
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -1,6 +1,6 @@
openapi: "3.1.0"
info:
version: 1.0.0
version: 1.0.1
title: Backoffice API
license:
name: Proprietary
@ -446,8 +446,6 @@ paths:
schema:
type: array
items:
type: object
properties:
$ref: "#/components/schemas/TrainingFeedback"
default:
description: Unexpected error
@ -475,8 +473,6 @@ paths:
schema:
type: array
items:
type: object
properties:
$ref: "#/components/schemas/TrainingFeedback"
default:
description: Unexpected error
@ -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: