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:
- The base keyword classes (
AbstractNumericAssertion) are private, and can't be extended in my own package.
ProblemBuilder withMessage builder method requires Message as argument. I think it would be better if it accepts BaseMessage, which should be a public interface I can implement.
- I'm not yet sure how to inject my own keyword into
Justify, but StandardKeywordFactory seems to be the way. Maybe it can have an addKeyword method?
Happy to help, if you have an API in mind, I can come up with an impl. Thanks for this great project!
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
rangekeyword as described in 1. I ran into these problems:AbstractNumericAssertion) are private, and can't be extended in my own package.ProblemBuilderwithMessagebuilder method requiresMessageas argument. I think it would be better if it acceptsBaseMessage, which should be a public interface I can implement.Justify, butStandardKeywordFactoryseems to be the way. Maybe it can have anaddKeywordmethod?Happy to help, if you have an API in mind, I can come up with an impl. Thanks for this great project!