[java] & [generator-code] Forbiddenapis check and fix#672
[java] & [generator-code] Forbiddenapis check and fix#672jmini merged 7 commits intoOpenAPITools:masterfrom burberius:forbiddenapis-check-and-fix
Conversation
|
This seems like a good idea. |
|
@burberius thanks for the PR 👍 @jeff9finger thanks for reviewing the change. If no further feedback or question, I'll merge it on coming Wed. |
|
@burberius I wonder if you can resolve the merge conflicts and then I'll merge it into master. Sorry for taking a bit long to review the change. |
# Conflicts: # modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java # modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java # modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ApexClientCodegen.java # modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ErlangClientCodegen.java # pom.xml
|
I have merged develop into this branch (incl solving merge conflicts) => c73dbbb Because the change introduce a new check, it would be great to merge |
|
@burberius thanks for the fix, which is included in the v3.2.2 stable release: https://twitter.com/oas_generator/status/1032252335131512832 |
* Added forbiddenapis check and fixed the findings in the normal code * Fixed forbiddenapi findings in java templates and samples. * Generated all samples for Java.
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.master,4.0.x. Default:master.@bbdouglas (2017/07) @JFCote (2017/08) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01)
Description of the PR
I used the forbiddenapis maven plugin with code generated by openapi codegen and it found some problems.
So I added the plugin to the openapi-generator parent pom, ran the checks there and fixed all findings.
In all java templates I also fixed the findings and generated the samples to check it.
You can read more about the found problems in this article:
https://dzone.com/articles/policemans-horror-default