Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying explicit and implicit required fields #1

Open
jsheunis opened this issue Jan 15, 2024 · 0 comments
Open

Displaying explicit and implicit required fields #1

jsheunis opened this issue Jan 15, 2024 · 0 comments

Comments

@jsheunis
Copy link
Collaborator

The psyinf json-editor theme (see 779afed) 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:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant