-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[Play Framework] Regenerate the samples. It was very outdated #3760
Conversation
Please add the script(s) to |
@wing328 Just add it! |
This approach is tracked as #80 (we decided to have it "opt-in", not forcing all the |
@JFCote the CI server already reports that some samples are outdated:
Merge master into your PR branch and execute the |
@jmini I'm not sure but I think it is a problem with windows / linux. I guess the differences that CircleCI is seing are samples that were generated on my Windows computer, which are different from samples generated on the linux CircleCI machine. I'm not sure what to do... Is this a bug in the Waiting for your advice on how to procede. |
Ran the script locally and here is the result:
No clue at the moment why the samples (play framework) are still outdated. |
I think the serialization to json is not stable/deterministic see my issue: swagger-api/swagger-core#2828 We have fixed it for Yaml, but we need to do the same for Json. |
I think I have improved the JSON serialization with #3763. Please do a review. Once merged I am happy to rebase this PR and generate the samples again. |
…ith-new-swagger-parser
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.
LGTM
@JFCote thanks for the PR, which has been included in the v4.1.2 release: https://twitter.com/oas_generator/status/1172068944355528705 |
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
.@bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04)
Description of the PR
No changes to the code. Only regenerated the samples for play framework.
It seems nobody had run the update of the samples for play framework for a while... Here they are. @wing328 we should have some test that validate the the samples are update to date from time to time.