From 5423b2e0582af775fcc7aa45fc294b191f251957 Mon Sep 17 00:00:00 2001 From: paolo veronelli Date: Mon, 1 Aug 2022 17:02:15 +0200 Subject: [PATCH] add openapi specification for `postTx` response in case of mempool full --- specifications/api/swagger.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/specifications/api/swagger.yaml b/specifications/api/swagger.yaml index a5fdcec6bc9..5827666f9b5 100644 --- a/specifications/api/swagger.yaml +++ b/specifications/api/swagger.yaml @@ -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 @@ -5539,6 +5550,8 @@ x-responsesPostExternalTransaction: &responsesPostExternalTransaction <<: *responsesErr400 <<: *responsesErr406 <<: *responsesErr415UnsupportedMediaType + 425: + description: Mempool is full, please try resubmitting again later. 202: description: Accepted content: