Skip to content

Bug: Type validation – Strings like "-10" are changed to int when editing #75

Open
@l2aelba

Description

@l2aelba

When <ReactJson> has this src

[
  {
   "a": "a"
   "moreNestedData": {
     "b": "abc",
     "c": "-10"
   }
  }
]

and when I add onEdit and try to edit...

"a" = working good ✅ (without validation error message)
"b" = working good ✅ (without validation error message)
"c" = validation error ❌ (edit to "-20") (this is a normal string and it should be string) (why this is error?)

So my question is how does validation work, or how to disable it ?


This is seems like the type when editing... it changing to int

Without edit:
Image

When edit:
Image

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions