Skip to content

Commit 02f6b68

Browse files
committed
add change description
1 parent 61e015b commit 02f6b68

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
default: minor
3+
---
4+
5+
# Improved property-merging behavior with `allOf`
6+
7+
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:
8+
9+
- Overriding attributes that do not affect validation, such as `description`.
10+
- Specifying stricter validation for the same type, such as setting a `maxLength` for a string that previously had no max length (or previously had a larger max length), or setting a `pattern` regex for a string that previously had none.
11+
- Changing a nonspecific numeric type to `int`.
12+
- Changing a property from `any` to a specific type.
13+
14+
You can now tell `openapi-python-client` to overwrite an existing directory, rather than deleting it yourself before
15+
running `generate`.

0 commit comments

Comments
 (0)