Skip to content

Cannot disable validation for Security #155

Open
@mike-zorn

Description

@mike-zorn

I'm using this library to validate incoming requests to make sure that they conform to my published OpenAPI spec. My application has a complicated authentication mechanism independent of OpenAPI and I only publish some of the authentication mechanisms to my OpenAPI spec. I want to be able to disable validating security portions of my spec. I don't see a way to do this. There doesn't appear to be an option I can pass in to my validator that supports this. I tried implementing the Validator & ParameterValidator interfaces to override the Security validation methods of ParameterValidator, but the Validator always uses the parameterValidator when validating and there is no way to override how the ParameterValidator is constructed.

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