flipkart-incubator / flipkart-incubator/zjsonpatch

Type mismatch in comparison

Open
#71 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
586
Forks
153
PR merge metrics
No merged PRs in 30d

Description

Is it possible to add an enum for type mismatch as well?

In one of my use case, the value at a particular JSON patch was same but one was of type string and other was of type long and I wasn't able to figure out the reason for failure.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Java comparison logic and any existing error or enum definitions in the JSON Patch implementation. Reproduce a patch where equal-looking values differ as string and long, then verify that the resulting failure clearly identifies a type mismatch and is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.