Prevent JsonSchema for type enumerated to become anyOf
type.enumerated('foo', 'bar').or(type.enumerated('foo', 'bar').array()).toJsonSchema()
, the returned schema is:
```
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [..."string.email>0" custom message not working
Can I export and share all types on the global scope by default?
deno.jsonc
, which is also where the arktype
import happens.
I would love it if I could just turn the loosey goosey dials up to max and use every type()
declaration as an alias in any other part of the repo. Is there a built-in and/or elegant way to do this?...[attest] Error scanning node_modules. How can I make attest trace work?
attest trace
to analyze my Next.js 15 monorepo package.
However, I'm getting an error that attest cannot find a module.
```...Auto throw if invalid
instanceof type.errors
, I kinda prefer the method opt-in from Zod (parse vs safeParse) to make that choice. To be clear this would purely be a DX improvement to prevent typing out the error catching manually for type inference....Discriminated unions with common field but different constraints
type
property, which should be the discriminating property. Two types are possible: typeA
and typeB
. Both types of entities have a field named someField
. By default, someField
is nullable, meaning new types in the future should have it nullable. But typeA
entities require someField
not to be null.
Creating the corresponding schemas lead to a type error when trying to match my types to the schema's types.
...Throw an ArkError programmatically
Equivalent of Object.values for unions

Is this a bug or user error? Re: Generic Argument Validation
Bracket Notation on Generics

Performance comparison to Zod for piped string
const zodTest = z.string().trim().toLowerCase().email().startsWith("info");
And for ArkType I've got const arkTest = type("string.trim |> string.lower |> string.email & /^info/");
...
does arktype understand "minimum 0 but not -0"?
.nonnegative
it will still accept negative zero. would the same happen with AT?
.onUndeclaredKey("delete") is breaking mongodbs _id field

How can "string" type be not empty?
Passing a name for a primitive value?
Can't infer type of schema when using "scope"
schema key alias
Custom message to formSchema in TanTack Form Standard Schema