josdejong / josdejong/jsoneditor
Inconsistent validation for string type fields.
Open
question
- Dominant language
- JavaScript
- Stars
- 12.3k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
I have multiple fields where the type is defined as: [string, null] some fields will allow a integer value whereas other will show a warning. For example, I have two fields defined as:
```
{"title":"Os Minorversion","type":["string","null"]}
{"title":"Os Version","type":["string","null"]}
```
Os Version doesn't show a warning when entering an integer, however, Os Minorversion will.
I'm using jsoneditor v9.10.2 within an Angular v14.3.0 project.
I've tried rolling back all the way to jsoneditor v9.7.4, but this issue still persists.
Contributor guide
Assessment
This issue has not been assessed yet.