From 3a6a7ef848b92e776d3b7f6d745e50972347a086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Tue, 24 Aug 2021 08:45:03 +0200 Subject: [PATCH] docs: correct types for transaction listing and tweaks --- openapi/SwarmCommon.yaml | 12 ++++++------ openapi/SwarmDebug.yaml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/openapi/SwarmCommon.yaml b/openapi/SwarmCommon.yaml index 5fd38d6ff4f..abef233e603 100644 --- a/openapi/SwarmCommon.yaml +++ b/openapi/SwarmCommon.yaml @@ -475,16 +475,16 @@ components: TransactionHash: type: string - pattern: "^[A-Fa-f0-9]{64}$" - example: "e28a34ffe7b1710c1baf97ca6d71d81b7f159a9920910876856c8d94dd7be4ae" + pattern: "^0x[A-Fa-f0-9]{64}$" + example: "0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a" TransactionResponse: type: object properties: transactionHash: $ref: "#/components/schemas/TransactionHash" - - TransactionInfoResponse: + + TransactionInfo: type: object properties: transactionHash: @@ -506,14 +506,14 @@ components: value: $ref: "#/components/schemas/BigInt" - PendingTransactionReponse: + PendingTransactionsResponse: type: object properties: pendingTransactions: type: array nullable: true items: - $ref: "#/components/schemas/TransactionHash" + $ref: "#/components/schemas/TransactionInfo" Uid: type: integer diff --git a/openapi/SwarmDebug.yaml b/openapi/SwarmDebug.yaml index ecec480b67e..8b6117f3169 100644 --- a/openapi/SwarmDebug.yaml +++ b/openapi/SwarmDebug.yaml @@ -680,7 +680,7 @@ paths: content: application/json: schema: - $ref: "SwarmCommon.yaml#/components/schemas/PendingTransactionReponse" + $ref: "SwarmCommon.yaml#/components/schemas/PendingTransactionsResponse" "500": $ref: "SwarmCommon.yaml#/components/responses/500" default: @@ -704,7 +704,7 @@ paths: content: application/json: schema: - $ref: "SwarmCommon.yaml#/components/schemas/TransactionInfoResponse" + $ref: "SwarmCommon.yaml#/components/schemas/TransactionInfo" "404": $ref: "SwarmCommon.yaml#/components/responses/404" "500":