Skip to content

Commit 49fa8fc

Browse files
Release 0.28.0 (#1368)
> [!IMPORTANT] > Merging this pull request will create this release ## Breaking Changes - URL-encode path parameters in generated endpoints (#1349) ## Fixes ### Fix bad code generation #1360 by @EricAtORS This fixes: - missing parenthesis in to_multipart #1338 #1318 - missing imports in the lazy eval in to_multipart: #931 and #1051 ### Fix optional bodies If a body is not required (the default), it will now: 1. Have `Unset` as part of its type annotation. 2. Default to a value of `UNSET` 3. Not be included in the request if it is `UNSET` Thanks @orelmaliach for the report! Fixes #1354 Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
1 parent f5f3b41 commit 49fa8fc

File tree

4 files changed

+29
-27
lines changed

4 files changed

+29
-27
lines changed

.changeset/fix_bad_code_generation.md

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

.changeset/fix_optional_bodies.md

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

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,34 @@ Programmatic usage of this project (e.g., importing it as a Python module) and t
1313

1414
The 0.x prefix used in versions for this project is to indicate that breaking changes are expected frequently (several times a year). Breaking changes will increment the minor number, all other changes will increment the patch number. You can track the progress toward 1.0 [here](https://github.com/openapi-generators/openapi-python-client/projects/2).
1515

16+
## 0.28.0 (2025-12-03)
17+
18+
### Breaking Changes
19+
20+
- URL-encode path parameters in generated endpoints (#1349)
21+
22+
### Fixes
23+
24+
#### Fix bad code generation
25+
26+
##1360 by @EricAtORS
27+
28+
This fixes:
29+
- missing parenthesis in to_multipart
30+
#1338 #1318
31+
- missing imports in the lazy eval in to_multipart:
32+
##931 and #1051
33+
34+
#### Fix optional bodies
35+
36+
If a body is not required (the default), it will now:
37+
38+
1. Have `Unset` as part of its type annotation.
39+
2. Default to a value of `UNSET`
40+
3. Not be included in the request if it is `UNSET`
41+
42+
Thanks @orelmaliach for the report! Fixes #1354
43+
1644
## 0.27.1 (2025-11-03)
1745

1846
### Fixes

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies = [
1717
"ruff>=0.2",
1818
]
1919
name = "openapi-python-client"
20-
version = "0.27.1"
20+
version = "0.28.0"
2121
description = "Generate modern Python clients from OpenAPI"
2222
keywords = [
2323
"OpenAPI",

0 commit comments

Comments
 (0)