Skip to content

Commit 99ae3a9

Browse files
Release 0.23.0 (#1181)
> [!IMPORTANT] > Merging this pull request will create this release ## Breaking Changes ### Delete fewer files with `--overwrite` `--overwrite` will no longer delete the entire output directory before regenerating. Instead, it will only delete specific, known directories within that directory. Right now, that is only the generated `models` and `api` directories. Other generated files, like `README.md`, will be overwritten. Extra files and directories outside of those listed above will be left untouched, so you can any extra modules or files around while still updating `pyproject.toml` automatically. Closes #1105. ## Features - Support httpx 0.28 (#1172) ### Add `generate_all_tags` config option You can now, optionally, generate **duplicate** endpoint functions/modules using _every_ tag for an endpoint, not just the first one, by setting `generate_all_tags: true` in your configuration file. ## Fixes - Support Typer 0.14 and 0.15 (#1173) ### Fix minimum `attrs` version The minimum `attrs` dependency version was incorrectly set to 21.3.0. This has been corrected to 22.2.0, the minimum supported version since `openapi-python-client` 0.19.1. Closes #1084, thanks @astralblue! ### Fix compatibility with Pydantic 2.10+ #1176 by @Viicos Set `defer_build` to models that we know will fail to build, and call `model_rebuild` in the `__init__.py` file. Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
1 parent 88b3be1 commit 99ae3a9

6 files changed

+42
-42
lines changed

.changeset/add_generate_all_tags_config_option.md

-8
This file was deleted.

.changeset/delete_fewer_files_with_overwrite.md

-13
This file was deleted.

.changeset/fix_minimum_attrs_version.md

-10
This file was deleted.

.changeset/properly_rebuild_pydantic_models_if_necessary.md

-10
This file was deleted.

CHANGELOG.md

+41
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,47 @@ 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.23.0 (2024-12-24)
17+
18+
### Breaking Changes
19+
20+
#### Delete fewer files with `--overwrite`
21+
22+
`--overwrite` will no longer delete the entire output directory before regenerating. Instead, it will only delete
23+
specific, known directories within that directory. Right now, that is only the generated `models` and `api` directories.
24+
25+
Other generated files, like `README.md`, will be overwritten. Extra files and directories outside of those listed above
26+
will be left untouched, so you can any extra modules or files around while still updating `pyproject.toml` automatically.
27+
28+
Closes #1105.
29+
30+
### Features
31+
32+
- Support httpx 0.28 (#1172)
33+
34+
#### Add `generate_all_tags` config option
35+
36+
You can now, optionally, generate **duplicate** endpoint functions/modules using _every_ tag for an endpoint,
37+
not just the first one, by setting `generate_all_tags: true` in your configuration file.
38+
39+
### Fixes
40+
41+
- Support Typer 0.14 and 0.15 (#1173)
42+
43+
#### Fix minimum `attrs` version
44+
45+
The minimum `attrs` dependency version was incorrectly set to 21.3.0. This has been corrected to 22.2.0, the minimum
46+
supported version since `openapi-python-client` 0.19.1.
47+
48+
Closes #1084, thanks @astralblue!
49+
50+
#### Fix compatibility with Pydantic 2.10+
51+
52+
##1176 by @Viicos
53+
54+
Set `defer_build` to models that we know will fail to build, and call `model_rebuild`
55+
in the `__init__.py` file.
56+
1657
## 0.22.0 (2024-11-23)
1758

1859
### Breaking Changes

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
"typing-extensions>=4.8.0,<5.0.0",
1919
]
2020
name = "openapi-python-client"
21-
version = "0.22.0"
21+
version = "0.23.0"
2222
description = "Generate modern Python clients from OpenAPI"
2323
keywords = [
2424
"OpenAPI",

0 commit comments

Comments
 (0)