You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a discriminator where multiple mapping keys (e.g., "approval_policy" and "entity") point to the same common schema, the generated TypeScript types incorrectly narrow the allowed discriminator values to only one representative (in this case, "approval_policy").
Description
When using a discriminator where multiple mapping keys (e.g., "approval_policy" and "entity") point to the same common schema, the generated TypeScript types incorrectly narrow the allowed discriminator values to only one representative (in this case, "approval_policy").
Reproducible example or configuration
generated:
expected
OpenAPI specification (optional)
System information (optional)
"@hey-api/openapi-ts": "^0.65.0"
The text was updated successfully, but these errors were encountered: