fix(openapi): move price to component
This commit is contained in:
parent
63cc8628bc
commit
14587e612f
1 changed files with 15 additions and 22 deletions
|
|
@ -1,6 +1,6 @@
|
|||
openapi: "3.1.0"
|
||||
info:
|
||||
version: 1.0.1
|
||||
version: 1.0.2
|
||||
title: Backoffice API
|
||||
license:
|
||||
name: Proprietary
|
||||
|
|
@ -539,20 +539,9 @@ components:
|
|||
type: object
|
||||
properties:
|
||||
open:
|
||||
currency:
|
||||
type: string
|
||||
enum: [CZK, EUR, USD]
|
||||
amount:
|
||||
type: number
|
||||
format: float
|
||||
$ref: "#/components/schemas/Price"
|
||||
corporate:
|
||||
currency:
|
||||
type: string
|
||||
enum: [CZK, EUR, USD]
|
||||
amount:
|
||||
type: number
|
||||
format: float
|
||||
minimum: 0
|
||||
$ref: "#/components/schemas/Price"
|
||||
length:
|
||||
type: integer
|
||||
format: int32
|
||||
|
|
@ -584,14 +573,7 @@ components:
|
|||
type: integer
|
||||
format: int32
|
||||
price:
|
||||
type: object
|
||||
properties:
|
||||
currency:
|
||||
type: string
|
||||
enum: [CZK, EUR, USD]
|
||||
amount:
|
||||
type: number
|
||||
format: float
|
||||
$ref: "#/components/schemas/Price"
|
||||
required:
|
||||
- date
|
||||
- capacity
|
||||
|
|
@ -650,6 +632,17 @@ components:
|
|||
required:
|
||||
- id
|
||||
|
||||
Price:
|
||||
type: object
|
||||
properties:
|
||||
currency:
|
||||
type: string
|
||||
enum: [CZK, EUR, USD]
|
||||
amount:
|
||||
type: number
|
||||
format: float
|
||||
minimum: 0
|
||||
|
||||
Error:
|
||||
type: object
|
||||
properties:
|
||||
|
|
|
|||
Reference in a new issue