[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.