import { requiredAsync } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/methods/required/index.ts";
Creates a modified copy of an object schema that marks all entries as required.
Parameters
schema: TSchema
The schema to modify.
Returns
SchemaWithRequiredAsync<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
SchemaWithRequiredAsync<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
SchemaWithRequiredAsync<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.