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
a flag is needed to identify that validation should run for a struct i.e. struct is required but not validate it's containing fields.
example: type Inner struct{ Test string validate:"len=5" }
validate:"len=5"
type Outer struct{ InnerStruct Inner validate:"required,structonly" }
validate:"required,structonly"
in the above example InnerStruct will validate on the required, but Inner's Test field will not be validated.
The text was updated successfully, but these errors were encountered:
issue-#18
622107d
add “structonly” tag for struct only and not field validation
Merge pull request #19 from joeybloggs/v3-development
c9d7d65
Merge pull request go-playground#18 from Kdyby/enumag-patch-expression
6738566
Fix usage of Expression constraint
issue-go-playground#18
d67afd2
Merge pull request go-playground#19 from joeybloggs/v3-development
120ed31
deankarn
No branches or pull requests
a flag is needed to identify that validation should run for a struct i.e. struct is required but not validate it's containing fields.
example:
type Inner struct{
Test string
validate:"len=5"
}
type Outer struct{
InnerStruct Inner
validate:"required,structonly"
}
in the above example InnerStruct will validate on the required, but Inner's Test field will not be validated.
The text was updated successfully, but these errors were encountered: