Skip to content

✨ Add dataclasses-based route parameters#14764

Closed
HoverHell wants to merge 1 commit intofastapi:masterfrom
HoverHell:route-dc
Closed

✨ Add dataclasses-based route parameters#14764
HoverHell wants to merge 1 commit intofastapi:masterfrom
HoverHell:route-dc

Conversation

@HoverHell
Copy link

Proposal for discussion:

Adding a dataclass that represents the arguments to api_route
allows for custom route-building functions
without having to copy all the parameters supported in api_route.

For an example, see classy_fastapi, or this related code and discussion.

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 23, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing HoverHell:route-dc (1164fc7) with master (8c32e91)

Summary

✅ 20 untouched benchmarks

@HoverHell HoverHell force-pushed the route-dc branch 2 times, most recently from fd3d389 to 1164fc7 Compare January 26, 2026 07:52
@HoverHell HoverHell changed the title Add dataclasses-based route parameters ✨ Add dataclasses-based route parameters Jan 26, 2026
@HoverHell HoverHell closed this Jan 26, 2026
@HoverHell
Copy link
Author

HoverHell commented Jan 26, 2026

-> #14774

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant