sanic-org / sanic-openapi

Easily document your Sanic API with a UI

Home Page:https://sanic-openapi.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot add `allowed options`/ choices to a query parameter

bolorundurovj opened this issue · comments

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

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.