Skip to content

Commit

Permalink
fix: openapi for duplicated orders (#1929)
Browse files Browse the repository at this point in the history
# Description
Fixes the OpenAPI yaml description for down-stream consumers.

# Changes

- [x] Corrected `DuplicatedOrder` response

## How to test

1. Attempt to place the same order twice.
2. Observe correct API response per `openapi.yml`.

## Related Issues

Fixes #1928
  • Loading branch information
mfw78 authored Oct 8, 2023
1 parent c3dcbf2 commit 4dbeeb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/orderbook/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ components:
type: string
enum:
[
DuplicateOrder,
DuplicatedOrder,
QuoteNotFound,
InvalidQuote,
MissingFrom,
Expand Down Expand Up @@ -1125,7 +1125,7 @@ components:
OrderFullyExecuted,
OrderExpired,
OnChainOrder,
DuplicateOrder,
DuplicatedOrder,
InsufficientFee,
InsufficientAllowance,
InsufficientBalance,
Expand Down

0 comments on commit 4dbeeb8

Please sign in to comment.