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"
|
openapi: "3.1.0"
|
||||||
info:
|
info:
|
||||||
version: 1.0.1
|
version: 1.0.2
|
||||||
title: Backoffice API
|
title: Backoffice API
|
||||||
license:
|
license:
|
||||||
name: Proprietary
|
name: Proprietary
|
||||||
|
|
@ -539,20 +539,9 @@ components:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
open:
|
open:
|
||||||
currency:
|
$ref: "#/components/schemas/Price"
|
||||||
type: string
|
|
||||||
enum: [CZK, EUR, USD]
|
|
||||||
amount:
|
|
||||||
type: number
|
|
||||||
format: float
|
|
||||||
corporate:
|
corporate:
|
||||||
currency:
|
$ref: "#/components/schemas/Price"
|
||||||
type: string
|
|
||||||
enum: [CZK, EUR, USD]
|
|
||||||
amount:
|
|
||||||
type: number
|
|
||||||
format: float
|
|
||||||
minimum: 0
|
|
||||||
length:
|
length:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
|
@ -584,14 +573,7 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
price:
|
price:
|
||||||
type: object
|
$ref: "#/components/schemas/Price"
|
||||||
properties:
|
|
||||||
currency:
|
|
||||||
type: string
|
|
||||||
enum: [CZK, EUR, USD]
|
|
||||||
amount:
|
|
||||||
type: number
|
|
||||||
format: float
|
|
||||||
required:
|
required:
|
||||||
- date
|
- date
|
||||||
- capacity
|
- capacity
|
||||||
|
|
@ -650,6 +632,17 @@ components:
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
|
|
||||||
|
Price:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
currency:
|
||||||
|
type: string
|
||||||
|
enum: [CZK, EUR, USD]
|
||||||
|
amount:
|
||||||
|
type: number
|
||||||
|
format: float
|
||||||
|
minimum: 0
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
|
||||||
Reference in a new issue