sanic-org / sanic-openapi

Easily document your Sanic API with a UI
https://sanic-openapi.readthedocs.io/
MIT License
505 stars 107 forks source link

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

Closed bolorundurovj closed 2 years ago

bolorundurovj commented 3 years ago

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[bot] commented 2 years ago

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.