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 9, 2022
1 parent dd34dcd commit e9996d9
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 @@ -4157,6 +4157,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 @@ -5572,6 +5583,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 e9996d9

Please sign in to comment.