bytedance/go-tagexpr

How to determine whether "bool" is defined ?

Opened this issue · 1 comments

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

I get the error "validating".

Cannot be null when binding parameters:

IsVisible bool    `json:"isVisible,required"`

Value can not be nil when validating:

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