From 64e59085b23a44d165c68b2e3301c3be20986a5f Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Mon, 12 Dec 2022 16:02:43 +0100 Subject: [PATCH] fix: financial transaction amount float not int --- spec/swagger_helper.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb index dd06f2cc..d2811feb 100644 --- a/spec/swagger_helper.rb +++ b/spec/swagger_helper.rb @@ -183,14 +183,13 @@ RSpec.configure do |config| type: :integer }, amount: { - type: :integer, + type: :float, description: 'amount credited (negative for a debit transaction)' }, - financial_transaction_type_id: - { - type: :integer, - description: 'id of the type of the transaction' - }, + financial_transaction_type_id: { + type: :integer, + description: 'id of the type of the transaction' + }, note: { type: :string, description: 'note entered with the transaction' @@ -223,7 +222,7 @@ RSpec.configure do |config| type: :object, properties: { amount: { - type: :integer, + type: :float, description: 'amount credited (negative for a debit transaction)' }, financial_transaction_type_id: