Skip to content

Commit 2e1d65f

Browse files
author
GitHub
committed
chore: prepare release 0.21.1
1 parent 32f6f67 commit 2e1d65f

File tree

3 files changed

+33
-27
lines changed

3 files changed

+33
-27
lines changed

Diff for: .changeset/support_request_body_refs.md

-26
This file was deleted.

Diff for: CHANGELOG.md

+32
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,38 @@ 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.1 (2024-06-15)
17+
18+
### Features
19+
20+
#### Support request body refs
21+
22+
You can now define and reuse bodies via refs, with a document like this:
23+
24+
```yaml
25+
paths:
26+
/something:
27+
post:
28+
requestBody:
29+
"$ref": "#/components/requestBodies/SharedBody"
30+
components:
31+
requestBodies:
32+
SharedBody:
33+
content:
34+
application/json:
35+
schema:
36+
type: string
37+
```
38+
39+
Thanks to @kigawas and @supermihi for initial implementations and @RockyMM for the initial request.
40+
41+
Closes #633, closes #664, resolves #595.
42+
43+
### Fixes
44+
45+
- Indent of generated code for non-required lists. Thanks @sfowl! (#1050)
46+
- Parsing requestBody with $ref (#633)
47+
1648
## 0.21.0 (2024-06-08)
1749
1850
### Breaking Changes

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.0"
21+
version = "0.21.1"
2222
description = "Generate modern Python clients from OpenAPI"
2323
keywords = [
2424
"OpenAPI",

0 commit comments

Comments
 (0)