Skip to content

Commit

Permalink
#366 for Incorrect NumInGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmn committed Mar 1, 2019
1 parent 3ce26af commit 07bfa3c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ type validator interface {

type validatorSettings struct {
CheckFieldsOutOfOrder bool
RejectInvalidMessage bool

RejectInvalidMessage bool
}

//Default configuration for message validation.
//See http://www.quickfixengine.org/quickfix/doc/html/configuration.html.
var defaultValidatorSettings = validatorSettings{
CheckFieldsOutOfOrder: true,
RejectInvalidMessage: true,
RejectInvalidMessage: true,
}

type fixValidator struct {
Expand Down Expand Up @@ -87,8 +86,6 @@ func validateFIX(d *datadictionary.DataDictionary, settings validatorSettings, m
}
}



return nil
}

Expand Down Expand Up @@ -212,6 +209,7 @@ 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()))
}
Expand Down

0 comments on commit 07bfa3c

Please sign in to comment.