From 426572521646cd7391be66c09590991cf83fcf01 Mon Sep 17 00:00:00 2001 From: Rafael Belchior Date: Fri, 15 Nov 2024 18:30:02 +0200 Subject: [PATCH] feat(cactus-consortium): add Ethereum ledger type Signed-off-by: Rafael Belchior --- .../src/main/json/openapi.json | 26 +++++++++---------- .../src/main/json/openapi.tpl.json | 15 +---------- 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/packages/cacti-plugin-consortium-static/src/main/json/openapi.json b/packages/cacti-plugin-consortium-static/src/main/json/openapi.json index 011357ef77..0381cc7f08 100644 --- a/packages/cacti-plugin-consortium-static/src/main/json/openapi.json +++ b/packages/cacti-plugin-consortium-static/src/main/json/openapi.json @@ -123,19 +123,6 @@ } } }, - "LedgerType": { - "description": "Enumerates the different ledger vendors and their major versions encoded within the name of the LedgerType. For example \"BESU_1X\" involves all of the [1.0.0;2.0.0) where 1.0.0 is included and anything up until, but not 2.0.0. See: https://stackoverflow.com/a/4396303/698470 for further explanation.", - "type": "string", - "enum": [ - "BESU_1X", - "BESU_2X", - "BURROW_0X", - "CORDA_4X", - "ETHEREUM", - "FABRIC_2", - "SAWTOOTH_1X" - ] - }, "CactusNodeMeta": { "description": "A Cactus node meta information", "type": "object", @@ -334,6 +321,19 @@ } } } + }, + "LedgerType": { + "description": "Enumerates the different ledger vendors and their major versions encoded within the name of the LedgerType. For example \"BESU_1X\" involves all of the [1.0.0;2.0.0) where 1.0.0 is included and anything up until, but not 2.0.0. See: https://stackoverflow.com/a/4396303/698470 for further explanation.", + "type": "string", + "enum": [ + "BESU_1X", + "BESU_2X", + "BURROW_0X", + "CORDA_4X", + "ETHEREUM", + "FABRIC_2", + "SAWTOOTH_1X" + ] } } }, diff --git a/packages/cacti-plugin-consortium-static/src/main/json/openapi.tpl.json b/packages/cacti-plugin-consortium-static/src/main/json/openapi.tpl.json index 011357ef77..f745518620 100644 --- a/packages/cacti-plugin-consortium-static/src/main/json/openapi.tpl.json +++ b/packages/cacti-plugin-consortium-static/src/main/json/openapi.tpl.json @@ -115,7 +115,7 @@ "$ref": "#/components/schemas/LedgerId" }, "ledgerType": { - "$ref": "#/components/schemas/LedgerType", + "$ref": "../../../../../packages/cactus-core-api/src/main/json/openapi.json#/components/schemas/LedgerType", "nullable": false }, "consortiumMemberId": { @@ -123,19 +123,6 @@ } } }, - "LedgerType": { - "description": "Enumerates the different ledger vendors and their major versions encoded within the name of the LedgerType. For example \"BESU_1X\" involves all of the [1.0.0;2.0.0) where 1.0.0 is included and anything up until, but not 2.0.0. See: https://stackoverflow.com/a/4396303/698470 for further explanation.", - "type": "string", - "enum": [ - "BESU_1X", - "BESU_2X", - "BURROW_0X", - "CORDA_4X", - "ETHEREUM", - "FABRIC_2", - "SAWTOOTH_1X" - ] - }, "CactusNodeMeta": { "description": "A Cactus node meta information", "type": "object",