You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems like a perfectly valid fix; we're already special-casing Date builtins in a similar way. It's a little unfortunate that it needs to be copied twice to check for min and max, but it's not the end of the world.
There are probably a few other base types where min/max are still valid restrictions but which don't make sense as floating-point numbers. But I'm happy to accept a PR just handling DateTime in the way you've done.
Thanks!
oskar-r
pushed a commit
to oskar-r/go-xml
that referenced
this issue
Jul 24, 2020
Came across the following when trying to use xsdgen with a xsd-schema containing
Resulted in following error.
I managed to get it to parse by adding and additional else if clause which checks for DateTime in
parseSimpleRestriction()
This seems more than a walk around than a patch though.
The text was updated successfully, but these errors were encountered: