8000 📝 Highlight correct line in tutorial `docs/en/docs/tutorial/body-multiple-params.md` by svlandeg · Pull Request #11978 · fastapi/fastapi · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@svlandeg
Copy link
Member
@svlandeg svlandeg commented Aug 9, 2024

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
Copy link
Contributor
github-actions bot commented Aug 9, 2024

@svlandeg svlandeg removed the p3 label Aug 9, 2024
@github-actions
Copy link
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
Member

Great, thank you! 🙇

black-redoc pushed a commit to black-redoc/fastapi that referenced this pull request Aug 17, 2024
…iple-params.md` (fastapi#11978)

Co-authored-by: Esteban Maya <emayacadavid9@gmail.com>
@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
…iple-params.md` (fastapi#11978)

Co-authored-by: Esteban Maya <emayacadavid9@gmail.com>
s-rigaud pushed a commit to s-rigaud/fastapi that referenced this pull request Jan 23, 2025
…iple-params.md` (fastapi#11978)

Co-authored-by: Esteban Maya <emayacadavid9@gmail.com>
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

0