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
+55Lines changed: 55 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,61 @@ 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.21.5 (2024-09-07)
17
+
18
+
### Features
19
+
20
+
#### Improved property-merging behavior with `allOf`
21
+
22
+
When using `allOf` to extend a base object type, `openapi-python-client` is now able to handle some kinds of modifications to an existing property that would have previously caused an error:
23
+
24
+
- Overriding attributes that do not affect validation, such as `description`.
25
+
- Combining properties that this generator ignores, like `maxLength` or `pattern`.
26
+
- Combining a generic numeric type with `int` (resulting in `int`).
27
+
- Adding a `format` to a string.
28
+
- Combining `any` with a specific type (resulting in that specific type).
29
+
- Adding or overriding a `default`
30
+
31
+
> [!NOTE]
32
+
> `pattern` and `max_length` are no longer fields on `StringProperty`, which may impact custom templates.
33
+
34
+
This also fixes a bug where properties of inline objects (as opposed to references) were not using the
35
+
merge logic, but were simply overwriting previous definitions of the same property.
36
+
37
+
### Fixes
38
+
39
+
- Allow default values for properties of `Any` type
40
+
41
+
#### Produce valid code for an object that has no properties at all
42
+
43
+
Fixed by PR #1109. Thanks @eli-bl!
44
+
45
+
## 0.21.4 (2024-08-25)
46
+
47
+
### Fixes
48
+
49
+
#### Allow OpenAPI 3.1-style `exclusiveMinimum` and `exclusiveMaximum`
50
+
51
+
Fixed by PR #1092. Thanks @mikkelam!
52
+
53
+
#### Add missing `cast` import when using `const`
54
+
55
+
Fixed by PR #1072. Thanks @dorcohe!
56
+
57
+
#### Correctly resolve references to a type that is itself just a single allOf reference
0 commit comments