From bb0267015c45d07e557dcc5c546cd7791b73a390 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sun, 12 May 2024 23:31:54 +0200 Subject: [PATCH] refactor(api): money amount is string, not number --- api/v1/openapi.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api/v1/openapi.yaml b/api/v1/openapi.yaml index 9825936..079a032 100644 --- a/api/v1/openapi.yaml +++ b/api/v1/openapi.yaml @@ -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