Replies: 9 comments
|
Not sure if this counts as a small improvement: https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#add-regular-expressions
So if you try to reuse the pattern, you will have mismatches. E.g. doing |
|
Invalid highlights in https://fastapi.tiangolo.com/advanced/security/oauth2-scopes/ |
|
In
|
|
I am interested in FastAPI but haven't used it yet. So I visited https://fastapi.tiangolo.com/ and was impressed by the thorough documentation, and I look forward to diving in and trying it. I block external fonts, so the typography looks a little strange, because there is a lot of space between the letters. ProposalPerhaps consider self hosting the fonts in the documentation since Zensical supports this?
From https://zensical.org/docs/setup/fonts/ It seems like these fonts are loaded, looking under Firefox > Network:
They are available via the Google Webfonts Helper tool:
|
|
Cookie Parameters docs — misleading 422 error note Location: Current text:
Issue: This implies any missing cookie produces an error. That's only true for required cookie parameters (no default). For optional cookies, the request still succeeds and returns the default — that's expected behavior, not an error. Current wording is confusing and ambiguous as a fellow beginner like myself. Suggested fix:
|
|
docs(zh): typo,fix markdown list spacing in oauth2 docs Omitted spaces prevent the HTML from rendering correctly. git apply << 'EOF'
diff --git a/docs/zh/docs/tutorial/security/index.md b/docs/zh/docs/tutorial/security/index.md
index a4c352110..4c992608c 100644
--- a/docs/zh/docs/tutorial/security/index.md
+++ b/docs/zh/docs/tutorial/security/index.md
@@ -79,7 +79,7 @@ OpenAPI 定义了以下安全方案:
* HTTP Basic 认证方式。
* HTTP Digest,等等。
* `oauth2`:所有的 OAuth2 处理安全性的方式(称为「流程」)。
- *以下几种流程适合构建 OAuth 2.0 身份认证的提供者(例如 Google,Facebook,X (Twitter),GitHub 等):
+ * 以下几种流程适合构建 OAuth 2.0 身份认证的提供者(例如 Google,Facebook,X (Twitter),GitHub 等):
* `implicit`
* `clientCredentials`
* `authorizationCode`
EOF |
|
Hi! First of all, thank you for the excellent documentation. I've been working through the FastAPI tutorial, and overall it's one of the best framework documentations I've read. While reading the first OAuth2/security example here in the docs, I found it significantly harder to follow than the rest of the tutorial because it introduces multiple independent concepts at once. For example, the example includes:
For someone trying to understand OAuth2 and dependencies for the first time, it's difficult to distinguish which pieces are essential for authentication and which are simply demonstrating additional patterns. I think a simpler first example could focus on only:
Then later examples could progressively introduce password hashing, inactive users, response models, database models, etc. While reading the example I also noticed one point of confusion:
Would the maintainers be open to simplifying the introductory example or adding a short explanation of these design choices? I'd be happy to help draft a simplified version if that would be useful. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
This thread should be used to report clear typos, broken links, or other small issues with the language used throughout the documentation.
Every once in a while, a maintainer will collect all these reports and will create a PR with all of them, to avoid having to review & merge many small PRs.
We will not be accepting any more user PRs to update typos, links or rephrasings of the documentation/tutorial.
All reactions