Skip to content

Commit 03a6ff3

Browse files
committed
fix scala and csharp
1 parent ae3d35d commit 03a6ff3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

generators/src/main/java/com/algolia/codegen/AlgoliaScalaGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public Map<String, ModelsMap> postProcessAllModels(Map<String, ModelsMap> objs)
140140
@Override
141141
public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> models) {
142142
OperationsMap operations = super.postProcessOperationsWithModels(objs, models);
143-
OrphanDestroyer.removeOrphans(this, operations, models);
143+
OrphanDestroyer.removeOrphans(this, operations, models, true);
144144
Helpers.removeHelpers(operations);
145145
GenericPropagator.propagateGenericsToOperations(operations, models);
146146
return operations;

generators/src/main/java/com/algolia/codegen/utils/OrphanDestroyer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ private OrphanDestroyer(Map<String, CodegenModel> models) {
1919
}
2020

2121
private CodegenModel getModel(String name) {
22+
name = name.replace("?", "");
2223
// openapi generator returns some weird error when looking for primitive type, so we filter them
2324
// by hand
2425
if (primitiveModels.contains(name)) {

0 commit comments

Comments
 (0)