forked from loafle/openapi-generator-original
Merge pull request #4125 from ircecho/multiword
DART: multi-word class names work properly now, fixes #4117
This commit is contained in:
commit
77d3c0cb20
@ -405,6 +405,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
|||||||
operation.put("classname", config.toApiName(tag));
|
operation.put("classname", config.toApiName(tag));
|
||||||
operation.put("classVarName", config.toApiVarName(tag));
|
operation.put("classVarName", config.toApiVarName(tag));
|
||||||
operation.put("importPath", config.toApiImport(tag));
|
operation.put("importPath", config.toApiImport(tag));
|
||||||
|
operation.put("classFilename", config.toApiFilename(tag));
|
||||||
|
|
||||||
if(!config.vendorExtensions().isEmpty()) {
|
if(!config.vendorExtensions().isEmpty()) {
|
||||||
operation.put("vendorExtensions", config.vendorExtensions());
|
operation.put("vendorExtensions", config.vendorExtensions());
|
||||||
|
@ -16,7 +16,7 @@ part 'auth/api_key_auth.dart';
|
|||||||
part 'auth/oauth.dart';
|
part 'auth/oauth.dart';
|
||||||
part 'auth/http_basic_auth.dart';
|
part 'auth/http_basic_auth.dart';
|
||||||
|
|
||||||
{{#apiInfo}}{{#apis}}part 'api/{{classVarName}}_api.dart';
|
{{#apiInfo}}{{#apis}}part 'api/{{classFilename}}.dart';
|
||||||
{{/apis}}{{/apiInfo}}
|
{{/apis}}{{/apiInfo}}
|
||||||
{{#models}}{{#model}}part 'model/{{classFilename}}.dart';
|
{{#models}}{{#model}}part 'model/{{classFilename}}.dart';
|
||||||
{{/model}}{{/models}}
|
{{/model}}{{/models}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user