Closed
Description
If you have a schema
type Square {
size: Int
}
type Circle {
radius: Int
}
union Shape = Circle | Square
then (with the default withObjectType = false
) the generated code contains
export function ShapeSchema() {
return z.union([CircleSchema(), SquareSchema()])
}
but the referenced type schemas CircleSchema
and SquareSchema
don't exist. Thus, the union schema should also not be generated if withObjectType
is false.
Metadata
Metadata
Assignees
Labels
No labels