diff --git a/specifications/api/swagger.yaml b/specifications/api/swagger.yaml index 77d7cbdf57f..bd3634535f0 100644 --- a/specifications/api/swagger.yaml +++ b/specifications/api/swagger.yaml @@ -406,6 +406,13 @@ x-drepKeyHash: &drepKeyHash description: DRep's key hash. pattern: "^(drep)1[0-9a-z]*$" +x-drepScriptHash: &drepScriptHash + type: string + format: bech32 + example: drep_script1wqaz0q0zhtxlgn0ewssevn2mrtm30fgh2g7hr7z9rj5856457mm + description: DRep's script hash. + pattern: "^(drep_script)1[0-9a-z]*$" + x-walletAccountXPubkey: &walletAccountXPubkey description: An extended account public key (public key + chain code) type: string @@ -2972,6 +2979,8 @@ components: title: casting a default vote - <<: *drepKeyHash title: vote to a drep represented by key hash + - <<: *drepScriptHash + title: vote to a drep represented by script hash ApiWalletDelegationNext: &ApiWalletDelegationNext type: object