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

Make "const" fields invisible #5

Open
niho opened this issue Jun 8, 2021 · 0 comments
Open

Make "const" fields invisible #5

niho opened this issue Jun 8, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@niho
Copy link
Owner

niho commented Jun 8, 2021

Problem

Schemas that have a const set are currently handled by displaying a field as usual and require the user to enter the exact value specified in the const. This is both weird and wrong.

Solution

A better way to handle const is to simply not display any field for schemas that have const set. That way the value gets included in the output, but the user is not required to enter any data.

@niho niho added the bug Something isn't working label Jun 8, 2021
@niho niho self-assigned this Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant