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:
|
||||
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
|
||||
|
|
|
|||
Reference in a new issue