Created
August 21, 2023 13:17
-
-
Save brunomichetti/cee1ed5e77e6e37a1da30c509048546f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The custom schemas file | |
from drf_spectacular.utils import OpenApiParameter, extend_schema | |
list_users_schema = extend_schema( | |
parameters=[ | |
OpenApiParameter( | |
name="username", | |
description=( | |
"Searches for the value in this query parameter returning " | |
"all the users that have this value as substring. Ignores lowercase and uppercase." | |
), | |
type=str | |
) | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment