Skip to content

Commit 66c3036

Browse files
Release 0.21.6
1 parent 8864a5f commit 66c3036

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

Diff for: .changeset/add_literal_enums_config_setting.md

-14
This file was deleted.

Diff for: CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,29 @@ 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.21.6 (2024-10-20)
17+
18+
### Features
19+
20+
- update Ruff to >=0.2,<0.8 (#1137)
21+
- Add UUID string format. Thanks @estyrke! (#1140)
22+
- Support OpenAPI 3.1 prefixItems property for arrays. Thanks @estyrke! (#1141)
23+
24+
#### Add `literal_enums` config setting
25+
26+
Instead of the default `Enum` classes for enums, you can now generate `Literal` sets wherever `enum` appears in the OpenAPI spec by setting `literal_enums: true` in your config file.
27+
28+
```yaml
29+
literal_enums: true
30+
```
31+
32+
Thanks to @emosenkis for PR #1114 closes #587, #725, #1076, and probably many more.
33+
Thanks also to @eli-bl, @expobrain, @theorm, @chrisguillory, and anyone else who helped getting to this design!
34+
35+
### Fixes
36+
37+
- Typo in docstring (#1128)
38+
1639
## 0.21.5 (2024-09-07)
1740
1841
### Features

Diff for: 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.21.5"
21+
version = "0.21.6"
2222
description = "Generate modern Python clients from OpenAPI"
2323
keywords = [
2424
"OpenAPI",

0 commit comments

Comments
 (0)