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

PatchTestOperation fails when patching float value #17

Closed
MateuszGravity9 opened this issue Jun 22, 2023 · 1 comment · Fixed by #52
Closed

PatchTestOperation fails when patching float value #17

MateuszGravity9 opened this issue Jun 22, 2023 · 1 comment · Fixed by #52
Assignees
Labels
bug Something isn't working

Comments

@MateuszGravity9
Copy link
Collaborator

MateuszGravity9 commented Jun 22, 2023

Issue copied from: java-json-tools#137

There seems to be an issue related to patching Float values in JsonNumEquals.

When patching a model with a Float value - the TestOperation value is deserialized to Double - and comparing a Double to a Float numEquals fails.

I've included a testcase, that shows the issue -> see TestFloatDoubleProblem.java
jsonpatch-issue.zip

Kindly regards.

@MateuszGravity9 MateuszGravity9 self-assigned this Jun 22, 2023
@MateuszGravity9 MateuszGravity9 added the bug Something isn't working label Jun 22, 2023
@MateuszGravity9 MateuszGravity9 linked a pull request Jul 3, 2023 that will close this issue
@MateuszGravity9
Copy link
Collaborator Author

Original issue java-json-tools#137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant