Open s-Klein-DG opened 2 years ago
I guess this issue belongs to https://github.com/OpenAPITools/openapi-generator
Possible ;-) So i can only say: If you use "Batch-Mode" with a config that does include a shared config. That in these case some generators like "java" handles properties from shared config corectly for overrides. But for the generator "typescript-angular" that is not working. (used property was "npmVersion")
So i opened a new Issue there: https://github.com/OpenAPITools/openapi-generator/issues/11944
Hi, are there any news on this topic ?
Description
I think the generator with name: "typescript-angular" ignores Config-Properties from included shared Yaml-File when Batch-Mode from openapi-generator-cli is used.
See Batch-Mode usage: https://openapi-generator.tech/docs/usage/#batch
For example property: "npmVersion" was ignored. I've tested it with Docker-Image from: https://hub.docker.com/r/openapitools/openapi-generator-cli/tags in version: v5.3.0 and v5.4.0 with the following Test-Settup:
Spec-File: "./openapi-specs/petstore.yaml"
Shared-Config-File: "./shared/shared-config.yaml"
Child-Config: "./client-typescript-angular.yaml"
Code generated with command:
Issue:
The generated typescript-package does not have correct version in it, it is always 1.0.0. If the property is used directly in: "./client-typescript-angular.yaml" under "additionalProperties:" the correct version is generated into package.json but not if included parent yaml is used.
I,ve tested this with a Java generator too (generatorname "java"). Here it works fine. There i set "artifactId: 0.0.20" inside "./shared/shared-config.yaml" and included the it to a java-generator-config (generatorname: "java"). That worked well, the version was written into the generated pom.xml.
So it seems , that some generators for Batch-Mode are ignoring properties, from included shared Yaml-Files.