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

How to validate bool #142 (reopen) #714

Closed
thalesfsp opened this issue Jan 4, 2021 · 3 comments
Closed

How to validate bool #142 (reopen) #714

thalesfsp opened this issue Jan 4, 2021 · 3 comments

Comments

@thalesfsp
Copy link

Package version eg. v9, v10:

v10

Issue, Question or Enhancement:

Problem still exist. How to fix?

Code sample, to showcase or reproduce:

See #142

@loeffel-io
Copy link

+1

@loeffel-io
Copy link

@deankarn ✌️

@deankarn
Copy link
Contributor

deankarn commented Jan 9, 2021

Hey @thalesfsp @loeffel-io I'm not sure why we've reopened, this has been asked many times in other issues.

TL;DR required checks if the field is its default value NOT if it exists, if you need an existence check the data type itself will need to be nullable, in this case tri-state, but bool by itself only has 2 states.

Please see #319

P.S. would love some help documenting this somewhere as it tends to keep coming up.

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

3 participants