Skip to content

Unsupported $ref format error #135

@ym-han

Description

@ym-han

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions