Skip to content

Commit f7e1112

Browse files
committed
update ci, docs handling
1 parent 6aeff6b commit f7e1112

File tree

5 files changed

+49
-69
lines changed

5 files changed

+49
-69
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Bug report
33
about: Create a report to help us improve
44
title: "[BUG]"
55
labels: ''
6-
assignees: JaredCE
6+
assignees: tkfoss
77

88
---
99

@@ -19,9 +19,9 @@ serverless.yml
1919
**Expected behavior**
2020
A 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**
2727
Add any other context about the problem here.

.github/workflows/node.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/python-ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

src/serverless_openapi_generator/openapi_generator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)