Skip to content

Commit c5fb3a7

Browse files
committed
docs: update wallet api schema to better represent non-object tuples
1 parent 9c2d6ac commit c5fb3a7

File tree

2 files changed

+16
-25
lines changed

2 files changed

+16
-25
lines changed

docs-site

docs/specs/openrpc/wallet-api/wallet-api.yaml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3325,10 +3325,11 @@ methods:
33253325
- name: wallet_getCallsStatus
33263326
description: This method is used to get the status of calls IDs returned from wallet_sendPreparedCalls.
33273327
params:
3328-
- name: getCallsStatusRequest
3328+
- name: callId
33293329
required: true
33303330
schema:
33313331
description: "The call ID returned from wallet_sendPreparedCalls"
3332+
title: "callId"
33323333
type: "string"
33333334
pattern: "^0x(.*)$"
33343335

@@ -3487,31 +3488,21 @@ methods:
34873488
- name: wallet_getCapabilities
34883489
description: This method is used to request capabilities from a wallet
34893490
params:
3490-
- name: getCapabilitiesRequest
3491+
- name: Wallet Address
34913492
required: true
34923493
schema:
3493-
anyOf:
3494-
- description: "Wallet address only"
3495-
type: "array"
3496-
items:
3497-
- type: "string"
3498-
pattern: "^0x(.*)$"
3499-
additionalItems: false
3500-
minItems: 1
3501-
maxItems: 1
3502-
- description: "Wallet address and chain ids"
3503-
type: "array"
3504-
items:
3505-
- type: "string"
3506-
pattern: "^0x(.*)$"
3507-
- type: "array"
3508-
items:
3509-
type: "string"
3510-
pattern: "^0x(.*)$"
3511-
additionalItems: false
3512-
minItems: 2
3513-
maxItems: 2
3514-
minItems: 1
3494+
title: "Wallet Address"
3495+
type: "string"
3496+
pattern: "^0x(.*)$"
3497+
3498+
- name: Chain IDs
3499+
required: false
3500+
schema:
3501+
title: "Chain IDs"
3502+
type: "array"
3503+
items:
3504+
type: "string"
3505+
pattern: "^0x(.*)$"
35153506

35163507
result:
35173508
name: getCapabilitiesResponse

0 commit comments

Comments
 (0)