You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,31 @@ Programmatic usage of this project (e.g., importing it as a Python module) and t
13
13
14
14
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).
15
15
16
+
## 0.19.1 (2024-03-27)
17
+
18
+
### Features
19
+
20
+
#### Add config option to override content types
21
+
22
+
You can now define a `content_type_overrides` field in your `config.yml`:
23
+
24
+
```yaml
25
+
content_type_overrides:
26
+
application/zip: application/octet-stream
27
+
```
28
+
29
+
This allows `openapi-python-client` to generate code for content types it doesn't recognize.
30
+
31
+
PR #1010 closes #810. Thanks @gaarutyunov!
32
+
33
+
### Fixes
34
+
35
+
#### Add aliases to `Client` for pyright
36
+
37
+
This should resolve incompatibilities between the generated `Client` class and the pyright type checker.
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,6 +156,16 @@ If this option results in conflicts, you will need to manually override class na
156
156
157
157
By default, the timeout for retrieving the schema file via HTTP is 5 seconds. In case there is an error when retrieving the schema, you might try and increase this setting to a higher value.
158
158
159
+
### content_type_overrides
160
+
161
+
Normally, `openapi-python-client` will skip any bodies or responses that it doesn't recognize the content type for.
162
+
This config tells the generator to treat a given content type like another.
0 commit comments