Skip to content

TestOperation fails when patching float value #137

@s-jepsen

Description

@s-jepsen

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

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions