Skip to content

Integrate an existing json schema validator library? #77

Open

Description

@erosb

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/ .

Activity

  1. hauner commented on Mar 10, 2024

    @hauner
    Member

    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..

  2. erosb commented on Mar 10, 2024

    @erosb
    Author

    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.

    Well, yes, erosb/json-sKema fits that bill (has its own json parser, rather than using external dependency, and it supports draft-2020-12).

  3. hauner commented on Mar 11, 2024

    @hauner
    Member

    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 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions