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

support for draft V6, V7 and V2019-09 #54

Closed
vinaygoureddy opened this issue Dec 4, 2017 · 16 comments
Closed

support for draft V6, V7 and V2019-09 #54

vinaygoureddy opened this issue Dec 4, 2017 · 16 comments

Comments

@vinaygoureddy
Copy link

I am looking to use constant (json-schema-org/json-schema-spec#58) from draft v6 and there is a proposal to use Switch, so would there be any chance of supporting for draft v6 in future?

@stevehu
Copy link
Contributor

stevehu commented Dec 4, 2017

Yes. I am planning to refactor it with IoC service this holiday season. After that the user can config there instance with v4 or v6 support and they can replace some of the validators if they like just by putting a jar in the classpath with config change in service.yml.

@davsclaus
Copy link

Adding support for draft v6 would be really cool. We have just switched to use this library in our camel-json-validator component

source: https://github.com/apache/camel/tree/master/components/camel-json-validator
docs: https://github.com/apache/camel/blob/master/components/camel-json-validator/src/main/docs/json-validator-component.adoc

@stevehu
Copy link
Contributor

stevehu commented Jan 15, 2018

@davsclaus Thanks a lot for sharing the good news. This is very encouraging to see this library is used and enhanced by the community. It is a very small component in light platform but we are using it intensively in light-rest-4j, light-graphql-4j and light-hybrid-4j frameworks. I recently wrote an OpenAPI 3.0 parser and there are a lot of ideas can be leverage here.

@handrews
Copy link

Note that draft-07 (which is backwards-compatible with draft-06) is out:
http:https://json-schema.org/specification.html

@dillonredding
Copy link

Any news on supporting draft-06 or draft-07?

@stevehu
Copy link
Contributor

stevehu commented Sep 7, 2018

I am planning to rewrite this library with light-4j/service dependency injection so that we can support all version of specifications.

@CHENXCHEN
Copy link

Any news on supporting draft-06 or draft-07?

@stevehu
Copy link
Contributor

stevehu commented Jul 24, 2019

The team has been busy to support the existing use cases and enhancements mainly for OpenAPI 3.0 specification. However, there are so many validators have been updated to support v6 and v7 features. Everyone is welcome to open issues or submit PRs if you see one of the validators is missing or need to be enhanced to support the latest specification.

@handrews
Copy link

@CHENXCHEN @stevehu note that there is serious discussion going on for OpenAPI 3.1 to go to draft-08 (a.k.a. draft/2019-08, because for complicated IETF reasons, the draft-NN numbering got kinda weird). OAI/OpenAPI-Specification#1977

While draft/2019-08 will take some time to be adopted, its extensibility features make it better suited for use cases like code generation. We are hoping that draft/2019-08 will be a major new baseline for both JSON Schema and OpenAPI, since it addresses most of the major long-standing problems with the project, including those that caused OpenAPI to use an incompatible modification of JSON Schema in OAS 3.0.

@stevehu
Copy link
Contributor

stevehu commented Jul 24, 2019

@handrews Thanks a lot for the link and I am so happy that OAI is fully adopting JSON schema specification with only the extensions. I am constantly making decisions in sticking with JSON schema or supporting OpenAPI when working with this library. Do you know when the v3.1 will be released?

@handrews
Copy link

@stevehu I'm not that directly involved with the OAS 3.1 schedule, although there's probably something about it on their site or github repo somewhere. It's not a 100% done deal on the convergence, but it is what everyone is working towards so I suspect we'll sort it out.

@stevehu
Copy link
Contributor

stevehu commented Jul 25, 2019

@handrews Thanks a lot. We will be monitoring the progress and implement the enhancements along the way.

@handrews
Copy link

draft/2019-08 is in final-ish review (I need to update this page) but be warned that we already know that the stuff relating to the vocabulary concept in the Core spec is not clear enough for folks. I'm working on that this week.

@handrews
Copy link

@stevehu stevehu changed the title support for draft v6 support for draft V6, V7 and V2019-09 Nov 15, 2019
stevehu added a commit that referenced this issue Nov 15, 2019
stevehu added a commit that referenced this issue Nov 16, 2019
stevehu added a commit that referenced this issue Nov 18, 2019
fixes #54 support for draft V6, V7 and V2019-09
@stevehu stevehu reopened this Dec 5, 2019
@stevehu
Copy link
Contributor

stevehu commented Dec 5, 2019

There are still several validators that are not implemented. Let's keep this open until everything is done.

@stevehu
Copy link
Contributor

stevehu commented Mar 12, 2020

Close this issue and track individual issues with separate numbers.

@stevehu stevehu closed this as completed Mar 12, 2020
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