Skip to content

Commit

Permalink
Skip generating operation examples when flag is set (#12539)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyangle authored Jun 5, 2022
1 parent 53d66a8 commit 6869f3b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ protected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, Sc
@Override
public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels) {
objs = super.postProcessOperationsWithModels(objs, allModels);
if (isSkipOperationExample()) {
return objs;
}
OperationMap operations = objs.getOperations();
HashMap<String, CodegenModel> modelMaps = new HashMap<>();
HashMap<String, Integer> processedModelMaps = new HashMap<>();
Expand Down

0 comments on commit 6869f3b

Please sign in to comment.