[Quickfix-developers] how to disable range checking on enums
Brought to you by:
orenmnero
From: Nick R. <nic...@gm...> - 2008-08-01 01:57:41
|
There is no config parameter to disable the range checking on enum fields. A broker we connect to has their own user defined values for tag 102. I'd like to keep validation enabled but would like QF to not throw FIX::IncorrectTagValue for added values in tag 102. eg - 58=Value is incorrect (out of range) for this tag|371=102| As i see it I have three options, 1. disable validation all together, which I don't want to do. 2. change the xml file for that broker and add their values. probably not good from a maintainability point of view going forward <field number="102" name="CxlRejReason" type="INT"> <value enum="0" description="TOO_LATE_TO_CANCEL"/> <value enum="1" description="UNKNOWN_ORDER"/> <value enum="2" description="BROKER_OPTION"/> <value enum="100" description="BROKER_OPTION_100)"/> <value enum="101" description="BROKER_OPTION_101)"/> </field> 3. remove the enum values for that tag in the brokers xml file. <field number="102" name="CxlRejReason" type="INT"> </field> I leaning towards option 3 but thought i'd throw the question out to the group to see what other people do. regards nick |