You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible to programmatically modify the docs:
let mut server = Server::axum().post("/send-code", send_code);
for (route, method, op) in server.openapi.operations_mut() {
op.responses
.responses
.insert(StatusCode::Code(205), RefOr::Item(Response::default()));
}
you could use tags to that effect - tag the operation "returns205", detect it in this loop and change the responses accordingly
Is it possible to use status codes with
oasgen
and have it automatically generate the appropriate openapi attributes?The text was updated successfully, but these errors were encountered: