From 67e208524142b0bf56e8b26a6867975acf7414d1 Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Fri, 13 Dec 2024 14:44:08 +0100 Subject: [PATCH] Simplify schema to have a single drep hash --- specifications/api/swagger.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/specifications/api/swagger.yaml b/specifications/api/swagger.yaml index 93bfd17cf3e..2fdb347ba53 100644 --- a/specifications/api/swagger.yaml +++ b/specifications/api/swagger.yaml @@ -399,21 +399,11 @@ x-stakePoolId: &stakePoolId example: pool1wqaz0q0zhtxlgn0ewssevn2mrtm30fgh2g7hr7z9rj5856457mm description: A unique identifier for the pool. -x-drepKeyHash: &drepKeyHash +x-drepHash: &drepHash type: string format: bech32 example: drep1wqaz0q0zhtxlgn0ewssevn2mrtm30fgh2g7hr7z9rj5856457mm - description: DRep's key hash according to CIP-0129. - pattern: "^(drep)1[0-9a-z]*$" - -x-drepScriptHash: &drepScriptHash - type: string - format: bech32 - example: drep1wqaz0q0zhtxlgn0ewssevn2mrtm30fgh2g7hr7z9rj5856457mm - description: | - DRep's script hash according to CIP-0129. Note this is identical - to drepKeyHash but for unknown reasons we need to different - schema fragments here. + description: DRep's key or script hash according to CIP-0129. pattern: "^(drep)1[0-9a-z]*$" x-walletAccountXPubkey: &walletAccountXPubkey @@ -2980,10 +2970,8 @@ components: - abstain - no_confidence title: casting a default vote - - <<: *drepKeyHash + - <<: *drepHash title: vote to a drep represented by key hash - - <<: *drepScriptHash - title: vote to a drep represented by script hash ApiWalletDelegationNext: &ApiWalletDelegationNext type: object