schema-components - v3.7.0
    Preparing search index...

    Interface NormaliseOptions

    Options accepted by normaliseSchema.

    interface NormaliseOptions {
        diagnostics?: DiagnosticsOptions;
        io?: SchemaIoSide;
    }
    Index

    Properties

    Properties

    diagnostics?: DiagnosticsOptions

    Diagnostics channel for surfacing silent fallbacks.

    Side of every transform / pipe / codec to render. Defaults to "output", matching z.toJSONSchema's default and the historic behaviour of the adapter. Passing "input" flips the conversion so consumers rendering the input shape of a z.codec(...) chain receive that side instead of the output side. Only the Zod 4 branch consults this option — JSON Schema and OpenAPI inputs are already a single canonical shape.