[Bug]: FlaskOpenAPIView
no longer supports custom response validator
#662
Labels
kind/bug
Indicates an issue
Actual Behavior
Previously, the
FlaskOpenAPIView
class allowed setting theself.response_validator
attribute to a custom validator. This behavior was removed sometime afteropenapi-core
v0.14.5. (This is a follow-up from #618 where this issue was discussed in the context of custom formatters.)Expected Behavior
With
openapi-core==0.14.5
installed, we currently use a custom response validator to effectively disable response validation, like this:Then, in our sub-class of
FlaskOpenAPIView
, we setself.response_validator = NonValidator
.However, this no longer works with
openapi-core==0.18.0
. We hope to see this feature restored in a future release.Alternatively, is there a way to simply disable response validation entirely?
Steps to Reproduce
See the example above.
OpenAPI Core Version
0.18.0
OpenAPI Core Integration
flask
Affected Area(s)
validation
References
#618
Anything else we need to know?
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: