Skip to content

Ability to granularly skip arg/response validation #5039

@agusterodin

Description

@agusterodin

Absolutely loving the new standard schema validation functionality. It works extremely well.

An additional feature that would be nice to have would be the ability to granularly skip arg/response validation at a global/per-endpoint level. Our main motivation is potential performance implications for certain endpoints (eg: some of our requests have multiple MB of data).

The skipSchemaValidation option is currently all-or-nothing. A non-breaking way to support granular skipSchemaValidation could be to allow it to accept either a boolean or Array<'arg' | 'response'> (items in array are the validations you wish to skip).

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