Skip to content

Add setting to make zod schemas strict (.strict()) #1271

@flesler

Description

@flesler

If true, you append .strict() so they don't accept extra fields. Which is pretty much what one would want, if those payloads get passed through to a GraphQL server, or re-validated in one. I'd go as far as saying it should be strict by default. But maybe for backwards compat you make it default to non-strict

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions