You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In my Sanic application, I declare all my parameters once as they are used accross many endpoints. With last sanic-ext, I have this error: AttributeError: module 'sanic_ext.extensions.openapi.openapi' has no attribute 'Parameter'. Did you mean: 'parameter'?
To Reproduce
Simple code to reproduce
from sanic import Sanic
from sanic.response import text
from sanic_ext import openapi
app = Sanic("MyHelloWorldApp")
my_parameter = openapi.Parameter()
@app.get("/test1")
@openapi.parameter(my_parameter)
async def test1(request):
return text("test1")
@app.get("/test2")
@openapi.parameter(my_parameter)
async def test2(request):
return text("test2")
Additional context
If this is expected behaviour, please fix the doc also as this page states
Describe the bug
In my Sanic application, I declare all my parameters once as they are used accross many endpoints. With last sanic-ext, I have this error:
AttributeError: module 'sanic_ext.extensions.openapi.openapi' has no attribute 'Parameter'. Did you mean: 'parameter'?
To Reproduce
Simple code to reproduce
Additional context
If this is expected behaviour, please fix the doc also as this page states
Edit: broken change was introduced w/ 22.1.0
The text was updated successfully, but these errors were encountered: