openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[BUG] Missing option mergedFileName for openApiGenerate task (Gradle plugin)

Open romanutti opened this issue 2 years ago • 4 comments

Description

The option mergedFileName for openApiGenerate task (Gradle plugin) is missing while it is mentioned in the doc.

openapi-generator version

6.6.0 (and also 7.0.0-beta)

romanutti avatar Jul 22 '23 10:07 romanutti

Indeed it seems that it can be set but nothing happen. The generated file is not here at the end.

GeoffreyStemys avatar Aug 16 '23 13:08 GeoffreyStemys

It seems all the code is in place. The only thing missing is the:

    /**
     * Name of the file that will contain all merged specs
     */
    val mergedFileName = project.objects.property<String>();

in OpenApiGeneratorGenerateExtension.kt

Picazsoo avatar May 13 '24 08:05 Picazsoo

@Picazsoo can you please file a PR with the suggested fix?

wing328 avatar May 13 '24 08:05 wing328

Hi @wing328, it seems to be more complicated than I presumed. I will still try to look into in when I have some extra capacity.

Picazsoo avatar May 22 '24 08:05 Picazsoo