effect-io-ai

Package: effect
Module: Schema

Schema.isULID

Validates that a string is a valid ULID (Universally Unique Lexicographically Sortable Identifier).

Details

JSON Schema:

This check corresponds to a pattern constraint in JSON Schema that matches the ULID format.

Arbitrary:

When generating test data with fast-check, this applies a patterns constraint to ensure generated strings match the ULID pattern.

Signature

declare const isULID: (annotations?: Annotations.Filter) => SchemaAST.Filter<string>

Source

Since v4.0.0