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

Draft 06 Support #99

Open
philsturgeon opened this issue May 1, 2018 · 7 comments
Open

Draft 06 Support #99

philsturgeon opened this issue May 1, 2018 · 7 comments

Comments

@philsturgeon
Copy link

With JSON Schema back in acrtive development for some time now, it's time to start supporting newer drafts than draft 04. They've all matured a whole bunch, and people want to use the fantastic new functionality available in these drafts.

Here are migration notes for updating from draft 04 to drafrt 06 (ignore draft 05, it's not really a thing).

@brandur
Copy link
Owner

brandur commented May 1, 2018

Thanks Phils (and man, those are some amazing migration notes!).

Let's see if we get anymore takers on #23 before going too far on this one, but +1 — I'd like to see support for more modern versions in here. I'm not sure how much effort that I'd be able to contribute, but it would be at least some.

@philsturgeon
Copy link
Author

@brandur out of interest, what would "any takers" mean? Are you open to a new collaborator or maintainer to lighten your load? I might know somebody/a few.

@brandur
Copy link
Owner

brandur commented May 12, 2018

@brandur out of interest, what would "any takers" mean? Are you open to a new collaborator or maintainer to lighten your load? I might know somebody/a few.

Yep, definitely open to new collaboration. In any ideal situation, this gem would be owned by someone who's using its functionality more directly and who has more time to do a good job maintaining it.

@philsturgeon
Copy link
Author

philsturgeon commented May 15, 2018

Nice! Well, I just porposed this to @davishmcclurg off of json_schemer (another JSON Schema ruby implementation with full support for draft 06/07) that a super-gem needs to be created, and wherever it lives, I have the time and capacity to make it happen.

My position at WeWork is to create/maintain/evangelise stuff like this, and adding support for modern drafts will not only help me out, but help out JSON Schema, which is a double win for me. :)

@davishmcclurg if we attribute you fully, can I use your code as inspiration for a PR here, adding multiple draft support to json_schema? It might end up being a little more than inspiration, but it wont just be 100% a copy. 😅

@davishmcclurg
Copy link

@philsturgeon that sounds great to me. Let me know if you need anything to get it done.

@ahoglund
Copy link

We are looking at updating our OpenAPI description to 3.1, which uses draft 2020-12. We also use this gem (version 0.20.0). From reading this thread it doesn't seem like there are any plans of supporting 2020-12 (or draft 06 for that matter) any time soon. Are there alternative viable paths to getting support for these latests drafts of JSON schema?

@sandstrom
Copy link

For people looking, there is also this gem that is up to date and support the recent draft:

https://github.com/davishmcclurg/json_schemer

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

5 participants