From 2678e2a40bfb676189ee6e82c344ba4506bdcaff Mon Sep 17 00:00:00 2001 From: Darren Kelly Date: Mon, 29 Jan 2024 17:16:02 +0000 Subject: [PATCH] fix: thor.yaml regex --- api/doc/thor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/doc/thor.yaml b/api/doc/thor.yaml index 477c589dc..6487a9b39 100644 --- a/api/doc/thor.yaml +++ b/api/doc/thor.yaml @@ -2149,7 +2149,7 @@ components: example: '0x010709463c1f0c9aa66a31182fb36d1977d99bfb6526bae0564a0eac4006c31a/0/0' required: true nullable: false - pattern: '(0x)?[0-9a-fA-F]{64}\/(0x)?([0-9]+|[0-9a-fA-F]+|[a-fA-F]+)\/[0-9]+$' + pattern: '^0x[0-9a-fA-F]{64}\/(0x[0-9a-fA-F]{64}|\d+)\/[0-9]+$' example: target: '0x010709463c1f0c9aa66a31182fb36d1977d99bfb6526bae0564a0eac4006c31a/0/0' @@ -2221,7 +2221,7 @@ components: `blockID/(txIndex|txId)/clauseIndex` required: true nullable: false - pattern: '(0x)?[0-9a-fA-F]{64}\/(0x)?([0-9]+|[0-9a-fA-F]+|[a-fA-F]+)\/[0-9]+$' + pattern: '^0x[0-9a-fA-F]{64}\/(0x[0-9a-fA-F]{64}|\d+)\/[0-9]+$' StorageRange: type: object