Skip to content
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

Instance validation/Format types into main specification #8

Closed
zeth opened this issue Nov 9, 2015 · 2 comments
Closed

Instance validation/Format types into main specification #8

zeth opened this issue Nov 9, 2015 · 2 comments

Comments

@zeth
Copy link

zeth commented Nov 9, 2015

https://groups.google.com/forum/#!searchin/json-schema/format/json-schema/WInNIGWSL4U/UtTl29b-3GIJ
https://groups.google.com/forum/#!searchin/json-schema/format/json-schema/74XLt7R4ISE/FPOnAh6rq_UJ

I agree with the comment in the first post, it is too confusing; may I suggest for draft 5 or 6, JSON Schema goes back to one specification document with instance validation and format types inside it?

@zeth zeth changed the title JSON Schema extended types: ISO 8601 date Format types into main specification Nov 9, 2015
@zeth zeth changed the title Format types into main specification Instance validation/Format types into main specification Nov 9, 2015
@handrews
Copy link
Contributor

Just to be contrary ;-) as someone who started using JSON Schema with draft 4, I don't find the three-document approach confusing, and in fact appreciate having the aspects of the system split up in that way to produce smaller, more cohesive documents.

@awwright
Copy link
Member

awwright commented Sep 21, 2016

I know a few people weren't too thrilled about splitting the documents up, but the way I re-arranged it I think makes a lot more sense than the three documents did before, and as far as I can tell people think this makes sense:

  1. JSON Schema core defines the application/schema+json media type and the bare minimum of how to handle it
  2. Additional documents define vocabularies that you can use in an application/schema+json document

So this is much more modular than it is in draft-04.

I'll hopefully publish a draft soon here, and if it still doesn't make as much sense let's investigate if merging some of the new drafts back together helps things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants