Closed AdrienLemaire closed 6 years ago
@Fandekasp I have added an example with required fields.
The required allows you to specify the keys that must be presented in the object and values can be empty. If you want a non-empty value you should use minLength property.
Sorry for the late reply. Thanks !
It looks like json-editor allows setting a
required
option to define what fields should be required or not.I tried a schema like this:
I also tried this version: I tried a schema like this:
But I can keep saving the model with empty fields in django admin. Is this property not supported ? Do I need to add some custom code to handle it myself ? Not seeing any required html attribute or class name in the generated html output, I'm not sure where to go from there.