Skip to content

Custom keywords impl support #53

@Navgeet

Description

@Navgeet

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!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions