Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Conversation

@hongwei1
Copy link
Contributor

https://json-schema.org/understanding-json-schema/about.html#about

in the json body, it is
"birthday": "22-02-1732",
But in json schema, it is wrong. No time info in the birthday
"birthday": { "type": "string", "format": "date-time" },

So I changed it to :
"birthday": { "type": "string", "format": "date" },

@mdboom
Copy link
Member

mdboom commented Aug 22, 2018

Thanks for the submission. date is actually not part of Draft 4, so it's actually correct for the current version of the document. I missed this in my updates for Draft 6, since I don't think it's in the release notes. I think what I'll do is merge this into that branch and update it to note that it's a new feature in Draft 6. (I'm trying to keep the document usable for those using Draft 4 and above).

@mdboom
Copy link
Member

mdboom commented Aug 22, 2018

Oops. Wait a minute. I think this isn't even in Draft 6, only Draft 7 (which explains why it's not in the Draft 6 release notes). I'll address this (and merge this PR) as part of #79.

@mdboom mdboom merged commit 0a04e96 into json-schema-org:master Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants