Skip to content

📝 Clarify "Required, can be None" query parameter docs#15496

Open
Sanskar121543 wants to merge 1 commit into
fastapi:masterfrom
Sanskar121543:docs-query-none-clarification
Open

📝 Clarify "Required, can be None" query parameter docs#15496
Sanskar121543 wants to merge 1 commit into
fastapi:masterfrom
Sanskar121543:docs-query-none-clarification

Conversation

@Sanskar121543
Copy link
Copy Markdown

Summary

Clarifies the wording in the "Required, can be None" section of the query parameter validation docs.

The previous wording implied that clients could directly send Python None values in HTTP query parameters, which can be confusing because query parameters are transmitted as strings.

This update clarifies that:

  • the parameter type can allow None
  • the parameter can still be required
  • HTTP query parameters themselves are string-based

Changes

  • Updated wording in:

    • docs/en/docs/tutorial/query-params-str-validations.md

Related

Related to issue #12419

@github-actions github-actions Bot added the docs Documentation about how to use FastAPI label May 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation about how to use FastAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant