-
-
Notifications
You must be signed in to change notification settings - Fork 474
Closed
Description
It's producing invalid union types with an empty branch (| |
) that falls back to any
Example input (Swagger):
dataVencimento:
anyOf:
- type: string
format: date-time
- nullable: true
enum:
- null
Generated output
export type ListFreguesias200ItemDataVencimento = string | | null;
Expected output:
export type ListFreguesias200ItemDataVencimento = string | null;
Note:
The same issue happens with non–date-time strings:
terminacao:
anyOf:
- type: string
- nullable: true
enum:
- null
Generates:
export type ListFreguesias200ItemTerminacao = string | | null;
Instead of:
export type ListFreguesias200ItemTerminacao = string | null;
I'm using the latest version ^7.11.2
Metadata
Metadata
Assignees
Labels
No labels