snowplow-archive / schema-guru

JSONs -> JSON Schema
http://snowplowanalytics.com
151 stars 20 forks source link

Add ability to distinguish non-ISO-8601 datetimes from strings #2

Open alexanderdean opened 9 years ago

alexanderdean commented 9 years ago

We could output a warning for these, or a custom date-time format.

Lower priority than #1

chuwy commented 9 years ago

So we should only output warning or also try to guess?

alexanderdean commented 9 years ago

Good question. I think we should pick one or two credible date-time formats which are likely to be widely used and add custom formats for them. I reckon to start with we should only support yyyy-MM-dd as a custom format as that's simple, unambiguous and probably quite widely used...

christoph-buente commented 8 years ago

In order to generate the schema for shopify webhooks, i'd like to have the enum-set for date stringISO 8601 implented. It's widely used, see here: https://docs.shopify.com/api/reference/order