Closed oskar-r closed 4 years ago
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!
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
This seems more than a walk around than a patch though.