1
0
Fork 0

fix(openapi): move price to component

This commit is contained in:
Vojtěch Mareš 2024-02-28 21:04:58 +01:00
parent 63cc8628bc
commit 14587e612f
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.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: