You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Integrate an existing json schema validator library? #77
Hello @hauner would you see any value in integrating an existing json schema validator into your project, rather than maintaining your own? If you can see any value in that, I'm happy to help, as the maintainer of https://github.com/erosb/json-sKema/ .
I think I just looked at the implementations in java 😉
we could work at that. My goal would be to have the possibility to switch the json schema validator, i.e. to avoid & remove the dependency on a specific validator.
This would require a json schema validator abstraction the OpenAPI parser could use.
That is probably an interesting task... no idea how well this would work 🤔
Activity
hauner commentedon Mar 10, 2024
When I started with this I didn't find any json schema validator that I liked. 😕
Most of the java validators had a dependency on a specific json/yaml parser (which I would like to avoid) or didn't support 2020-12.
Having a pluggable validator would be interesting 🙂
I never thought about it. Strange.
Hard to tell how much work this would be. The OpenAPI parser uses a couple of classes from the validator..
erosb commentedon Mar 10, 2024
Well, yes, erosb/json-sKema fits that bill (has its own json parser, rather than using external dependency, and it supports draft-2020-12).
hauner commentedon Mar 11, 2024
I think I just looked at the implementations in java 😉
we could work at that. My goal would be to have the possibility to switch the json schema validator, i.e. to avoid & remove the dependency on a specific validator.
This would require a json schema validator abstraction the OpenAPI parser could use.
That is probably an interesting task... no idea how well this would work 🤔