josdejong / josdejong/jsoneditor

Inconsistent validation for string type fields.

Open
#1,541 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.