Skip to content

Conversation

@mahdighadiriii
Copy link

Fixes #12419
update docs to show how to make query param required but allow None
add tip: use ?q=null to send None
add working example with string check
replace broken example with tutorial006c_fixed.py

@github-actions github-actions bot added the docs Documentation about how to use FastAPI label Oct 29, 2025
@github-actions
Copy link
Contributor

@mahdighadiriii
Copy link
Author

@Kludex Ready for review!
fixed the broken example and added clear tip: ?q=nullNone
tested locally works in Swagger UI.

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.

Question about "Required, can be None" parameter

1 participant