Skip generating operation examples when flag is set (#12539)

This commit is contained in:
Chao Yang 2022-06-05 01:12:34 -05:00 committed by GitHub
parent 53d66a891d
commit 6869f3b0b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -560,6 +560,9 @@ public class CrystalClientCodegen extends DefaultCodegen {
@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<>();