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
  • #2904
Closed
Open
Issue created May 16, 2019 by Administrator@rootContributor

[BUG] Apex named credential property does not work

Created by: loganm

Description

When generating an apex client, the namedCredential property does not override the name of the named credential. In code, it looks like this property is ignored, and the

openapi-generator version

4.0.0

Command line used for generation
openapi-generator generate -i https://directplus.documentation.dnb.com/assets/APIs/searchCriteria.json -g apex --additional-properties namedCredential=DnB_Direct
Suggest a fix

It looks like the name for the file is pulled from openAPI.getInfo().getTitle() rather than reading from the namedCredential property. Should be an easy fix to read the property instead.

https://github.com/OpenAPITools/openapi-generator/blob/046db19a8590f3557ae1e04be75792bbeb39cb69/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ApexClientCodegen.java#L164-L171

Assignee
Assign to
Time tracking