StaticarrayAn array schema.
the schema
the build
the zod schema
StaticbodyThe validator of an operation's request body.
the document's file name part
the operation
the zod schema
StaticbuildThe zod schema of a JSON Schema, in one build.
the build
the zod schema
StaticcomponentThe validator of one of a document's components.
the document's file name part
the component
Optionaloptions: { typed?: boolean }
typed: true where a number must arrive as one
the zod schema
StaticnamedpropertyNames: 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.
the object's zod schema
the schema a name is held to
the build
the zod schema
StaticnumberAn integer or number schema.
the schema
the build
the zod schema
StaticobjectAn 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.
the schema
the build
the zod schema
StaticoneoneOf: 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.
the schema
the build
the zod schema
StaticonlyRefuses a schema holding a keyword outside the ones listed.
the schema
the keywords this shape understands
StaticoperationThe operation a document names.
the document's file name part, such as account
the operation
the operation's entry
StaticpatternedAn 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.
the schema
the named members, built
the build
the zod schema
StaticqueryThe validator of an operation's query. A parameter that declares
allowEmptyValue takes an empty value as none.
the document's file name part
the operation
the zod schema
StaticrefA $ref to one of the document's components. A component met again
while it is being built is recursive, and is reached lazily.
the reference
the build
the zod schema
StaticschemaOne of a document's component schemas, as the document states it.
the document's file name part
the component
the JSON Schema
StaticstringA string schema.
the schema
the zod schema
Builds zod schemas from JSON Schema.