Skip to content

State Which Version of Json Schma Spec #29

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

Closed
four43 opened this issue Feb 18, 2013 · 7 comments
Closed

State Which Version of Json Schma Spec #29

four43 opened this issue Feb 18, 2013 · 7 comments

Comments

@four43
Copy link

four43 commented Feb 18, 2013

Please state which version of the Json Schema spec is supported. Maybe create a supported feature list?

Thanks a lot for this project. It is a great and necessary component. I'm using Zend Framework 2.1 and things are going well.

EDIT: Things seem to be working well, it just took me a second to figure out I was using the wrong type of "required", the current version of the validator seems to like the http://json-schema.org/draft-03/schema spec as opposed to the latest draft-04 where they changed how they were doing required propertied.

@MalteWunsch
Copy link

+1

I also validated JSON with the help of json-schema against the schema draft v3 successfully. Now I'm looking for a draft v4, which might differ a lot as a quick diff suggests: http://tools.ietf.org/rfcdiff?url2=draft-zyp-json-schema-04.txt

@mchiocca
Copy link

With the merge of #41 to master all of draft-03 is now implemented except for certain functionality related to $ref, $schema, and id. Also, #41 added support for draft-04 required so now the current implementation supports both the draft-03 and draft-04 form. Please see #32 for details about required. Thanks!

@igorw
Copy link
Contributor

igorw commented Aug 1, 2013

draft 4 moved most of the constraints to a new spec: http://tools.ietf.org/html/draft-fge-json-schema-validation-00

@mchiocca
Copy link

mchiocca commented Aug 1, 2013

The current json-schema implementation supports both draft-03 and draft-04 per each of their respective specifications with the exception of some aspects of $ref, $schema, and id. Both drafts are fully tested using the JSON Schema Test Suite

@mirfilip
Copy link
Contributor

This package is probably the most state-of-art json-schema validator in PHP valley. It would be greatly appreciated to have it stated what draft version is supported, along with implemented/missing features table. You know, just to avoid people adding issues that you know isn't there and to avoid them being caught up in the middle of developing the schema, just because they meet this missing feature.

@bighappyface
Copy link
Collaborator

@mirfilip if we base the support listing on what JSON Schema Test Suite files are not being skipped then we are nearly there for Draft 3 and Draft 4.

We can open a PR and add a feature support table in the README to make it clear on the repo home page what is or is not supported.

@mirfilip
Copy link
Contributor

@bighappyface Right. I will prepare some kind of table. Maybe sphinx based docs would be cool. I will also go through the skipped suites and double check if there are no false positives etc.

@erayd erayd mentioned this issue May 15, 2017
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

6 participants