Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #8983
Closed
Open
Issue created Mar 16, 2021 by Administrator@rootContributor

Credentials fallback causing "Object is possibly 'undefined'" with strict-null-checks enabled

Created by: Chasoor

Hi, we love using the generator but the follwoing line is causing errors in our angular project (strict-null-checks enabled) since "apiKeys" is possibly undefined. Would be great if "apiKeys" had a null/undefined check with a default same as "credentials" or if the fallback is removed as suggested by the comment. Thank you in advance.

https://github.com/OpenAPITools/openapi-generator/blob/cc5e0fee2da407355266397e3e5d3fb3dc061cd6/modules/openapi-generator/src/main/resources/typescript-angular/configuration.mustache#L67

Assignee
Assign to
Time tracking