From c89402fd0bce2ec6330b3642b4d4c056c90d23fd Mon Sep 17 00:00:00 2001 From: Amin Moghaddam Date: Wed, 6 Mar 2024 18:11:10 +0100 Subject: [PATCH] fix(auction-server): Correct schema for BidId (#25) --- auction-server/Cargo.lock | 2 +- auction-server/Cargo.toml | 2 +- auction-server/src/api/ws.rs | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/auction-server/Cargo.lock b/auction-server/Cargo.lock index 2e057adc..ea47f916 100644 --- a/auction-server/Cargo.lock +++ b/auction-server/Cargo.lock @@ -162,7 +162,7 @@ dependencies = [ [[package]] name = "auction-server" -version = "0.1.5" +version = "0.1.6" dependencies = [ "anyhow", "async-stream", diff --git a/auction-server/Cargo.toml b/auction-server/Cargo.toml index 25d12a8d..191468f9 100644 --- a/auction-server/Cargo.toml +++ b/auction-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "auction-server" -version = "0.1.5" +version = "0.1.6" edition = "2021" license-file = "license.txt" diff --git a/auction-server/src/api/ws.rs b/auction-server/src/api/ws.rs index 27d7c29b..68d2cb1c 100644 --- a/auction-server/src/api/ws.rs +++ b/auction-server/src/api/ws.rs @@ -112,7 +112,11 @@ pub enum ServerUpdateResponse { opportunity: OpportunityParamsWithMetadata, }, #[serde(rename = "bid_status_update")] - BidStatusUpdate { id: BidId, status: BidStatus }, + BidStatusUpdate { + #[schema(value_type = String)] + id: BidId, + status: BidStatus, + }, } #[derive(Serialize, Clone, ToSchema)]