When setting a MultipleCharValue tag with multiple valid enums, I am getting an error of Value is incorrect (out of range) for this tag.
This is because the check here is checking the entire space delimited string against an individually defined enum.
Ive replicated this in a test which I am including below.
func tcMultipleCharValueValid() validateTest {
tDict, _ := datadictionary.Parse("spec/FIXT11.xml")
appDict, _ := datadictionary.Parse("spec/FIX50SP1.xml")
validator := NewValidator(defaultValidatorSettings, appDict, tDict)
builder := createFIX50SP2NewOrderSingle()
builder.Body.SetField(Tag(18), FIXString("0 1 a")) // All valid enums for ExecInst(18)
msgBytes := builder.build()
return validateTest{
TestName: "MultipleCharValue valid multi-enum",
Validator: validator,
MessageBytes: msgBytes,
DoNotExpectReject: true,
}
}
Test output: validation_test.go:103: MultipleCharValue valid multi-enum: Unexpected reject: Value is incorrect (out of range) for this tag
When setting a MultipleCharValue tag with multiple valid enums, I am getting an error of
Value is incorrect (out of range) for this tag.This is because the check here is checking the entire space delimited string against an individually defined enum.
Ive replicated this in a test which I am including below.
Test output:
validation_test.go:103: MultipleCharValue valid multi-enum: Unexpected reject: Value is incorrect (out of range) for this tag