abcd-j / schema-form

https://abcd-j.github.io/schema-form/
MIT License
0 stars 0 forks source link

Displaying explicit and implicit required fields #2

Closed jsheunis closed 5 months ago

jsheunis commented 7 months ago

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:

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.

P.S. this issue should probably be moved to https://github.com/psychoinformatics-de/json-editor.

jsheunis commented 5 months ago

Moved to https://github.com/psychoinformatics-de/json-editor/issues/1