Skip to content

zod schema generator does not recognize union types #236

Closed
@alisabzevari

Description

@alisabzevari

It seems like the implementation does not recognize the union types when enabling withObjectType option.

I get unhandled scalar name error.

Seems like we should add a condition to handle unions here:

const generateNameNodeZodSchema = (

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions