-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dart-jaguar] Adds option to customise the generated API client name #3234
[dart-jaguar] Adds option to customise the generated API client name #3234
Conversation
@athornz thanks for the PR. Quick question about the client name. Is that related to the pubName setting somehow?
If yes, shall we reuse (disclosure: no expert in Dart) |
It could make sense to reuse it, but the naming convention for dart packages is snake_case which is likely not what the user would want for the class name. |
We can use camelize, etc string utility function to convert |
Sure that seems like a good option 👍 |
...napi-generator/src/main/java/org/openapitools/codegen/languages/DartJaguarClientCodegen.java
Outdated
Show resolved
Hide resolved
The CircleCI error is not related to this PR. Since it's a breaking change with fallback, I've retargeted this PR to 4.1.x branch. |
Thanks! |
@athornz have a nice weekend |
@athornz thanks for the PR, which has been included in the 4.1.0 release: https://twitter.com/oas_generator/status/1160000504455319553 |
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
,./bin/openapi3/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\
. If contributing template-only or documentation-only changes which will change sample output, be sure to build the project first.master
,4.1.x
,5.0.x
. Default:master
.Description of the PR
Derives the generated API class name from the pub name, rather than the generic
JaguarApiGen
name.CC @ircecho @swipesight @jaumard