Open benoitheinrich opened 5 years ago
Reproduced in 3.3.4 but not in 4.0.0, looks like it has been fixed.
3.3.3 generate "null"
, 3.3.4 generate null
Do you know when the 4.0.0 is supposed to be released ?
Do you know when the 4.0.0 is supposed to be released ?
mid May to align with the project's anniversary (https://github.com/OpenAPITools/openapi-generator/milestone/4)
How can I solve this?
app/build/tmp/kapt3/stubs/debug/com/.../.../domain/model/ProductItem.java:4: error: element value must be a constant expression @androidx.room.Entity(tableName = null)
Bug Report Checklist
[ ] Have you provided a full/minimal spec to reproduce the issue? yes
[ ] Have you validated the input using an OpenAPI validator (example)? yes
[ ] What's the version of OpenAPI Generator used? 3.3.4
[ ] Have you search for related issues/PRs? yes
[ ] What's the actual output vs expected output? The generated java code is:
And that code doesn't compile due to:
In version 3.3.3 that same spec was working and was generating:
Description
When migrating from openapi-generator-maven-plugin 3.3.3 to 3.3.4 the generated code doesn't compile anymore.
openapi-generator version
I'm using version 3.3.4 of openapi-generator.
OpenAPI declaration file content or url
Command line used for generation
This happens using openapi-generator-maven-plugin, here is the plugin configuration:
Steps to reproduce
A sample project is available here: https://github.com/benoitheinrich/spring-cloud-contract-long-text
Run
mvn clean install