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
What's the actual output vs expected output? Don't generate the fluentd setter method
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Generated code is not compiling because
@JsonCreatorpublicChild(
@JsonProperty(JSON_PROPERTY_ID) Stringid
) {
this();
this.id = id; // id is private in the class 'Parent' + being readonly the setter shouldn't be generated
}
Generate source code with java generator (library resttemplateor other) and setting openapiNormalizer to REF_AS_PARENT_IN_ALLOF=true to force that the first schema of allOf is used as the parent class.
Related issues/PRs
N/A
Suggest a fix
In Java/pojo.mustache probably check for vars not being readonly.
Bug Report Checklist
Description
Generated code is not compiling because
The bug seems a consequence of #14915.
openapi-generator version
7.0.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Generate source code with java generator (library resttemplateor other) and setting openapiNormalizer to
REF_AS_PARENT_IN_ALLOF=true
to force that the first schema of allOf is used as the parent class.Related issues/PRs
N/A
Suggest a fix
In Java/pojo.mustache probably check for vars not being readonly.
The text was updated successfully, but these errors were encountered: