Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

invalid examples should not fail validation #68

Open

Description

@scags9876

We use our openapi 3.0.1 specs to automatically generate mocks and run contract tests. These contract tests include testing that the implementing server correctly validates requests and returns expected 400 Bad Request responses. This means we have examples in our docs of invalid requests. We cannot use swagger-cli validate, but would like to, because the validation fails on examples that don't adhere to the schema.

Ideal behavior would be to either be able to mark an example somehow to ignore validation for it, or pass an argument or configuration into swagger-cli validate to bypass validation of certain examples.

I will attempt to create a minimal schema to illustrate the issue.

Activity

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