quickfix-j / quickfixj

QuickFIX/J is a full featured messaging engine for the FIX protocol. - This is the official project repository.
http://www.quickfixj.org
Other
934 stars 607 forks source link

Implement group count validation #834

Closed philipwhiuk closed 1 week ago

philipwhiuk commented 1 week ago

There's a comment alluding to adding validation for group counts but as far as I can tell it's not implemented.

I'm not sure why the right approach isn't just to check and throw a FieldException if it doesn't match the value expected.

(This could be a toggleable option to avoid making this a breaking change)

https://github.com/quickfix-j/quickfixj/blob/9335f8dc1463d5269e2ff8164565a0525fb84d0c/quickfixj-base/src/main/java/quickfix/Message.java#L793

chrjohn commented 1 week ago

https://github.com/quickfix-j/quickfixj/blob/9335f8dc1463d5269e2ff8164565a0525fb84d0c/quickfixj-base/src/main/java/quickfix/DataDictionary.java#L807

Did you mean this or did I misunderstand?

philipwhiuk commented 1 week ago

Ah yes, I was confused by the validation essentially being in two places.

chrjohn commented 1 week ago

Do you think this could be improved? But probably is no small change...