[BUG][JAVA] Maven Plugin CodeGenMojo.strictSpecBehavior
does not match parameter name 'strictSpec'
#3070
Milestone
CodeGenMojo.strictSpecBehavior
does not match parameter name 'strictSpec'
#3070
Uh oh!
There was an error while loading. Please reload this page.
Description
The maven plugin does not work for version 4.0.* because the
strictSpecBehavior
field does not match it's parameter namestrictSpec
. It seems maven ignores the name specified in the annotation and just uses reflection to look for a field that has the same name as the parameter.openapi-generator version
4.0.*
OpenAPI declaration file content or url
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java#L248
Steps to reproduce
Try to generate a client with the maven plugin above version 4.0.*.
Suggest a fix
Simply fix the field name.
The text was updated successfully, but these errors were encountered: