This results in a chain of EXIP_NOT_IMPLEMENTED_YET errors in treeTableToGrammars.c and grammarGenerator.c via the TRY macros that disappears when I comment out the "lrrpAngle" definition.
From the docs and discussion, it appears that unions are supposed to be supported, and simply encoded as string values, but in this case that does not appear to work. Could it be the min/max restrictions causing the errors, and, if so, is there a way to bypass those?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I thought there is a bug in the union handling code and actually spend some time to try the schema snippets you posted.
Everything is working fine with v0.5.3 (see the attachments)
Running into an issue while attempting to use exipg on an EXI encoded schema, traced it back to the following:
<xs:simpleType name="lrrpAngle">
<xs:union memberTypes="intAngle floatAngle"/>
</xs:simpleType>
where intAngle is
<xs:simpleType name="intAngle">
<xs:restriction base="xs:unaignedByte">
<xs:maxInclusive value="180"/>
</xs:restriction>
</xs:simpleType>
and floatAngle is
<xs:simpleType name="floatAngle">
<xs:restriction base="xs:float">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="180"/>
</xs:restriction>
</xs:simpleType>
This results in a chain of EXIP_NOT_IMPLEMENTED_YET errors in treeTableToGrammars.c and grammarGenerator.c via the TRY macros that disappears when I comment out the "lrrpAngle" definition.
From the docs and discussion, it appears that unions are supposed to be supported, and simply encoded as string values, but in this case that does not appear to work. Could it be the min/max restrictions causing the errors, and, if so, is there a way to bypass those?
Hi,
I thought there is a bug in the union handling code and actually spend some time to try the schema snippets you posted.
Everything is working fine with v0.5.3 (see the attachments)
I would appreciate if you in the future post detailed bug reports at https://sourceforge.net/p/exip/bugs/
From what you shared I am unable to figure out why you get this error.
Both unions and min/max restrictions should work.
Rumen