Cannot add `allowed options`/ choices to a query parameter
bolorundurovj opened this issue · comments
Bolorunduro Valiant-Joshua commented
So for an endpoint as shown below, how do i specify that the allowed values are :- day, week, month ?
Python Version: 3.8,
Sanic-Openapi version: 0.7.1
@app.get("/test")
@openapi.tag("Test")
@openapi.summary('Get Data')
@openapi.description('Just a demo')
@openapi.parameter("timeframe", str, location="query")
Please let me know if i need to add any other information/context. Thanks
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is incorrect, please respond with an update. Thank you for your contributions.