Skip to content

Commit

Permalink
Fix #10: swagger json AccountAllowance.
Browse files Browse the repository at this point in the history
  • Loading branch information
romever committed Oct 24, 2024
1 parent 10273ae commit 6c116f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion api/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,19 @@
"definitions": {
"AccountAllowance": {
"type": "object",
"title": "AccountAllowance"
"properties": {
"address": {
"type": "string"
},
"amount": {
"type": "string"
}
},
"title": "AccountAllowance",
"required": [
"address",
"amount"
]
},
"AccountDebondingInfo": {
"type": "object",
Expand Down
6 changes: 3 additions & 3 deletions api/oasisscan.api
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
info(
desc: "This api document example is the mainnet document, and the test network base URL is api.oasisscan.com/v2/mainnet"
desc: "This api document example is the Mainnet document, and the Testnet base URL is api.oasisscan.com/v2/testnet"
)

/** common **/
Expand Down Expand Up @@ -216,8 +216,8 @@ type (
Allowances []*AccountAllowance `json:"allowances"`
}
AccountAllowance {
Address string `path:"address"`
Amount string `path:"amount"`
Address string `json:"address"`
Amount string `json:"amount"`
}
AccountDelegationsRequest {
Address string `form:"address"`
Expand Down

0 comments on commit 6c116f6

Please sign in to comment.