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"
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: