-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jts] Support all XML Schema 2 types for type field #124
Comments
One option would be to:
This puts a little more context around the usage, keeping the full compatibility, but avoiding implementers having to support all of it? |
@paulfitz @pwalsh @danfowler @jpmckinney @morty thoughts welcome here. Below are my current thoughts: My general feeling is we want to preserve simplicity. Thus:
On the questions of special subtypes of e.g. integer I've been thinking:
Overall, I'm generally averse to adding lots more types or even formats as they add complexity for implementors and users and they seem quite specialist and mainly of value for validation. Happy to hear input as not certain here. Finally: the special datetime types like: AsideAs a general point I think we want to offer a pattern to users of how they would extend the type system if they did want to persist specific information. For example, SQL users may need to store the specific type information e.g. that it is double vs decimal. |
I'm really not a fan of that type list from XML Schema 2, and think there is great value in us having a (much) smaller type surface. I think the majority of that list can be handled in JTS as formats/conditions on types. Perhaps there is value in a section of the spec that demonstrates this. Personally not too convinced on the However, having said that, I've actually built a rather complex calendar/scheduling app, where we definitely needed to use days/months/weeks/hours as distinct objects in the user interface. Persistent data storage was a combination of strings, and date time objects that stored some meaningless info (example: ignore date, just use hour, if schedule repeats weekly). So, that gives us a use case for those |
I agree that the existing The use cases for dates without years are limited. There is also no ISO or similar standard for representing these. On the other hand, ISO 8601 describes formats matching |
@pwalsh @jpmckinney thanks, very useful and judicious comments - as always! |
@rgrp can we move to close this? |
FIXED. I've moved the two points from @jpmckinney re gYear and gYearMonth to #105 |
From http://www.w3.org/TR/xmlschema-2/
Specifically, list is:
What do we do about existing items not in that list?
Suggest we deprecate and remap ...
Pros
Full compatibility
Cons
Massively expanded list of types that implementors must support and users must know about.
The text was updated successfully, but these errors were encountered: