It seems that the min and max inclusive facets are not working for ANON classes. If I make an element and set the restriction directly to 0 and 15 respecively on a xs:unsignedByte type and build the class that uses the element, I can set it to 16 and I don't get a facet error so I belive it's real. If I then name the type and then use it in the element I can see the facets being generated and I get the expected facet error on setting an out of range val.
-Jim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems that the min and max inclusive facets are not working for ANON
classes. If I make an element and set the restriction directly to 0 and 15
respecively on a xs:unsignedByte type and build the class that uses the
element, I can set it to 16 and I don't get a facet error so I belive it's
real. If I then name the type and then use it in the element I can see the
facets being generated and I get the expected facet error on setting an out
of range val.
it might have been a false alarm, when trying to create an shorter clean example I couldn't get it to do it and something I did while cleaning up my xsds seems to have "fixed" what was going on. I could have had a bug in my xsds that was causing the facet I was spot checking to fail.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems that the min and max inclusive facets are not working for ANON classes. If I make an element and set the restriction directly to 0 and 15 respecively on a xs:unsignedByte type and build the class that uses the element, I can set it to 16 and I don't get a facet error so I belive it's real. If I then name the type and then use it in the element I can see the facets being generated and I get the expected facet error on setting an out of range val.
-Jim
If you create a small self-contained reproducing case and report it at
https://github.com/pabigot/pyxb/issues I'll take a look.
Peter
On Thu, Oct 22, 2015 at 9:22 AM, James Dattolo jdattolo@users.sf.net
wrote:
it might have been a false alarm, when trying to create an shorter clean example I couldn't get it to do it and something I did while cleaning up my xsds seems to have "fixed" what was going on. I could have had a bug in my xsds that was causing the facet I was spot checking to fail.