fix(openapi): missing NewTrainingFeedback component and do not use properties when using $ref
This commit is contained in:
parent
f679dff15d
commit
bb8e1aceb1
1 changed files with 16 additions and 12 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Reference in a new issue