Skip to content

Commit

Permalink
move down iteration operation
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmn committed Mar 2, 2019
1 parent 07bfa3c commit dbd1cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ func validateVisitGroupField(fieldDef *datadictionary.FieldDef, fieldStack []Tag
return fieldStack, err
}
} else {
fieldStack = fieldStack[1:]
if childDefs[0].Required() {
return fieldStack, RequiredTagMissing(Tag(childDefs[0].Tag()))
}
fieldStack = fieldStack[1:]
}

childDefs = childDefs[1:]
Expand Down

0 comments on commit dbd1cd3

Please sign in to comment.