Uh oh!
There was an error while loading. Please reload this page.
[Python] Add python experimental openapiv3 sample and fix PEP8 formatting issues - #4992
Conversation
sebastien-rosset
commented
Jan 13, 2020
spacether
commented
Jan 13, 2020
@sebastien-rosset this looks good, thanks for creating it!
|
sebastien-rosset
commented
Jan 13, 2020
It tells which shell interpreter to invoke per http://www.linuxandubuntu.com/home/comments-in-bash-learn-bash-part-3 |
sebastien-rosset
commented
Jan 13, 2020
I think I have added all the files. |
sebastien-rosset
commented
Jan 13, 2020
But it's not a bash script, it's a makefile. In fact the shebang is ignored because there is an extra space. |
Good point. If you delete it does it still work? |
sebastien-rosset
commented
Jan 13, 2020
I will remove it and check. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
sebastien-rosset
commented
Jan 14, 2020
It looks like a couple other files are missing, I am adding them: |
sebastien-rosset
commented
Jan 14, 2020
Getting formatting issues: I will update the python template to fix. |
sebastien-rosset
commented
Jan 15, 2020
I also had to add # noqa: E501 in a couple lines in the python api.template because the generated line is too long in openapi3. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
sebastien-rosset
commented
Jan 15, 2020
As a side note, what is the plan to move python-experimental and go-experimental from "experimental" status? Is this going to replace the "python" and "go" generators? Or will there be two separate generators? |
That is a great question. I don't know. My suggestion is to ask on Slack because the maintainers are the most responsive there. If any actions come out of it, then maybe making a feature request to capture it would be a traceable way to track it. My hope is that in the future this can replace the python generator or we can port a bunch of these features into it. We are allowed to make breaking changes on these experimental generators which means we can make progress quickly and aggressively refactor but I don't know what our plan is going forward. |
Uh oh!
There was an error while loading. Please reload this page.
spacether
left a comment
There was a problem hiding this comment.
This looks good, the CircleCi failure is an unrelated Maven issue
thanks. I saw the Maven issue you have raised. |
Are all maven issues resolved? I see the following error in this build, but I have synced from master. There are still many instances of "http://maven" in master. grep -r "http://" . |grep maven |
spacether
commented
Jan 16, 2020
My PR was an attempt at a maven fix. But I don't know Maven so they may still be unresolved. |
spacether
commented
Jan 16, 2020
If you close and reopen the pr it will kick off ci again. No need for dummy commits |
sebastien-rosset
commented
Jan 16, 2020
thanks. One thing I don't understand is I committed a change this morning, after syncing from master (which has the maven fix). But it still failed with "http" connection to maven. |
Add python-experimental-openapiv3-sample Add missing files for the Python samples Add python-experimental-petstore.bat for openapi v3 Add python-experimental samples openapi v3 Add python-experimental samples openapi v3 Add python-experimental samples openapi v3. Address review comments add missing files for test purpose fix python formatting issues fix python formatting issues fix python formatting issues Fix unit tests fix python formatting issues fix python formatting issues fix python formatting issues fix 'line too long' pep8 error address PR comments for pep8 'line too long' problem regenerate samples execute samples scripts dummy commit to retrigger circleci Revert dummy commit, it didn't help.
0d399dc to
b381972Comparespacether
commented
Jan 19, 2020
I am looking forward to approving this, just waiting on the CI tests to pass. |
sebastien-rosset
commented
Jan 20, 2020
Build is successful now. There were unrelated issues with circleCI, Jim and I fixed the issues. |
sebastien-rosset
commented
Jan 21, 2020
Thank you! |
PR checklist
./bin/(or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh,./bin/openapi3/{LANG}-petstore.shif updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).master,4.3.x,5.0.x. Default:master.