OpenAPITools / OpenAPITools/openapi-generator
Typescript angular v10 missing providers
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- [X ] What's the version of OpenAPI Generator used? "@openapitools/openapi-generator-cli": "1.0.15-4.3.1"
- [X ] Have you search for related issues/PRs?
- [X ] What's the actual output vs expected output?
- [Optional] Bounty to sponsor the fix (example)
Description
When using the cli @openapitools/openapi-generator-cli to generate the client on typescript angular v10 the api.module.ts generates without any providers. On version 1.0.8-4.2.2 using angular 7 the api.module.ts had all services on providers array.
When importing api.module into my other module like: ApiModule.forRoot(apiConfigFactory) configuration is lost and not provided by apiConfigFactory.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the generated api.module.ts with @openapitools/openapi-generator-cli 1.0.15-4.3.1 for TypeScript Angular v10, then compare it with output from 1.0.8-4.2.2 for Angular 7. Inspect the generator entry point that produces api.module.ts. Done means the generated module includes the required providers and preserves configuration supplied through ApiModule.forRoot(apiConfigFactory).
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100