The type of the properties 'amount' and 'exchangeRate' shall be changed from 'number' to 'string' in order to be more precise what format/pattern is expected.
IS situation
amount:
type: number
minimum: 0.00000
maximum: 999999999999.99999
description: The payment amount.
example: 10.25
exchangeRate:
type: number
minimum: 0.000
maximum: 99999999.999
description: The applied exchange rate if source currency is not equal to target currency.
example: 0.957
exchangeRate:
type: string
pattern: '^\d{1,11}$|^(?=\d+[.]\d+$).{3,12}$'
maxLength: 12
description: The applied exchange rate if source currency is not equal to target currency.
example: 0.957
The type of the properties 'amount' and 'exchangeRate' shall be changed from 'number' to 'string' in order to be more precise what format/pattern is expected.
IS situation
amount: type: number minimum: 0.00000 maximum: 999999999999.99999 description: The payment amount. example: 10.25
exchangeRate: type: number minimum: 0.000 maximum: 99999999.999 description: The applied exchange rate if source currency is not equal to target currency. example: 0.957
TO-BE situation
amount: type: string pattern: '[0-9]{1,12}([.][0-9]{1,5})?' maxLength: 18 description: The payment amount. example: 10.25
exchangeRate: type: string pattern: '^\d{1,11}$|^(?=\d+[.]\d+$).{3,12}$' maxLength: 12 description: The applied exchange rate if source currency is not equal to target currency. example: 0.957