Skip to content

Commit c9aa518

Browse files
authored
Use openapi generator (#453)
* NO-ISSUE Add generator again * generate v3 package * NO-ISSUE Copy v2 code to v3 directory * Modify README.rst to pass validation (#441) * Modify README.rst to pass validation * Add readme_renderer test * NO-ISSUE Add v3 tests * NO-ISSUE Add v3 samples * NO-ISSUE Remove unnecessary from sample * NO-ISSUE Add note that we won't maintain only 3.x * NO-ISSUE Add deprecated sample * NO-ISSUE Add deprecated annotation * NO-ISSUE Modify message for deprecation * NO-ISSUE Add category for users to suppress deprecation message * NO-ISSUE Add how to suppress deprecation warnings * NO-ISSUE Add deprecated annotation to webhook classes * NO-ISSUE keep * NO-ISSUE Update old async codegen
1 parent 3e5d4b6 commit c9aa518

File tree

452 files changed

+94589
-2139
lines changed

Some content is hidden

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

452 files changed

+94589
-2139
lines changed

.github/workflows/auto-testing.yml

+7-1
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:
@@ -25,3 +27,7 @@ jobs:
2527
- name: Test with pytest
2628
run: |
2729
tox
30+
- name: Ensure README.rst builds correctly for PyPI
31+
run: |
32+
pip install readme-renderer
33+
python -m readme_renderer README.rst >/dev/null

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

+2
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

+2
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

+3
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

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
linebot/v3/__init__.py
26+
27+
## common readmes
28+
linebot/v3/*_README.md

0 commit comments

Comments
 (0)