1
0
Fork 0

refactor(api): money amount is string, not number

This commit is contained in:
Vojtěch Mareš 2024-05-12 23:31:54 +02:00
parent 103241182e
commit bb0267015c
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -693,11 +693,10 @@ components:
x-go-type-package: x-go-type-package:
path: gitlab.mareshq.com/hq/yggdrasil/internal/money path: gitlab.mareshq.com/hq/yggdrasil/internal/money
amount: amount:
type: number type: string
minimum: 0 # x-go-type: decimal.Decimal
x-go-type: decimal.Decimal # x-go-type-package:
x-go-type-package: # path: github.com/shopspring/decimal
path: github.com/shopspring/decimal
required: required:
- currency - currency
- amount - amount