Skip to content

Support Zod V4 #93

@yzhe554

Description

@yzhe554

In Zod V3, the following generated Zod schema is valid
const metadata = z.record(z.string())

However in V4, it needs
const metadata = z.record(z.string(), z.string())

Can use the following JSON schema from OpenAPI to test

{
  "type": "object",
  "propertyNames": {
    "type": "string"
  },
  "additionalProperties": {
    "type": "string"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions