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

Declare required fields through skeleton #7

Open
exavolt opened this issue Mar 20, 2021 · 2 comments
Open

Declare required fields through skeleton #7

exavolt opened this issue Mar 20, 2021 · 2 comments

Comments

@exavolt
Copy link
Member

exavolt commented Mar 20, 2021

Currently, we have support for declaring fields as required through the struct tags, but struct tags are static. We might want to add support for dynamically declaring fields that are required. It should be possible to declare some fields as required through the skeleton similarly to how we provide descriptions for fields.

When we say dynamically, we mean that the requirement is declared by the user, rather than baked into itself.

@exavolt
Copy link
Member Author

exavolt commented May 25, 2022

Another thing while we are at it. There will be cases where a field is required and its parent is also required, and there will be cases where a field is required but its parent is not. There should be a nice indicator for each.

@exavolt
Copy link
Member Author

exavolt commented Jun 7, 2022

Another note. Requirement could be generalized using constraint definition. See #11

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