Skip to content

Commit

Permalink
Fix wrong type in example response body
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaku committed Aug 29, 2024
1 parent 908d279 commit 4148199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/axum-utoipa-bindings/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ mod order {
/// Create an order.
///
/// Create an order by basically passing through the name of the request with static id.
#[utoipa::path(post, path = "", responses((status = OK, body = OrderRequest)), tag = super::ORDER_TAG)]
#[utoipa::path(post, path = "", responses((status = OK, body = Order)), tag = super::ORDER_TAG)]
async fn create_order(Json(order): Json<OrderRequest>) -> Json<Order> {
Json(Order {
id: 120,
Expand Down

0 comments on commit 4148199

Please sign in to comment.