From 97bd43dddd35b161f95b2e688cbcb0f254ac6f53 Mon Sep 17 00:00:00 2001 From: Madhur Shrimal Date: Tue, 8 Feb 2022 10:29:25 -0800 Subject: [PATCH] fix case issue (#94) --- api.json | 26 +++++++++++++++----------- api.yaml | 2 ++ 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/api.json b/api.json index cb6e7bb..a73d999 100644 --- a/api.json +++ b/api.json @@ -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." } } @@ -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", diff --git a/api.yaml b/api.yaml index 854024a..a65c288 100644 --- a/api.yaml +++ b/api.yaml @@ -805,6 +805,8 @@ components: $ref: 'models/RelatedTransaction.yaml' Direction: $ref: 'models/Direction.yaml' + Case: + $ref: 'models/Case.yaml' # Request/Responses AccountBalanceRequest: