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 determine whether "bool" is defined ? #60

Open
xiaogu-space opened this issue Jan 12, 2023 · 1 comment
Open

How to determine whether "bool" is defined ? #60

xiaogu-space opened this issue Jan 12, 2023 · 1 comment

Comments

@xiaogu-space
Copy link

IsVisible bool    `json:"isVisible" vd:"$!nil"`

I get the error "validating".

@andeya
Copy link
Member

andeya commented Jan 12, 2023

Cannot be null when binding parameters:

IsVisible bool    `json:"isVisible,required"`

Value can not be nil when validating:

IsVisible *bool    `json:"isVisible" vd:"$!=nil"`

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