You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating the openapi-generator-maven-plugin to 7.1.0 breaks all APIs which use models consisting only of additionalProperties. It looks like model generation is skipped for those models, however the API still uses them, and they're also beneficial for the code in general since they serve as an anti-corruption layer.
which doesn't compile, since the TestRequestBody class wasn't generated.
Related issues/PRs
Suggest a fix
Don't skip generation of free-form objects. There's a reason why the api-specification uses a separate schema with title to define the model, instead of using an inline object.
The text was updated successfully, but these errors were encountered:
* fix#16797 and #15796 spring child constructor missing parent params
* root cause and update the DefaultCodegen.java to add missing property when with multi inheritance
* rollback SpringCodegen.java
* update samples
* rollback with master cause #16992 fixed this issue too
* still using orignal design
* catchup master
* catchup master
* catchup master
* fix
* add tests
---------
Co-authored-by: dabdirb <[email protected]>
Description
Updating the
openapi-generator-maven-plugin
to7.1.0
breaks all APIs which use models consisting only of additionalProperties. It looks like model generation is skipped for those models, however the API still uses them, and they're also beneficial for the code in general since they serve as an anti-corruption layer.openapi-generator version
7.1.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Generate the provided api-specification using the provided configuration.
The generator logs:
[INFO] Model TestRequestBody not generated since it's a free-form object
while the generated DefaultApi.java class uses:
which doesn't compile, since the
TestRequestBody
class wasn't generated.Related issues/PRs
Suggest a fix
Don't skip generation of free-form objects. There's a reason why the api-specification uses a separate schema with title to define the model, instead of using an inline object.
The text was updated successfully, but these errors were encountered: