-
In the basic example, how would one add a description to the generated docs for the |
Beta Was this translation helpful? Give feedback.
Answered by
greyli
Feb 27, 2023
Replies: 2 comments 1 reply
-
Looks related to this issue: #350 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Create a schema for all the path/URL parameters, then set the class EnumPathParameter(Schema):
image_type = String(validate=OneOf(['jpg', 'png', 'tiff', 'webp']))
@app.get('images/<image_type>')
@app.input(EnumPathParameter, location='path')
def index(image_type, path_data):
pass |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
greyli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a schema for all the path/URL parameters, then set the
input(location)
topath
: