OpenAPITools / OpenAPITools/openapi-generator

ngVersion being ignored when trying to generate both a ng13 and ng15 typescript-angular SDK

Open
#15,293 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

When trying to generate a typescript-angular project for angular 13 it always produces one for angular 15. I need to be able to support both version of angular

Here is the npm script I am running:
"generate": "cross-env openapi-generator-cli generate -i openApi.json -g typescript-angular -o openapi.ng13 -p --additional-properties=ngVersion=13.0.0

No matter what I put in for the ngVersion is always generates one for Angular 15.

OpenApi.Json:
{
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "6.5.0"
}
}

"@openapitools/openapi-generator-cli": "^2.5.2"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the npm generate script using openApi.json and the generator-cli configuration shown in the issue, comparing output from ngVersion=13.0.0 with the default Angular 15 output. Trace the typescript-angular generator's handling of the ngVersion additional property; done means the same specification can generate distinct Angular 13 and Angular 15 SDKs as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.