Thanks to visit codestin.com
Credit goes to github.com

Skip to content

📝 Highlight correct line in tutorial docs/en/docs/tutorial/body-multiple-params.md#11978

Merged
tiangolo merged 2 commits into
fastapi:masterfrom
svlandeg:fix/highlight
Aug 17, 2024
Merged

📝 Highlight correct line in tutorial docs/en/docs/tutorial/body-multiple-params.md#11978
tiangolo merged 2 commits into
fastapi:masterfrom
svlandeg:fix/highlight

Conversation

@svlandeg

@svlandeg svlandeg commented Aug 9, 2024

Copy link
Copy Markdown
Member

The tutorial section https://fastapi.tiangolo.com/tutorial/body-multiple-params/#multiple-body-params-and-query is about adding query parameters on top of (several) body parameters. In the sections before it, the tutorial had introduced 3 body parameters: item, user and importance. This section then focuses on adding the query parameter q, so it seems to me like the next line should be highlighted in the code snippets - the line defining q instead of the one defining importance.

Or, alternatively, we could highlight all 4 lines (the 3 body parameters + the additional query parameter)

@svlandeg svlandeg added docs Documentation about how to use FastAPI p3 labels Aug 9, 2024
@github-actions

github-actions Bot commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

@svlandeg svlandeg removed the p3 label Aug 9, 2024
@github-actions

Copy link
Copy Markdown
Contributor

@estebanx64 estebanx64 requested a review from tiangolo August 16, 2024 22:44
@tiangolo tiangolo changed the title 📝 Highlight correct line in tutorial 📝 Highlight correct line in tutorial docs/en/docs/tutorial/body-multiple-params.md Aug 17, 2024
@tiangolo tiangolo merged commit 957d747 into fastapi:master Aug 17, 2024
@tiangolo

Copy link
Copy Markdown
Member

Great, thank you! 🙇

black-redoc pushed a commit to black-redoc/fastapi that referenced this pull request Aug 17, 2024
@svlandeg svlandeg deleted the fix/highlight branch August 19, 2024 08:40
black-redoc pushed a commit to black-redoc/fastapi that referenced this pull request Sep 12, 2024
s-rigaud pushed a commit to s-rigaud/fastapi that referenced this pull request Jan 23, 2025
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.

3 participants