refactor(api): money amount is string, not number
This commit is contained in:
parent
103241182e
commit
bb0267015c
1 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Reference in a new issue