jdorn / json-editor

JSON Schema Based Editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hidden properties are validated.

kris2214 opened this issue · comments

Consider I have a json schema as below:
.......
"properties" : {
"name": {
"type":"string",
"hide":"true"
}
......
},
"required": ["name"]

The name field is hidden, but also required.
I was using angular-schema-form previously, where name field was not displayed in UI and also not validated.
I migrated to json-editor, now the name filed is not displayed, however, name is validated and required error message is shown in UI.
Any approach to prevent hidden fields from being validated ?