Skip to content

[BUG] Autowired annotation not guarded by generateClientAsBean for java restclient #20808

Open
@bogdanul2003

Description

@bogdanul2003
Description

@Autowired constructor annotation is still present in the generated api class even if generateClientAsBean is set to false. Is this intended or can be removed from the mustache file?
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache#L47

This is properly guarded in resttemplate mustache file https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache#L47

openapi-generator version

openapi-generator version 7.12.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions