Skip to content

Commit fe859ad

Browse files
authored
Use OpenAPI generator (#432)
* 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
1 parent b2dad8f commit fe859ad

File tree

522 files changed

+92106
-20403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

522 files changed

+92106
-20403
lines changed

.github/workflows/auto-testing.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ['3.7', '3.8', '3.9', '3.10']
13+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
1414

1515
steps:
1616
- uses: actions/checkout@v3
17+
with:
18+
submodules: true
1719
- name: Set up Python ${{ matrix.python-version }}
1820
uses: actions/setup-python@v4
1921
with:

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v3
17+
with:
18+
submodules: true
1719
- name: Set up Python
1820
uses: actions/setup-python@v4
1921
with:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ ENV/
103103
.DS_Store
104104
tmp/
105105
*.iml
106+
107+
.openapi-generator

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "line-openapi"]
2+
path = line-openapi
3+
url = https://github.com/line/line-openapi.git

.openapi-generator-ignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
24+
linebot/__init__.py
25+
26+
## common readmes
27+
linebot/*_README.md

0 commit comments

Comments
 (0)