From df7b95f40aa6c6a9ed51becab9137c74ccdf5cc0 Mon Sep 17 00:00:00 2001 From: lightclient <14004106+lightclient@users.noreply.github.com> Date: Sat, 27 Jan 2024 11:33:31 -0700 Subject: [PATCH] schemas/filter: fixup some bugs in null filter topics and address (#518) --- src/schemas/filter.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/schemas/filter.yaml b/src/schemas/filter.yaml index a2ed1432e..e2d4b1f3f 100644 --- a/src/schemas/filter.yaml +++ b/src/schemas/filter.yaml @@ -23,6 +23,8 @@ Filter: address: title: Address(es) oneOf: + - title: Any Address + type: 'null' - title: Address $ref: '#/components/schemas/address' - title: Addresses @@ -32,14 +34,17 @@ Filter: $ref: '#/components/schemas/FilterTopics' FilterTopics: title: Filter Topics - type: array - items: - $ref: '#/components/schemas/FilterTopic' + oneOf: + - title: Any Topic Match + type: 'null' + - title: Specified Filter Topics + type: array + items: + $ref: '#/components/schemas/FilterTopic' + FilterTopic: title: Filter Topic List Entry oneOf: - - title: Any Topic Match - type: "null" - title: Single Topic Match $ref: '#/components/schemas/bytes32' - title: Multiple Topic Match