We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a code:
type Register struct { Login string `json:"login,required"` }
After execute go vet -vettool=$$(which statictest) ./... appears error unknown JSON option "required"
go vet -vettool=$$(which statictest) ./...
unknown JSON option "required"
May be added additional tag for this? For example:
type Register struct { Login string `json:"login" easyjson:"required"` }
Or use https://github.com/go-playground/validator ? Example:
type Register struct { Login string `json:"login" validate:"required"` }
P.S. In https://github.com/thriftrw/thriftrw-go/blob/dev/Makefile i found solution - filter errors from go vet.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is a code:
After execute
go vet -vettool=$$(which statictest) ./...
appears errorunknown JSON option "required"
May be added additional tag for this? For example:
Or use https://github.com/go-playground/validator ? Example:
P.S. In https://github.com/thriftrw/thriftrw-go/blob/dev/Makefile i found solution - filter errors from go vet.
The text was updated successfully, but these errors were encountered: