Skip to content

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