forked from loafle/openapi-generator-original
[Typscript][Fetch] add configuration to support authentication (#4008)
* add configuration to typescript fetch * fix issues reported by the CI * fix header parameters in ts fetch client * add new configuration file for ts fetch * skip if check for configuration in ts fetch * Fix `this.configuration` issue in paramsCreator * update ts fetch samples * Fix typescript fetch tests to work with Configuration * Add dictionary to store apikeys (#8) * Add dictionary to store apikeys * Type apikey with expected params rather than Dictionary - typescript-fetch * Update test samples to new typescript-fetch api * Fix tests for typesript-fetch api * update typescript sample using petstore.yaml
This commit is contained in:
@@ -41,6 +41,7 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege
|
||||
supportingFiles.add(new SupportingFile("typings.json.mustache", "", "typings.json"));
|
||||
supportingFiles.add(new SupportingFile("tsconfig.json.mustache", "", "tsconfig.json"));
|
||||
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
|
||||
supportingFiles.add(new SupportingFile("configuration.mustache", "", "configuration.ts"));
|
||||
|
||||
if(additionalProperties.containsKey(NPM_NAME)) {
|
||||
this.setNpmName(additionalProperties.get(NPM_NAME).toString());
|
||||
|
||||
Reference in New Issue
Block a user