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" openapi: "3.1.0"
info: info:
version: 1.0.0 version: 1.0.1
title: Backoffice API title: Backoffice API
license: license:
name: Proprietary name: Proprietary
@ -446,9 +446,7 @@ paths:
schema: schema:
type: array type: array
items: items:
type: object $ref: "#/components/schemas/TrainingFeedback"
properties:
$ref: "#/components/schemas/TrainingFeedback"
default: default:
description: Unexpected error description: Unexpected error
content: content:
@ -475,9 +473,7 @@ paths:
schema: schema:
type: array type: array
items: items:
type: object $ref: "#/components/schemas/TrainingFeedback"
properties:
$ref: "#/components/schemas/TrainingFeedback"
default: default:
description: Unexpected error description: Unexpected error
content: content:
@ -558,7 +554,7 @@ components:
format: float format: float
minimum: 0 minimum: 0
length: length:
type: number type: integer
format: int32 format: int32
required: required:
- name - name
@ -623,12 +619,9 @@ components:
required: required:
- id - id
TrainingFeedback: NewTrainingFeedback:
type: object type: object
properties: properties:
id:
type: string
format: uuid
rating: rating:
type: integer type: integer
format: int32 format: int32
@ -646,6 +639,17 @@ components:
- rating - rating
- comment - comment
TrainingFeedback:
allOf:
- $ref: "#/components/schemas/NewTrainingFeedback"
- type: object
properties:
id:
type: string
format: uuid
required:
- id
Error: Error:
type: object type: object
properties: properties: