Skip to content

Fixed multipleOf validation issue: convert float to Decimal#11

Open
koszti wants to merge 2 commits intocubedevinc:masterfrom
koszti:fix/multipleOf-validation-error
Open

Fixed multipleOf validation issue: convert float to Decimal#11
koszti wants to merge 2 commits intocubedevinc:masterfrom
koszti:fix/multipleOf-validation-error

Conversation

@koszti
Copy link

@koszti koszti commented Oct 14, 2018

Failing to load floats into Postgres when the values are validated by "multipleOf": x in the schema. This is reported in issue #6 and I was facing the same problem .

The reason is that multipleOf requires values as Decimals and we need to convert the input floats to Decimals to work correctly. The idea and the logic is copied from target-stitch

@koszti koszti mentioned this pull request Oct 23, 2018
@robmoore
Copy link

I'm running into this so adding my +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants