Skip to content

Commit

Permalink
fix case issue (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur authored Feb 8, 2022
1 parent 9791baa commit 97bd43d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
26 changes: 15 additions & 11 deletions api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1314,19 +1314,11 @@
"description":"Any Rosetta implementation that can update an AccountIdentifier's unspent coins based on the contents of the mempool should populate this field as true. If false, requests to `/account/coins` that set `include_mempool` as true will be automatically rejected."
},
"block_hash_case": {
"description":"This specifies the normalized case for block hash in the BlockIdentifier. If not specified, it's assumed to be case sensitive.",
"type":"string",
"nullable": true,
"enum": [
"upper_case",
"lower_case",
"case_sensitive",
null
],
"default":"case_sensitive"
"$ref":"#/components/schemas/Case",
"description":"This specifies the normalized case for block hash in the BlockIdentifier. If not specified, it's assumed to be case sensitive."
},
"transaction_hash_case": {
"$ref":"#/components/schemas/Allow/properties/block_hash_case",
"$ref":"#/components/schemas/Case",
"description":"This specifies the normalized case for transaction hash in the TransactionIdentifier. If not specified, it's assumed to be case sensitive."
}
}
Expand Down Expand Up @@ -1609,6 +1601,18 @@
"backward"
]
},
"Case": {
"description":"Case specifies the expected case for strings and hashes.",
"type":"string",
"nullable": true,
"enum": [
"upper_case",
"lower_case",
"case_sensitive",
null
],
"default":"case_sensitive"
},
"AccountBalanceRequest": {
"description":"An AccountBalanceRequest is utilized to make a balance request on the /account/balance endpoint. If the block_identifier is populated, a historical balance query should be performed.",
"type":"object",
Expand Down
2 changes: 2 additions & 0 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,8 @@ components:
$ref: 'models/RelatedTransaction.yaml'
Direction:
$ref: 'models/Direction.yaml'
Case:
$ref: 'models/Case.yaml'

# Request/Responses
AccountBalanceRequest:
Expand Down

0 comments on commit 97bd43d

Please sign in to comment.