Skip to content

Additional query parameter validation #984

@josepmdc

Description

@josepmdc

Is there any way to validate that no extra query parameters other than the ones defined in the spec are sent? I've been looking at the docs and through the source code and haven't found anything.

The OpenAPI spec has no property to specify this but maybe it'd be interesting to have it as an option in the library.

Example of other libraries that support it: https://cdimascio.github.io/express-openapi-validator-documentation/faq/#q-i-can-disallow-unknown-query-parameters-with-allowunknownqueryparameters-false-how-can-disallow-unknown-body-parameters

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