-
-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Report a bug
🔎 Search Terms
toJsonSchema
🧩 Context
- ArkType version: 2.1.22
- TypeScript version (5.1+): bun version 1.2.8, also reproduced in node v22.15.1 without typescript
- Other context you think may be relevant (JS flavor, OS, etc.):
🧑💻 Repro
import {type} from 'arktype';
type
.or(
{
a: type.enumerated("a", "b", "c"),
b: '1',
},
{
a: type.enumerated("a", "e", "f"),
b: '2',
}
)
.toJsonSchema({ useRefs: true });
note that this code does run without errors if { useRefs: false }
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
To do