From f42161cd19fadb7f4c35bdfbd89fe4ee52dc2add Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Tue, 25 Nov 2025 21:41:12 +0100 Subject: [PATCH] Update note in docs --- docs/en/docs/advanced/security/oauth2-scopes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/docs/advanced/security/oauth2-scopes.md b/docs/en/docs/advanced/security/oauth2-scopes.md index 1d5acd7f0..eb4b2f8e9 100644 --- a/docs/en/docs/advanced/security/oauth2-scopes.md +++ b/docs/en/docs/advanced/security/oauth2-scopes.md @@ -110,9 +110,9 @@ You can use `Security` to declare dependencies (just like `Depends`), but `Secur /// note -Before version 0.121.4, the name of this parameter was `scopes`. +Before version 0.122.X, the name of this parameter was `scopes`. -Since FastAPI 0.121.4, the `scopes` parameter has been deprecated in favor of `oauth_scopes` +In FastAPI 0.122.X, the `scopes` parameter was deprecated in favor of `oauth_scopes` to avoid confusing it with the `scope` parameter, which is used to specify when the exit code of dependencies with `yield` should run.