forked from loafle/openapi-generator-original
Skip generating operation examples when flag is set (#12539)
This commit is contained in:
parent
53d66a891d
commit
6869f3b0b9
@ -560,6 +560,9 @@ public class CrystalClientCodegen extends DefaultCodegen {
|
|||||||
@Override
|
@Override
|
||||||
public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels) {
|
public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels) {
|
||||||
objs = super.postProcessOperationsWithModels(objs, allModels);
|
objs = super.postProcessOperationsWithModels(objs, allModels);
|
||||||
|
if (isSkipOperationExample()) {
|
||||||
|
return objs;
|
||||||
|
}
|
||||||
OperationMap operations = objs.getOperations();
|
OperationMap operations = objs.getOperations();
|
||||||
HashMap<String, CodegenModel> modelMaps = new HashMap<>();
|
HashMap<String, CodegenModel> modelMaps = new HashMap<>();
|
||||||
HashMap<String, Integer> processedModelMaps = new HashMap<>();
|
HashMap<String, Integer> processedModelMaps = new HashMap<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user