brandur / json_schema

A JSON Schema V4 and Hyperschema V4 parser and validator.
MIT License
230 stars 45 forks source link

Draft 06 Support #99

Open philsturgeon opened 6 years ago

philsturgeon commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

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

ahoglund commented 2 years ago

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 commented 8 months ago

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

https://github.com/davishmcclurg/json_schemer