Skip to content

Release 8.9

Choose a tag to compare

@deankarn deankarn released this 19 Nov 21:51
· 78 commits to v8 since this release

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.