The following are a list of some of the future common JSON Schema definitions. Included is the URL to reference and download the schema and object type definition. These shared definitions can be referenced in JSON Schemas and SMDs using JSON referencing (here is a suggested method).
I vote for "datetime" or "dateTime" over "date-time".
Now that we've established that following EcmaScript is not always
necessary or optimal (which I agree with), there's one other "problem"
with dates. Having a single recommended date format is A Good
Thing(TM). Being unable to describe other date formats is not!
Jan 8 2008 by Claudio D'angelo
For my experience datetime, date and time are enough at this time but for the future this can be inserted in specification. Can we achieve a first version of json schema specification? I think it's better supply first information to use normal formats (int, string, date, float, etc...) Kris Zyp ha scritto:
Jan 8 2008 by Kris Zyp
Ok, you win :) I changed the proposal. I used "date-time". Is there another capitilization format that you would prefer like "dateTime"? Also, I did include wording to indicate that "date-time" is the preferred date/time format. Also, do you think I should add the other XML Schema date types gYearMonth, gYear, gMonthDay, gDay, gMonth as formats?