Skip to content

📝 Add diagram to "Multiple middleware execution order" docs#15480

Open
AaronTimony wants to merge 1 commit into
fastapi:masterfrom
AaronTimony:docs/middleware-sequence-diagram
Open

📝 Add diagram to "Multiple middleware execution order" docs#15480
AaronTimony wants to merge 1 commit into
fastapi:masterfrom
AaronTimony:docs/middleware-sequence-diagram

Conversation

@AaronTimony

Copy link
Copy Markdown

Updated docs for execution order section in middleware. Thought it was a bit confusing without a diagram so I added one to make it clearer. Matches the styling of other diagrams throughout the documentation.

@github-actions github-actions Bot added the docs Documentation about how to use FastAPI label May 4, 2026
@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

@YuriiMotov

YuriiMotov commented May 4, 2026

Copy link
Copy Markdown
Member

I agree it's better to illustrate it with diagram!

I think 2 middlewares would be enough, and we should move them a bit up (to replace lines 85-87)

@AaronTimony AaronTimony force-pushed the docs/middleware-sequence-diagram branch from 1cced50 to a4792b7 Compare May 4, 2026 14:54
@YuriiMotov YuriiMotov changed the title Added diagram to middleware execution order docs 📝 Add diagram to "Multiple middleware execution order" docs May 4, 2026

@YuriiMotov YuriiMotov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@AaronTimony, thanks!
Passing it to Sebastian for final review

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.

2 participants