0.21.5 (2024-09-07)
Features
Improved property-merging behavior with allOf
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:
- Overriding attributes that do not affect validation, such as
description. - Combining properties that this generator ignores, like
maxLengthorpattern. - Combining a generic numeric type with
int(resulting inint). - Adding a
formatto a string. - Combining
anywith a specific type (resulting in that specific type). - Adding or overriding a
default
Note
pattern and max_length are no longer fields on StringProperty, which may impact custom templates.
This also fixes a bug where properties of inline objects (as opposed to references) were not using the
merge logic, but were simply overwriting previous definitions of the same property.
Fixes
- Allow default values for properties of
Anytype