Skip to content

Commit

Permalink
add openapi specification for postTx response in case of mempool full
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Aug 3, 2022
1 parent d100cf4 commit 5423b2e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions specifications/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4124,6 +4124,17 @@ x-errMalformedTxPayload: &errMalformedTxPayload
type: string
enum: ['malformed_tx_payload']

x-errMempoolIsFull: &errMempoolIsFull
<<: *responsesErr
title: malformed_tx_payload
properties:
message:
type: string
description: May occur when submitting a serialized transaction to an external service with full mempool.
code:
type: string
enum: ['mempool_is_full']

x-errTokensMintedButNotSpentOrBurned: &errTokensMintedButNotSpentOrBurned
<<: *responsesErr
title: tokens_minted_but_not_spent_or_burned
Expand Down Expand Up @@ -5539,6 +5550,8 @@ x-responsesPostExternalTransaction: &responsesPostExternalTransaction
<<: *responsesErr400
<<: *responsesErr406
<<: *responsesErr415UnsupportedMediaType
425:
description: Mempool is full, please try resubmitting again later.
202:
description: Accepted
content:
Expand Down

0 comments on commit 5423b2e

Please sign in to comment.