Commit 882165d
committed
Add | null to oneOf union type when Null variant is filtered
When a oneOf includes type: 'null', the Null model reference is
removed to prevent broken imports. The union type should include
| null to preserve the nullable semantics from the original spec.1 parent c2aaa11 commit 882165d
2 files changed
Lines changed: 3 additions & 3 deletions
File tree
- modules/openapi-generator/src
- main/resources/typescript-fetch
- test/java/org/openapitools/codegen/typescript/fetch
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | | - | |
| 465 | + | |
| 466 | + | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| |||
0 commit comments