forked from loafle/openapi-generator-original
Replace maps with models to reduce casting (#11913)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.my.company.codegen;
|
||||
|
||||
import org.openapitools.codegen.*;
|
||||
import org.openapitools.codegen.model.ModelMap;
|
||||
import io.swagger.models.properties.*;
|
||||
|
||||
import java.util.*;
|
||||
@@ -37,7 +38,7 @@ public class MyclientcodegenGenerator extends DefaultCodegen implements CodegenC
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<Object> allModels) {
|
||||
public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<ModelMap> allModels) {
|
||||
|
||||
// to try debugging your code generator:
|
||||
// set a break point on the next line.
|
||||
|
||||
Reference in New Issue
Block a user