gibahjoe / openapi-generator-dart

Openapi Generator for Dart/Flutter
BSD 3-Clause "New" or "Revised" License
128 stars 34 forks source link

How to change the library name with default 'openapi.api' #63

Closed Chgocn closed 3 years ago

Chgocn commented 3 years ago

Hi guy,thank for the awesome work.Now everything is work well except change the library name, also called package name. I found the issue and official doc for dart: https://openapi-generator.tech/docs/generators/dart/ then I use --additional-properties="pubName=my_library_name" in cli,the name in pubspec.yaml is ok.but in the dart file,it still is 'openapi.api', not 'my_library_name.api'.Anything else what I miss ? openapi-generation: 3.3.0

Chgocn commented 3 years ago

Solved. use pubLibrary work. --additional-properties="pubName=my_library_name,pubLibrary=my_library_name"