-
Notifications
You must be signed in to change notification settings - Fork 183
Open
Description
When I use a schema that references another schema like
const UIInfo = z.object({
field1: z.string()
field2: z.optional(z.string().min(1).max(100)
})
const TaskInfo = z.object({
statuses: z.array(z.string())
viewsForStatus: z.array(UIInfo)})
const TodoListInfo = z.object({
viewsForAddingTask: z.array(UIInfo)})
I get this error
Error: Unsupported $ref format: '#/properties/viewsForStatus/items'. Expected format like '#/collectionKey/definitionKey' matching Python logic.
Metadata
Metadata
Assignees
Labels
No labels