leadpony / justify

Justify is a JSON validator based on JSON Schema Specification and Jakarta JSON Processing API (JSON-P).
Apache License 2.0
96 stars 18 forks source link

Custom keywords impl support #53

Open Navgeet opened 4 years ago

Navgeet commented 4 years ago

Hi, my company is considering using this library. We want to be able to extend the JSON Schema spec with custom keywords, but it is not currently supported. I would be happy to discuss this change with you and contribute.

I tried implementing a range keyword as described in 1. I ran into these problems:

Happy to help, if you have an API in mind, I can come up with an impl. Thanks for this great project!

leadpony commented 4 years ago

@Navgeet There are two challenging tasks left for me in this project.

  1. Implement the latest specification draft 2019-09 (see #29)
  2. Implement mechanism for users to extend the validator with their own custom keywords, as you requested

I am currently working on the first task. The latest specification will introduce a new concept vocabulary, which is a unit for grouping schema keywords. The concept may force me to change the software design relating to schema keywords and may also provide an impact on the extension API for custom keywords. Could you please wait for me to improve the current design in order to accommodate the latest specification?

Navgeet commented 4 years ago

Sure, makes sense.