Commit 8505c3c
chore: prepare release 0.17.1 (#930)
This PR was created by Knope. Merging it will create a new release
### Features
#### Export `Unset` types from generated `types.py` (#927)
#### Generate properties for some boolean enums
If a schema has both `type = "boolean"` and `enum` defined, a normal
boolean property will now be created.
Previously, the generator would error.
Note that the generate code _will not_ correctly limit the values to the
enum values. To work around this, use the
OpenAPI 3.1 `const` instead of `enum` to generate Python `Literal`
types.
Thanks for reporting #922 @macmoritz!
### Fixes
#### Do not stop generation for invalid enum values
This generator only supports `enum` values that are strings or integers.
Previously, this was handled at the parsing level, which would cause the
generator to fail if there were any unsupported values in the document.
Now, the generator will correctly keep going, skipping only endpoints
which contained unsupported values.
Thanks for reporting #922 @macmoritz!
#### Fix lists within unions
Fixes #756 and #928. Arrays within unions (which, as of 0.17 includes
nullable arrays) would generate invalid code.
Thanks @kgutwin and @diesieben07!
#### Simplify type checks for non-required unions
Co-authored-by: GitHub <github-actions@github.com>1 parent 2247d2f commit 8505c3c
File tree
6 files changed
+35
-39
lines changed- .changeset
6 files changed
+35
-39
lines changedLines changed: 0 additions & 11 deletions
This file was deleted.
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 5 deletions
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 | + | |
| 48 | + | |
| 49 | + | |
16 | 50 | | |
17 | 51 | | |
18 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments