Commit a1d6dd2
chore: prepare release 0.20.0 (openapi-generators#1032)
This PR was created by Knope. Merging it will create a new release
### Breaking Changes
#### `const` values in responses are now validated at runtime
Prior to this version, `const` values returned from servers were assumed
to always be correct. Now, if a server returns
an unexpected value, the client will raise a `ValueError`. This should
enable better usage with `oneOf`.
PR openapi-generators#1024. Thanks @peter-greenatlas!
#### Switch YAML parsing to 1.2
This change switches the YAML parsing library to `ruamel.yaml` which
follows the YAML 1.2 specification.
[There are breaking
changes](https://yaml.readthedocs.io/en/latest/pyyaml/#defaulting-to-yaml-12-support)
from YAML 1.1 to 1.2,
though they will not affect most use cases.
PR openapi-generators#1042 fixes openapi-generators#1041. Thanks @rtaycher!
### Features
- allow Ruff 0.4 (openapi-generators#1031)
### Fixes
#### Fix nullable and required properties in multipart bodies
Fixes openapi-generators#926.
> [!WARNING]
> This change is likely to break custom templates. Multipart body
handling has been completely split from JSON bodies.
Co-authored-by: GitHub <[email protected]>1 parent 25e1270 commit a1d6dd2
File tree
5 files changed
+33
-32
lines changed- .changeset
5 files changed
+33
-32
lines changedThis file was deleted.
Lines changed: 0 additions & 10 deletions
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
16 | 48 | | |
17 | 49 | | |
18 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments