OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.43k stars 6.48k forks source link

[BUG] Description- setBuildContext method is missing in CodeGenMojo class from 7.7.0 version #19402

Open ankur1344 opened 1 month ago

ankur1344 commented 1 month ago

Bug Report Checklist

Description

I see one setter method is missing in latest version of CodeGenMojo class.

openapi-generator version 7.7.0 and 7.8.0

Earlier I was using 7.3.0 and to use support for angular 18 I am moving to 7.7.0/7.80 but getting compile time error as setBuildContext method is missing in new version

I am having a below code and now getting compile time error as setsetBuildContext is not available

CodeGenMojo codeGen = new CodeGenMojo(); DefaultBuildContext buildContext = new DefaultBuildContext(); buildContext.enableLogging(new ConsoleLogger(1, this.getClass().getSimpleName())); codeGen.setBuildContext(buildContext);

OpenAPI declaration file content or url
Generation Details
Steps to reproduce

Just open codegenmojo class from 7.7.0 you will see method is missing

Related issues/PRs
Suggest a fix
ankur1344 commented 1 month ago

can't find setter method for buildContext in new version of api tool - org.openapitools.codegen.plugin.CodeGenMojo

ankur1344 commented 1 month ago

image

not seeing @setter