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

Pre-select when enum has single value #4

Open
acka47 opened this issue Sep 16, 2019 · 1 comment
Open

Pre-select when enum has single value #4

acka47 opened this issue Sep 16, 2019 · 1 comment
Assignees

Comments

@acka47
Copy link
Member

acka47 commented Sep 16, 2019

See, e.g. this schema: https://github.com/lobid/lobid.github.com/blob/d3232d016663a689727add65356412f17cd5cef7/data/2019-09-xx-oer-schema.json

Twice (here and here), there is only one value enumerated for type. It would be nice if it was pre-selected in the respective dropdown.

@acka47
Copy link
Member Author

acka47 commented Sep 24, 2020

I just noticed that there also is const in JSON Schema, see https://json-schema.org/understanding-json-schema/reference/generic.html#constant-values. We might also use this for pre-selecting values...

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

2 participants