Skip to content

Commit 88adb5c

Browse files
authored
Merge branch 'main' into openapi-3.1
2 parents a902616 + 7264707 commit 88adb5c

File tree

10 files changed

+343
-328
lines changed

10 files changed

+343
-328
lines changed

.github/sponsors/fern.png

6.08 KB
Loading

.github/workflows/checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
os: [ ubuntu-latest, macos-latest, windows-latest ]
1616
runs-on: ${{ matrix.os }}
1717
steps:
18-
- uses: actions/[email protected].0
18+
- uses: actions/[email protected].1
1919
- name: Set up Python
2020
uses: actions/setup-python@v4
2121
with:
@@ -76,7 +76,7 @@ jobs:
7676
needs: test
7777
runs-on: ubuntu-latest
7878
steps:
79-
- uses: actions/[email protected].0
79+
- uses: actions/[email protected].1
8080
- name: Download coverage reports
8181
uses: actions/download-artifact@v3
8282
with:
@@ -99,7 +99,7 @@ jobs:
9999
ports:
100100
- "3000:3000"
101101
steps:
102-
- uses: actions/[email protected].0
102+
- uses: actions/[email protected].1
103103
- name: Set up Python
104104
uses: actions/setup-python@v4
105105
with:

.github/workflows/preview_release_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
if: "!contains(github.event.head_commit.message, 'chore: prepare release')" # Skip merges from releases
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/[email protected].0
10+
- uses: actions/[email protected].1
1111
with:
1212
fetch-depth: 0
1313
token: ${{ secrets.PAT }}
@@ -17,7 +17,7 @@ jobs:
1717
git config user.email [email protected]
1818
- uses: knope-dev/[email protected]
1919
with:
20-
version: 0.12.0
20+
version: 0.13.0
2121
- run: knope prepare-release --verbose
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.PAT }}

.github/workflows/release-dry-run.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ jobs:
66
release:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/[email protected].0
9+
- uses: actions/[email protected].1
1010
with:
1111
fetch-depth: 0
1212
token: ${{ secrets.GITHUB_TOKEN }}
1313
- name: Install Knope
1414
uses: knope-dev/[email protected]
1515
with:
16-
version: 0.12.0
16+
version: 0.13.0
1717
- run: knope prepare-release --dry-run

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
if: github.head_ref == 'release' && github.event.pull_request.merged == true
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/[email protected].0
13+
- uses: actions/[email protected].1
1414
with:
1515
fetch-depth: 0
1616
token: ${{ secrets.PAT }}
1717
- name: Install Knope
1818
uses: knope-dev/[email protected]
1919
with:
20-
version: 0.12.0
20+
version: 0.13.0
2121
- name: Install Poetry
2222
run: pip install --upgrade poetry
2323
- name: Push to PyPI

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ This tool focuses on creating the best developer experience for Python developer
2121

2222
1. Using all the latest and greatest Python features like type annotations and dataclasses.
2323
2. Having documentation and usage instructions specific to this one generator.
24-
1. Being written in Python with Jinja2 templates, making it easier to improve and extend for Python developers. It's also much easier to install and use if you already have Python.
24+
3. Being written in Python with Jinja2 templates, making it easier to improve and extend for Python developers. It's also much easier to install and use if you already have Python.
25+
26+
## Sponsors
27+
28+
<a href="https://www.devmark.ai/fern/?utm_source=openapi-python-client&utm_loc=readme&utm_type=logo" target="_blank" title="Fern | SDKs and API docs"><img src="https://raw.githubusercontent.com/openapi-generators/openapi-python-client/main/.github/sponsors/fern.png"></a>
2529

2630
## Installation
2731

integration-tests/poetry.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi_python_client/templates/endpoint_macros.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ headers = {}
1818
{% endmacro %}
1919

2020
{% macro cookie_params(endpoint) %}
21-
cookies = {}
2221
{% if endpoint.cookie_parameters %}
22+
cookies = {}
2323
{% for parameter in endpoint.cookie_parameters.values() %}
2424
{% if parameter.required %}
2525
cookies["{{ parameter.name}}"] = {{ parameter.python_name }}

0 commit comments

Comments
 (0)