Open musjj opened 1 day ago
Is it possible to use status codes with oasgen and have it automatically generate the appropriate openapi attributes?
oasgen
async fn create_foo(Json(payload): Json<Foo>) -> impl IntoResponse { ... (StatusCode::CREATED, Json(payload)) }
Right now it doesn't, but I'd welcome a PR to implement this. The working fallback is to access/modify the OpenAPI object at runtime.
Is it possible to use status codes with
oasgen
and have it automatically generate the appropriate openapi attributes?