Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created August 21, 2023 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/cee1ed5e77e6e37a1da30c509048546f to your computer and use it in GitHub Desktop.
Save brunomichetti/cee1ed5e77e6e37a1da30c509048546f to your computer and use it in GitHub Desktop.
# 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