Skip to content

Commit

Permalink
Use OpenAPI generator (#432)
Browse files Browse the repository at this point in the history
* Add definitions as submodule

* Add experimental openapi generator

* Add experimental webhook model generator

* Webhook : done

* Add other code

* Fix dependencies

* Make version 3.0.0

* Delete old code

* Add submodule configs

* Fix sample: flask-echo

* Fix sample: simple-server-echo

* Improve how to get mapping name of mappedModel

* Fix sample: rich-menu

* Delete sample: manage-audience

* Fix sample: flask-kitchensink

* Add asyncio modules & fix example

* Generate async modules in all projects

* Stop using handmade readme

* Update readme

* Update user agent

* Update readme

* Add python 3.11 for testing

* Rename API client (ApiApi -> Api)

* Update line-openapi

* Replace zx script with python script
  • Loading branch information
Yang-33 committed Jun 29, 2023
1 parent b2dad8f commit fe859ad
Show file tree
Hide file tree
Showing 522 changed files with 92,106 additions and 20,403 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/auto-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,5 @@ ENV/
.DS_Store
tmp/
*.iml

.openapi-generator
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "line-openapi"]
path = line-openapi
url = https://github.com/line/line-openapi.git
27 changes: 27 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
linebot/__init__.py

## common readmes
linebot/*_README.md

0 comments on commit fe859ad

Please sign in to comment.