-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Java:vertx] Initialize router in init method and re-use router member to create SwaggerRouter #7234
Conversation
No technical committee member is listed for Vertx, tagging @phiz71 since he committed initial Vertx templates. |
Originally copied @phiz71 since he was initial contributor of Vertx support (and no technical committee member listed for Vertx), also copying larger Java technical committee: @bbdouglas (2017/07) @JFCote (2017/08) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) |
@wing328 - any recommendation on a proper resource to review these changes? |
Thanks for the PR but your commit (as shown in the Commits tab) is not linked to your Github account, which means this PR won't count as your contribution in https://github.com/swagger-api/swagger-codegen/graphs/contributors. Let me know if you need help fixing it. |
@wing328 - Thanks for catching that my account was not linked. I've adjusted my PR and the account should now be linked correctly. It's not clear to me why the circleci check is failing, can you please advise? |
That's the error:
It could be an issue with CircleCI. I'll restart it later today. |
|
||
@Override | ||
public void init(Vertx vertx, Context context) { | ||
super.init(vertx, context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align with 4 spaces
super.init(vertx, context); | ||
router = Router.router(vertx); | ||
} | ||
|
||
@Override | ||
public void start(Future<Void> startFuture) throws Exception { | ||
Json.mapper.registerModule(new JavaTimeModule()); | ||
FileSystem vertxFileSystem = vertx.fileSystem(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you realign this ?
@wing328 - looks like circleci issue is resolved. Thanks! |
@wing328 - are we okay to merge this now? |
@ccozzolino thanks for the PR. Does this PR need to urgently go into 2.3.1 which will be released next week, or it's ok to wait till 2.4.0 release? |
@wing328 - I'd really like to get this into 2.3.1; however, if that complicates your release schedule, then delaying it to 2.4.0 is not a problem. Thanks again for all your work on this. |
@ccozzolino thanks for the PR, which has been merged into master (2.3.1). I need some help from you to look into the following errors:
I got these when running "mvn test" under "samples/server/petstore/java-vertx/async" |
@wing328 - I see the issue. This looks like an issue unrelated to my changes. I incorrectly assumed that the server build ran the individual sample tests which is why I didn't catch this. I'll fix it and submit a new PR. |
@ccozzolino yup, the issue has nothing to do with your change as it was present in master before merging this PR. Thanks for offering help to fix this. |
* master: (26 commits) [Scala] Fix async helper methods when body is optional (swagger-api#7274) [Rust] Recommend style based on 'rustfmt' defaults (swagger-api#7335) [Java:vertx] Initialize router in init method and re-use router member to create S… (swagger-api#7234) [Scala] Fix missing json4s import (swagger-api#7271) deploy snapshot version 2.3.1 [Ada] Add Ada support for server code generator swagger-api#6680 (swagger-api#7256) add shijinkui to scala technical committee Generate swagger yaml for go client (swagger-api#7281) use openjdk7 in travis to ensure it works with jdk7 docs(readme): update link to contributing guid (swagger-api#7332) Fix a regression bug that was introduce in a recent commit. Removed the tabs that were causing error in Play Framework (swagger-api#7241) Fix issue swagger-api#7262 with the parameter name in the path. The problem was that camelCase naming was forced only in this part of the code when everywhere else it is configurable. (swagger-api#7313) Java8 fix (swagger-api#7260) update to 2.3.1-SNAPSHOT fix typo, update 2017 to 2018 [Doc] add huawei cloud to companies list swagger-api#7308 (swagger-api#7309) Adding Peatio opensource as reference project (swagger-api#7267) Update README.md (swagger-api#7298) Update README.md (swagger-api#7299) [all] sys props in CodegenConstants ...
"mvn test" issues addressed in #7359 |
…waggerRouter
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
and./bin/security/{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\
.3.0.0
branch for changes related to OpenAPI spec 3.0. Default:master
.Description of the PR
Modify MainApiVerticle.mustache template to properly initialize main router and re-use the router to create SwaggerRouter - fix for #7230