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

default and required should be incompatible in fields #1

Open
vladfaust opened this issue May 24, 2020 · 2 comments
Open

default and required should be incompatible in fields #1

vladfaust opened this issue May 24, 2020 · 2 comments

Comments

@vladfaust
Copy link
Member

{
  fields = [{
    name = test,
    type = string,
    required = true,
    default = "Would never be used"
  }]
}
@vladfaust
Copy link
Member Author

Maybe, one of required or default should be exclusively required?

@vladfaust
Copy link
Member Author

Or having neither defaults to required: true? Then with required: false defaults to empty string?

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