Title: TestOperation fails when patching float value · Issue #137 · java-json-tools/json-patch · GitHub
Open Graph Title: TestOperation fails when patching float value · Issue #137 · java-json-tools/json-patch
X Title: TestOperation fails when patching float value · Issue #137 · java-json-tools/json-patch
Description: 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...
Open Graph Description: 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 t...
X Description: 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 t...
Opengraph URL: https://github.com/java-json-tools/json-patch/issues/137
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TestOperation fails when patching float value","articleBody":"There seems to be an issue related to patching Float values in JsonNumEquals.\r\n\r\nWhen patching a model with a Float value - the TestOperation value is deserialized to Double - and comparing a Double to a Float numEquals fails.\r\n\r\nI've included a testcase, that shows the issue -\u003e see TestFloatDoubleProblem.java\r\n[jsonpatch-issue.zip](https://github.com/java-json-tools/json-patch/files/9605876/jsonpatch-issue.zip)\r\n\r\n\r\n\r\nKindly regards.\r\n","author":{"url":"https://github.com/s-jepsen","@type":"Person","name":"s-jepsen"},"datePublished":"2022-09-20T08:55:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/137/json-patch/issues/137"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8a8a3d1e-faf4-e076-c4a9-11494f875e65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 869E:91A22:904FF5A:BA62E99:6976ED73 |
| html-safe-nonce | 139c20763ba78e0a295928579a58ee28d8acd7fbcf4eed32f7ee84c529d6bd98 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjlFOjkxQTIyOjkwNEZGNUE6QkE2MkU5OTo2OTc2RUQ3MyIsInZpc2l0b3JfaWQiOiIyNjY2ODQ3MjcwMDQ4NTU4NDUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e3c8f1f1c56c41cacca83d56e42926e2444198fce12a9cb66d80d187fa9615dc |
| hovercard-subject-tag | issue:1379058444 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/java-json-tools/json-patch/137/issue_layout |
| twitter:image | https://opengraph.githubassets.com/98d8a4b94b8dcaca71e546f691de8388797773056380217c4f571f82513711ee/java-json-tools/json-patch/issues/137 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98d8a4b94b8dcaca71e546f691de8388797773056380217c4f571f82513711ee/java-json-tools/json-patch/issues/137 |
| og:image:alt | 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 t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | s-jepsen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/java-json-tools/json-patch git https://github.com/java-json-tools/json-patch.git |
| octolytics-dimension-user_id | 28316821 |
| octolytics-dimension-user_login | java-json-tools |
| octolytics-dimension-repository_id | 8911984 |
| octolytics-dimension-repository_nwo | java-json-tools/json-patch |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8911984 |
| octolytics-dimension-repository_network_root_nwo | java-json-tools/json-patch |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width