-
Notifications
You must be signed in to change notification settings - Fork 6k
[Java][Spring] Add examples defined in the spec to Spring MVC server generator #5411
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
Conversation
Elizabeth/Joy - adding example support if specified in the swagger spec
…degen into elizabetht-issue-5310
@kenjones-cisco because we need to determine the "Accept" in the HTTP request so as to return the response based on the format specified in "Accept". Is it causing issue to your application? |
@wing328 Thanks for the explanation. |
@kenjones-cisco I think about this a bit more and this is breaking change that should go to 2.3.0 (a branch with breaking changes) instead as the method signature has changed. (we want to avoid breaking changes to the current master) I'm sorry for the inconvenience caused by this. I'll file a PR to revert the change in the master and submit the change against 2.3.0 instead by coming Thursday. cc @Elizabett, @cbornet |
Due to busy schedule, I'll revert the change tomorrow instead. |
@kenjones-cisco the change has been rolled back via #5599 I'll file a separate PR to make the enhancement in 2.3.0 branch. |
#5606 merged into 2.3.0 to provide the same enhancment to Spring generators. @elizabetht @kenjones-cisco please kindly pull the latest master and 2.3.0 to give it a try. |
[Java][Spring] Add examples defined in the spec to Spring MVC server generator
Hi @wing328 ! |
@wingsofovnia sounds reasonable to me. Please submit a PR so that we can review the change. |
I think there is a better way : instead of using |
And we can do it on the master since the change is non-breaking |
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)2.3.0
branch for breaking (non-backward compatible) changes.Description of the PR
For #5310.
Credits also go to @Elizabett, @cbornet