iya-sts
    Preparing search index...

    Class export=

    Builds zod schemas from JSON Schema.

    Index
    • An array schema.

      Parameters

      • schema: Json

        the schema

      • context: Context

        the build

      Returns any

      the zod schema

    • The validator of an operation's request body.

      Parameters

      • document: string

        the document's file name part

      • operationId: string

        the operation

      Returns any

      the zod schema

    • The zod schema of a JSON Schema, in one build.

      Parameters

      • given: Json
      • context: Context

        the build

      Returns any

      the zod schema

    • The validator of one of a document's components.

      Parameters

      • document: string

        the document's file name part

      • name: string

        the component

      • Optionaloptions: { typed?: boolean }

        typed: true where a number must arrive as one

      Returns any

      the zod schema

    • propertyNames: every member's name held to a string schema. The issue is at the member, marked propertyNames, so a caller can tell a name that is wrong from a value that is.

      Parameters

      • out: any

        the object's zod schema

      • names: Json

        the schema a name is held to

      • context: Context

        the build

      Returns any

      the zod schema

    • An integer or number schema.

      Parameters

      • schema: Json

        the schema

      • context: Context

        the build

      Returns any

      the zod schema

    • An object schema: additionalProperties: false refuses a member the schema does not name, and with no such keyword a member is dropped. A member whose name a patternProperties pattern matches is named by it: kept, and held to that pattern's schema.

      Parameters

      • schema: Json

        the schema

      • context: Context

        the build

      Returns any

      the zod schema

    • oneOf: the options as a union, and exactly one of them holding. Where the options cannot both hold — a string and a list, two closed objects told apart by a value — the second half never refuses, and it is what keeps a model that grows an overlapping option honest.

      Parameters

      • schema: Json

        the schema

      • context: Context

        the build

      Returns any

      the zod schema

    • Refuses a schema holding a keyword outside the ones listed.

      Parameters

      • schema: Json

        the schema

      • known: string[]

        the keywords this shape understands

      Returns void

    • The operation a document names.

      Parameters

      • document: string

        the document's file name part, such as account

      • operationId: string

        the operation

      Returns Json

      the operation's entry

    • An object with patternProperties. The object is loose, so a member a pattern names reaches the check; one no property and no pattern names is refused where additionalProperties is false and kept otherwise, which is what JSON Schema says of it.

      Parameters

      • schema: Json

        the schema

      • shape: Json

        the named members, built

      • context: Context

        the build

      Returns any

      the zod schema

    • The validator of an operation's query. A parameter that declares allowEmptyValue takes an empty value as none.

      Parameters

      • document: string

        the document's file name part

      • operationId: string

        the operation

      Returns any

      the zod schema

    • A $ref to one of the document's components. A component met again while it is being built is recursive, and is reached lazily.

      Parameters

      • ref: string

        the reference

      • context: Context

        the build

      Returns any

      the zod schema

    • One of a document's component schemas, as the document states it.

      Parameters

      • document: string

        the document's file name part

      • name: string

        the component

      Returns Json

      the JSON Schema

    • A string schema.

      Parameters

      • schema: Json

        the schema

      Returns any

      the zod schema