Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CheckEditable.amount to Double #345

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mccormick-wooden
Copy link

@mccormick-wooden mccormick-wooden commented Nov 19, 2024

Issue: #346

Float too imprecise for this field, and when serialized the value can materially change:

jshell> 147480.18f
$1 ==> 147480.19

We should at least change the type to Double, though I would prefer to change this field to BigDecimal - let me know if that is workable (not sure why floating point types were originally chosen for this and understand there may be constraints I'm not aware of).

Note I did not do any OpenApi generation because I couldn't get it to work correctly and I wasn't able to find any documentation. Even when using version 5.3.0, the changes it made by the generator were way beyond the scope of what I'm trying to do. If this is required, please let me know the proper way to do the generation.

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

Successfully merging this pull request may close these issues.

1 participant