Firstly, required fields that are direct properties of a schema are easily annotated.
Then, some properties of a schema might be:
objects that have required and non-required properties themselves\
arrays that may have a minItems requirement
array item fields that may be required or not
Currently, only the direct required properties of a schema, and a property that is an object which itself has required properties, can be annotated as required. The rest are still to be figured out.
The
psyinf
json-editor theme (see https://github.com/psychoinformatics-de/json-editor/commit/779afedbbf64c78a5ce8cf2ecfc9f0c2b6176955) allows required fields to be displayed explicitly to the user, as opposed to the user only finding out on submission/validation.Firstly, required fields that are direct properties of a schema are easily annotated.
Then, some properties of a schema might be:
minItems
requirementCurrently, only the direct required properties of a schema, and a property that is an object which itself has required properties, can be annotated as required. The rest are still to be figured out.
P.S. this issue should probably be moved to https://github.com/psychoinformatics-de/json-editor.