-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean-up - Unnecessary trailing underscores in Python Flask, AIOHttp,…
… BluePlanet (#16249) * Remove trailing underscore in security_controller_.py and base_model_.py * Regenerating sample files * Clean-up files with trailing underscore in samples * Update security extension to use the new security_controller * Regenerate unmaintained samples
- Loading branch information
Showing
91 changed files
with
463 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...enapi-generator/src/main/resources/python-blueplanet/app/{{packageName}}/encoder.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
modules/openapi-generator/src/main/resources/python-flask/encoder.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
samples/openapi3/server/petstore/python-flask-python2/.openapi-generator/FILES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.dockerignore | ||
.gitignore | ||
.travis.yml | ||
Dockerfile | ||
README.md | ||
git_push.sh | ||
openapi_server/__init__.py | ||
openapi_server/__main__.py | ||
openapi_server/controllers/__init__.py | ||
openapi_server/controllers/pet_controller.py | ||
openapi_server/controllers/security_controller.py | ||
openapi_server/controllers/store_controller.py | ||
openapi_server/controllers/user_controller.py | ||
openapi_server/encoder.py | ||
openapi_server/models/__init__.py | ||
openapi_server/models/api_response.py | ||
openapi_server/models/base_model.py | ||
openapi_server/models/category.py | ||
openapi_server/models/order.py | ||
openapi_server/models/pet.py | ||
openapi_server/models/status_enum.py | ||
openapi_server/models/tag.py | ||
openapi_server/models/user.py | ||
openapi_server/openapi/openapi.yaml | ||
openapi_server/test/__init__.py | ||
openapi_server/typing_utils.py | ||
openapi_server/util.py | ||
requirements.txt | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
2 changes: 1 addition & 1 deletion
2
samples/openapi3/server/petstore/python-flask-python2/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.0.0-SNAPSHOT | ||
7.0.0-SNAPSHOT |
1 change: 0 additions & 1 deletion
1
samples/openapi3/server/petstore/python-flask-python2/.travis.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
samples/openapi3/server/petstore/python-flask-python2/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FROM python:2-alpine | ||
FROM python:3-alpine | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY requirements.txt /usr/src/app/ | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
COPY . /usr/src/app | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["python"] | ||
ENTRYPOINT ["python3"] | ||
|
||
CMD ["-m", "openapi_server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.