Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract CratePath and CrateVersionPath structs #10208

Merged
merged 7 commits into from
Dec 15, 2024

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 15, 2024

These structs can be used as axum extractors for the corresponding Path patterns. At the same time, they implement utoipa::IntoParams, which allows them to be used in #[utoipa::path(params(CratePath), ...) form, which adds them to the generated OpenAPI description.

Related:

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Dec 15, 2024
@Turbo87 Turbo87 enabled auto-merge December 15, 2024 13:23
@Turbo87 Turbo87 disabled auto-merge December 15, 2024 13:27
@Turbo87 Turbo87 enabled auto-merge December 15, 2024 13:32
@Turbo87 Turbo87 merged commit 6735663 into rust-lang:main Dec 15, 2024
8 checks passed
@Turbo87 Turbo87 deleted the path-structs branch December 15, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant