jsoneditor icon indicating copy to clipboard operation
jsoneditor copied to clipboard

disable array items type autodetection if validation specify single allowed type

Open DarkFisk opened this issue 2 years ago • 1 comments

if array items schema validation allows only single type we shouldn't autodetect type. yes, it will show warnings but you have to for every row re-select type in order to fix. my case is array of strings but it contains numbers with leading zero '0' or other number... after our last fix now it correctly detect type for numbers starting from 0, but all others detected as numbers and show warnings... @josdejong what do you think?

DarkFisk avatar Sep 21 '23 21:09 DarkFisk

It would be very neat to extend the type detection to utilize JSON Schema information if available!

josdejong avatar Sep 22 '23 08:09 josdejong