fix-simple-binary-encoding icon indicating copy to clipboard operation
fix-simple-binary-encoding copied to clipboard

Can enum/set be optional?

Open OleksandrKvl opened this issue 2 years ago • 0 comments

Hi, in Euronext MDG schema there are bitset (<field id="5" name="strategyAuthorized" presence="optional" type="StrategyAuthorized_set"/>) and enum (<field id="3" name="eMM" presence="optional" type="EMM_enum"/>) fields marked as optional, is it legal? My understanding is that field with a non-built-in encoding always inherits and cannot change presence of its encoding (if only to constant). I can hardly imagine how this can be legal because 255 can be a valid enumerator and bitset can have all bits set which results in a value 255 for a set encoded by uint8. Can you confirm that it's not allowed?

OleksandrKvl avatar Jul 29 '22 15:07 OleksandrKvl