Skip to content

Commit

Permalink
feat: only collect sub-struct rule on current field has rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Mar 2, 2022
1 parent e5174a0 commit ed42e34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ type GlobalOption struct {
// - 0 use struct field name as key. (for compatible)
// - 1 use FieldTag defined name as key.
ErrKeyFmt int8
// CheckSubOnParentMarked True: only collect sub-struct rule on current field has rule.
CheckSubOnParentMarked bool
}

// global options
Expand Down

0 comments on commit ed42e34

Please sign in to comment.