python-openapi / openapi-core

Openapi-core is a Python library that adds client-side and server-side support for the OpenAPI v3.0 and OpenAPI v3.1 specification.
BSD 3-Clause "New" or "Revised" License
287 stars 131 forks source link

invalid usage of super() when having multi-baseclass inheritance: … #802

Closed sergiy-kozak closed 4 months ago

sergiy-kozak commented 4 months ago

…use direct basecls.init() to avoid nasty side effect of calling 'wrong' base class init(). Particularly in this case, openapi_core.validation.request.BaseRequestUnmarshaller got 'extra_format_unmarshallers' property reset to None after BaseRequestValidator.init() call. Added unit test would fail if super() calls are present instead.

p1c2u commented 4 months ago

@sergiy-kozak Thank you for the contribution