Skip to content

Support status codes with axum #23

@musjj

Description

@musjj

Is it possible to use status codes with oasgen and have it automatically generate the appropriate openapi attributes?

async fn create_foo(Json(payload): Json<Foo>) -> impl IntoResponse {
    ...

    (StatusCode::CREATED, Json(payload))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions