github go-playground/validator v8.9
Release 8.9

latest releases: v10.19.0, v10.18.0, v10.17.0...
8 years ago

Adding Tag

nostructlevel - Same as structonly tag except that any struct level validations will not run.

When would I ever use that?

Lets say you have a User struct that has struct level validations and you also use the same User struct as a field within another, say as a CreatedBy field that you know will not have any validation errors as it grabs that info directly from the database, however still need to validate the CreatedBy field was set.

Don't miss a new validator release

NewReleases is sending notifications on new releases.