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
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java
-18Lines changed: 0 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -460,22 +460,6 @@ public Map<String, ModelsMap> postProcessAllModels(Map<String, ModelsMap> objs)
460
460
}
461
461
}
462
462
463
-
// Build a set of classnames that are oneOf models (union types)
464
-
Set<String> oneOfModelNames = allModels.stream()
465
-
.filter(m -> !m.oneOf.isEmpty())
466
-
.map(m -> m.classname)
467
-
.collect(Collectors.toSet());
468
-
469
-
// Mark models whose parent is a oneOf model — these cannot use
470
-
// "interface X extends Parent" because TypeScript does not allow
471
-
// an interface to extend a union type. They use
472
-
// "type X = Parent & { ... }" instead.
473
-
for (ExtendedCodegenModelm : allModels) {
474
-
if (m.parent != null && oneOfModelNames.contains(m.parent)) {
475
-
m.parentIsOneOf = true;
476
-
}
477
-
}
478
-
479
463
for (ExtendedCodegenModelrootModel : allModels) {
480
464
for (StringcurImport : rootModel.imports) {
481
465
booleanisModelImport = false;
@@ -1561,8 +1545,6 @@ public class ExtendedCodegenModel extends CodegenModel {
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/fetch/TypeScriptFetchClientCodegenTest.java
-37Lines changed: 0 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -563,43 +563,6 @@ public void testRequestOptsNotInInterfaceWhenDisabled() throws IOException {
0 commit comments