Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
The modular and type safe schema library for validating structural data 🤖
Returns the Standard Schema properties.
Creates an any schema.
Creates a function arguments transformation action.
Creates a function arguments transformation action.
Creates an array schema.
Creates an array schema.
Array input type.
Array requirement type.
Array requirement async type.
Checks if the input matches the schema. As this is an assertion function, it can be used as a type guard.
Creates an await transformation action.
Base64 regex.
Creates a bigint schema.
Creates a blob schema.
Creates a boolean schema.
Creates a brand transformation action.
Brand name type.
Brand symbol.
Creates a check validation action.
Creates a check validation action.
Creates an check items validation action.
Creates a check items validation action.
Class type.
Changes the local configuration of a schema.
Content input type.
Content requirement type.
Creates a credit card validation action.
Cuid2 regex.
Creates a custom schema.
Creates a custom schema.
Creates a date schema.
Decimal regex.
Default type.
Default async type.
Default value type.
Deletes the global configuration.
Deletes a global error message.
Deletes a schema error message.
Deletes a specific error message.
Creates a description metadata action.
Digits regex.
Email address regex.
Emoji regex from emoji-regex-xs v1.0.0 (MIT license).
Creates an empty validation action.
Creates an ends with validation action.
Creates an entries validation action.
Creates an object entries definition from a list of keys and a schema.
Creates a new object entries definition from existing object schemas.
Entries input type.
Enum interface.
Creates an enum schema.
Creates an enum schema.
Enum values type.
Error message type.
Creates an every item validation action.
Creates an exact optional schema.
Creates an exact optional schema.
Creates an excludes validation action.
Fallback type.
Returns a fallback value as output if the input does not match the schema.
Fallback async type.
Returns a fallback value as output if the input does not match the schema.
Creates a file schema.
Creates a filter items transformation action.
Creates a find item transformation action.
Flat errors type.
Flatten the error messages of issues.
Creates a flavor transformation action.
Flavor name type.
Flavor symbol.
Forwards the issues of the passed validation action.
Forwards the issues of the passed validation action.
Creates a function schema.
Creates a function schema.
Generic issue type.
Generic metadata type.
Generic pipe action type.
Generic pipe action async type.
Generic pipe item type.
Generic pipe item async type.
Generic schema type.
Generic schema async type.
Generic transformation type.
Generic transformation async type.
Generic validation type.
Generic validation async type.
Returns the default value of the schema.
Returns the default values of the schema.
Returns the default values of the schema.
Returns the description of the schema.
Creates and returns the dot path of an issue if possible.
Returns the fallback value of the schema.
Returns the fallback values of the schema.
Returns the fallback values of the schema.
Returns the global configuration.
Returns a global error message.
Returns the metadata of a schema.
Returns a schema error message.
Returns a specific error message.
Returns the title of the schema.
The global config type.
Creates a graphemes validation action.
Creates a greater than value validation action.
Hash type type.
Hex color regex.
Creates a hexadecimal validation action.
Hexadecimal regex.
IMEI regex.
Creates an includes validation action.
Infer default type.
Infer defaults type.
Infer fallback type.
Infer fallbacks type.
Infer input type.
Infer issue type.
Infer metadata type.
Infer output type.
Creates an instance schema.
Creates an intersect schema.
Creates an intersect schema.
Intersect options type.
Intersect options async type.
Creates an IP address validation action.
IPv4 regex.
IPv6 regex.
Checks if the input matches the schema. By using a type predicate, this function can be used as a type guard.
ISO 8601 date regex.
ISO 8601 date-time regex.
ISO 8601 time regex.
ISO 8601 time with seconds regex.
ISO 8601 timestamp regex.
ISO 8601 week regex.
Creates an ISO date time validation action.
A generic type guard to check the kind of an object.
A generic type guard to check the type of an object.
Creates an ISO time second validation action.
Creates an ISO timestamp validation action.
Issue dot path type.
Issue path item type.
A type guard to check if an error is a ValiError.
Creates a picklist schema of object keys.
Creates a lazy schema.
Creates a lazy schema.
Creates a length validation action.
Length input type.
Literal type.
Creates a literal schema.
Creates a loose object schema.
Creates a loose object schema.
Creates a loose tuple schema.
Creates a loose tuple schema.
Creates a less than value validation action.
Creates a MAC address validation action.
Creates a 48-bit MAC address validation action.
MAC 48 bit regex.
Creates a 64-bit MAC address validation action.
MAC 64 bit regex.
Creates a map schema.
Creates a map schema.
Creates a map items transformation action.
Creates a max entries validation action.
Creates a max graphemes validation action.
Creates a max length validation action.
Creates a max size validation action.
Creates a max value validation action.
Creates a max words validation action.
Changes the local message configuration of a schema.
Creates a custom metadata action.
Creates a min entries validation action.
Creates a min graphemes validation action.
Creates a min length validation action.
Creates a min size validation action.
Creates a min value validation action.
Creates a min words validation action.
Creates a multiple of validation action.
Creates a NaN schema.
Nano ID regex.
Creates a never schema.
Creates a non-empty validation action.
Creates a non nullable schema.
Creates a non nullable schema.
Creates a non nullish schema.
Creates a non nullish schema.
Creates a non optional schema.
Creates a non optional schema.
Creates a normalize transformation action.
Normalize form type.
Creates a not entries validation action.
Creates a not graphemes validation action.
Creates a not length validation action.
Creates a not size validation action.
Creates a not value validation action.
Creates a not values validation action.
Creates a not words validation action.
Creates a null schema.
Creates a null schema.
Creates a nullable schema.
Creates a nullable schema.
Creates a nullish schema.
Creates a nullish schema.
Creates a number schema.
Creates an object schema.
Creates an object schema.
Object entries interface.
Object entries async interface.
Object keys type.
Creates an object with rest schema.
Creates an object with rest schema.
Octal regex.
Creates a modified copy of an object schema that does not contain the selected entries.
Creates an optional schema.
Creates an optional schema.
Output dataset type.
Parses an unknown input based on a schema.
Parses an unknown input based on a schema.
Creates a parse JSON transformation action.
Returns a function that parses an unknown input based on a schema.
Returns a function that parses an unknown input based on a schema.
Creates a modified copy of an object schema that marks all entries as optional.
Creates a modified copy of an object schema that marks all entries as optional.
Creates a partial check validation action.
Partial check action async interface.
Creates a partial check validation action.
Creates a modified copy of an object schema that contains only the selected entries.
Creates a picklist schema.
Picklist options type.
Adds a pipeline to a schema, that can validate and transform its input.
Pipe action type.
Pipe action async type.
Adds a pipeline to a schema, that can validate and transform its input.
Pipe item type.
Pipe item async type.
Creates a promise schema.
Creates a raw check validation action.
Creates a raw check validation action.
Creates a raw transformation action.
Creates a raw transformation action.
Creates a readonly transformation action.
Creates a record schema.
Creates a record schema.
Creates a reduce items transformation action.
Creates a modified copy of an object schema that marks all entries as required.
Creates a modified copy of an object schema that marks all entries as required.
Creates a function return transformation action.
Creates a function arguments transformation action.
Creates a safe integer validation action.
Parses an unknown input based on a schema.
Parses an unknown input based on a schema.
Returns a function that parses an unknown input based on a schema.
Returns a function that parses an unknown input based on a schema.
Safe parse result type.
Schema with fallback type.
Schema with fallback async type.
Schema with omit type.
Schema without pipe type.
Schema with partial type.
Schema with partial type.
Schema with pick type.
Schema with pipe type.
Schema with pipe async type.
Schema with required type.
Schema with required type.
Creates a set schema.
Creates a set schema.
Sets the global configuration.
Sets a global error message.
Sets a schema error message.
Sets a specific error message.
Creates a size validation action.
Size input type.
Slug regex.
Creates a some item validation action.
Creates a sort items transformation action.
Creates a starts with validation action.
Creates a strict object schema.
Creates a strict object schema.
Creates a strict tuple schema.
Creates a strict tuple schema.
Creates a string schema.
Creates a stringify JSON transformation action.
Summarize the error messages of issues in a pretty-printable multi-line string.
Creates a symbol schema.
Creates a title metadata action.
Creates a to lower case transformation action.
Creates a to max value transformation action.
Creates a to min value transformation action.
Creates a to upper case transformation action.
Creates a custom transformation action.
Creates a custom transformation action.
Creates a trim transformation action.
Creates a trim end transformation action.
Creates a trim start transformation action.
Creates a tuple schema.
Creates a tuple schema.
Tuple items type.
Tuple items async type.
Creates a tuple with rest schema.
Creates a tuple with rest schema.
ULID regex.
Creates an undefined schema.
Creates an undefined schema.
Creates an undefinedable schema.
Creates an undefinedable schema.
Creates an union schema.
Creates an union schema.
Union options type.
Union options async type.
Creates a unknown schema.
Unwraps the wrapped schema.
UUID regex.
Creates a value validation action.
Value input type.
Creates a values validation action.
Creates a variant schema.
Creates a variant schema.
Variant options type.
Variant options async type.
Creates a void schema.
Creates a void schema.
Creates a words validation action.
Nano ID action type.
Nano ID issue type.