Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement schema construction from JsonNode #98

Open
dmak opened this issue Nov 27, 2020 · 0 comments
Open

Implement schema construction from JsonNode #98

dmak opened this issue Nov 27, 2020 · 0 comments

Comments

@dmak
Copy link

dmak commented Nov 27, 2020

Would be nice if validation API is extended the way that schema can be constricted directly from JsonNode, for example, consider the following swagger snippet:

responses:
  "200":
    description: Successful operation
    content:
      application/json:
        schema:
          type: array
          items:
           $ref: "#/components/schemas/animalType"
        example:
          - type: human
            id: 5ebc32178718
            sex: male
          - type: animal
            id: ba5d08e1835b
            kind: dog

After Swagger is parsed, there should be an API method to validate JsonNode of example against JsonNode of schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant