Skip to content

Commit ce2aecd

Browse files
committed
Partial? fix for #21
1 parent d1580de commit ce2aecd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adaptor.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ function convertToApis(source,obj) {
440440
entry = {};
441441
entry.name = tagName;
442442
entry.classname = tagName+'Api';
443+
entry.classVarName = tagName; // see issue #21
443444
entry.packageName = obj.packageName; //! this may not be enough / sustainable. Or many props at wrong level :(
444445
entry.operations = {};
445446
entry.operations.operation = [];
@@ -602,7 +603,7 @@ function getPrime(api,defaults) {
602603
prime.swaggerCodegenVersion = 'openapi-codegen-v'+prime.generatorVersion;
603604
prime.appDescription = api.info.description||'No description';
604605
prime.projectDescription = prime.appDescription;
605-
prime.classVarName = 'default'; //? possibly an array of these based on tags (a la widdershins)
606+
prime.classVarName = 'default'; // see issue #21
606607
prime.exportedName = prime.classname;
607608
prime.packageTitle = prime.classname; /* Specifies an AssemblyTitle for the .NET Framework global assembly attributes stored in the AssemblyInfo file. */
608609
prime.infoEmail = api.info.contact ? api.info.contact.email : null;

0 commit comments

Comments
 (0)