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:
path: gitlab.mareshq.com/hq/yggdrasil/internal/money
amount:
type: number
minimum: 0
x-go-type: decimal.Decimal
x-go-type-package:
path: github.com/shopspring/decimal
type: string
# x-go-type: decimal.Decimal
# x-go-type-package:
# path: github.com/shopspring/decimal
required:
- currency
- amount