]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery...
authorHylke Postma <20515386+hylkepostma@users.noreply.github.com>
Thu, 29 Jul 2021 10:30:48 +0000 (12:30 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Jul 2021 10:30:48 +0000 (12:30 +0200)
commit3b2e891917dd2739659643cedb5258e65d54934d
treeccd8336ebdcdea110c616a87c4332d82d26dd797
parent9121fccf55a65108b022d7e245940b5b7731e031
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` (#1757)

Co-authored-by: Hylke Postma <h.postma@docuwork.nl>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
15 files changed:
fastapi/security/api_key.py
fastapi/security/http.py
fastapi/security/oauth2.py
fastapi/security/open_id_connect_url.py
tests/test_security_api_key_cookie_description.py [new file with mode: 0644]
tests/test_security_api_key_header_description.py [new file with mode: 0644]
tests/test_security_api_key_query_description.py [new file with mode: 0644]
tests/test_security_http_base_description.py [new file with mode: 0644]
tests/test_security_http_basic_realm_description.py [new file with mode: 0644]
tests/test_security_http_bearer_description.py [new file with mode: 0644]
tests/test_security_http_digest_description.py [new file with mode: 0644]
tests/test_security_oauth2_authorization_code_bearer_description.py [new file with mode: 0644]
tests/test_security_oauth2_optional_description.py [new file with mode: 0644]
tests/test_security_oauth2_password_bearer_optional_description.py [new file with mode: 0644]
tests/test_security_openid_connect_description.py [new file with mode: 0644]