Automatically Generating a UUID for a Schema
Is there a build in way for a schema to automatically generate a Ulid for a schema?
const Message = Schema.Struct({
id: Schema.UUID,
timestamp: Schema.Number.pipe(
Schema.propertySignature,
Schema.withConstructorDefault(() => Date.now()),
),
payload: Schema.Any,
})