import { required } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/methods/index.ts";
Creates a modified copy of an object schema that marks all entries as required.
Parameters
schema: TSchema
The schema to modify.
Returns
SchemaWithRequired<TSchema, undefined, undefined>
An object schema.
Creates a modified copy of an object schema that marks all entries as required.
Type Parameters
TMessage extends ErrorMessage<NonOptionalIssue> | undefined
Returns
SchemaWithRequired<TSchema, undefined, TMessage>
An object schema.
Creates a modified copy of an object schema that marks the selected entries as required.
Type Parameters
TKeys extends ObjectKeys<TSchema>
Returns
SchemaWithRequired<TSchema, TKeys, undefined>
An object schema.
Creates a modified copy of an object schema that marks the selected entries as required.
Type Parameters
TKeys extends ObjectKeys<TSchema>
TMessage extends ErrorMessage<NonOptionalIssue> | undefined
Returns
An object schema.