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 11, 2022
1 parent 8a538b8 commit 5f8e221
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 @@ -4163,6 +4163,17 @@ x-errMalformedTxPayload: &errMalformedTxPayload
type: string
enum: ['malformed_tx_payload']

x-errMempoolIsFull: &errMempoolIsFull
<<: *responsesErr
title: mempool_is_full
properties:
message:
type: string
description: May occur when submitting a serialized transaction to a node 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 @@ -5578,6 +5589,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 5f8e221

Please sign in to comment.