File tree Expand file tree Collapse file tree 5 files changed +49
-69
lines changed
src/serverless_openapi_generator Expand file tree Collapse file tree 5 files changed +49
-69
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Bug report
33about : Create a report to help us improve
44title : " [BUG]"
55labels : ' '
6- assignees : JaredCE
6+ assignees : tkfoss
77
88---
99
@@ -19,9 +19,9 @@ serverless.yml
1919** Expected behavior**
2020A clear and concise description of what you expected to happen.
2121
22- ** Desktop (please complete the following information) :**
23- - Serverless version: [ e.g. 2.73.3 ]
24- - serverless-openapi-documenter version [ e.g. 0.0.2 ]
22+ ** Versions :**
23+ - Serverless version:
24+ - python- serverless-openapi-documenter version
2525
2626** Additional context**
2727Add any other context about the problem here.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Python CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : ["3.10", "3.11", "3.12"]
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+
24+ - name : Install uv
25+ run : |
26+ curl -LsSf https://astral.sh/uv/install.sh | sh
27+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
28+
29+ - name : Install dependencies
30+ run : |
31+ uv sync --dev
32+
33+ - name : Lint with ruff
34+ run : |
35+ uv run ruff check .
36+
37+ - name : Test with pytest
38+ run : |
39+ uv run pytest
Original file line number Diff line number Diff line change @@ -121,9 +121,13 @@ def create_paths(self):
121121 if not http_event :
122122 continue
123123
124- documentation = http_event .get ('documentation' , {})
125- if not documentation :
124+ documentation = http_event .get ('documentation' )
125+
126+ if documentation is False :
126127 continue
128+
129+ if documentation is None :
130+ documentation = {}
127131
128132 path = http_event .get ('path' )
129133 method = http_event .get ('method' , 'get' ).lower ()
You can’t perform that action at this time.
0 commit comments