Skip to content

Commit 215509f

Browse files
authored
chore: use camel case fileds format for response fields (#103)
chore: use camel case fileds format for response fields (#103)
1 parent ee3bd2d commit 215509f

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

api-spec/orders-api.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ paths:
7474
nullable: true
7575
description: Optional message about the submission
7676
example: null
77-
order_id:
77+
orderId:
7878
type: string
7979
description: Unique identifier for the submitted order
8080
example: "1fa518079ecf01372290adf75c55858771efcbcee080594cc8bc24e3309a3a09"
@@ -233,13 +233,13 @@ components:
233233
- Finalized: Order is complete (after claim confirmation)
234234
- Failed: Order execution failed (with transaction type details)
235235
enum:
236-
- Created
237-
- Pending
238-
- Executed
239-
- Settled
240-
- Finalized
241-
- Failed
242-
example: "Executed"
236+
- created
237+
- pending
238+
- executed
239+
- settled
240+
- finalized
241+
- failed
242+
example: "executed"
243243

244244
AssetAmount:
245245
type: object

crates/solver-discovery/src/implementations/offchain/_7683.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ struct IntentRequest {
205205
/// * `status` - Either "success" or "error"
206206
/// * `message` - Optional error message when status is "error"
207207
#[derive(Debug, Serialize)]
208+
#[serde(rename_all = "camelCase")]
208209
struct IntentResponse {
209210
order_id: String,
210211
status: String, // error | success

crates/solver-types/src/order.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ pub struct OrderResponse {
157157

158158
/// Status of an order in the solver system.
159159
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
160+
#[serde(rename_all = "camelCase")]
160161
pub enum OrderStatus {
161162
/// Order has been created but not yet prepared.
162163
Created,

0 commit comments

Comments
 (0)