Skip to content

PatchTestOperation fails when patching float value #17

@MateuszGravity9

Description

@MateuszGravity9

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.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions