Skip to content

Implement schema construction from JsonNode #98

Open
@dmak

Description

@dmak

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.

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