Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clarify docs for APIRouter dependencies#698

Merged
tiangolo merged 1 commit intofastapi:masterfrom
marier-nico:clarify-router-dependencies-doc
Nov 27, 2019
Merged

Clarify docs for APIRouter dependencies#698
tiangolo merged 1 commit intofastapi:masterfrom
marier-nico:clarify-router-dependencies-doc

Conversation

@marier-nico
Copy link
Contributor

Someone might expect that the dependencies specified on an APIRouter be passed along to their path operation functions, though the behavior is closer to dependencies specified in path operation decorators. Being explicit here will make the behavior unambiguous.

This is especially true for someone who might be jumping around in the documentation and who wouldn't necessarily have readdependencies in path operation decorators.

Someone might expect that the dependencies specified on an APIRouter bepassed along to their path operation functions, though the behavior iscloser to dependencies specified in path operation decorators. Beingexplicit here will make the behavior unambiguous.
@tiangolo
Copy link
Member

Great, thanks@marier-nico ! 📝 🍰 🎉

Thanks for the explanation / argument, and thanks for writing the update to the docs using the same conventions as in the rest of the docs (with italics for those keywords/names), very perceptive! 🤓

@tiangolotiangolo merged commit3cf8b86 intofastapi:masterNov 27, 2019
@marier-nico
Copy link
ContributorAuthor

No problem, I'm happy I could contribute to the project! 😄

prostomarkeloff reacted with thumbs up emoji

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@marier-nico@tiangolo

Comments


[8]ページ先頭

©2009-2026 Movatter.jp