Closed dodumosu closed 2 months ago
since APIBlueprint
inherits from both flask.Blueprint
and APIScaffold
, my guess is that the route()
method is being handled by flask.Blueprint
, not APIScaffold
:facepalm:
i should have used post()
or any other HTTP verb specific method, rather than route()
Environment:
simple example:
I don't know if it's because I'm trying to add flask_openapi3 to an existing Flask application, but I replaced my
Flask
instance with anOpenAPI
instance and the rest of the app was working fine, but when I tried to add the responses to the view (for documentation purposes), I kept getting this error.error:
TypeError: Rule.__init__() got an unexpected keyword argument 'responses'
Is there any other way to add the responses to the generated documentation?