Skip to content

Commit 3547418

Browse files
committed
schemas: fix issue in Filter schema
This was causing speccheck to fail. The issue was that Filter had `type: object` at toplevel, but it also has `oneOf:`. Speccheck interpreted it as being an object with no allowed properties. Removing `type: object` makes it recognize the oneOf.
1 parent 961753f commit 3547418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/schemas/filter.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ FilterResults:
99
type: array
1010
items:
1111
$ref: '#/components/schemas/Log'
12+
1213
Filter:
1314
title: filter
14-
type: object
15-
additionalProperties: false
1615
oneOf:
1716
- title: Filter by block range
1817
type: object
@@ -55,6 +54,7 @@ Filter:
5554
$ref: '#/components/schemas/FilterTopics'
5655
required:
5756
- blockHash
57+
5858
FilterTopics:
5959
title: Filter Topics
6060
oneOf:

0 commit comments

Comments
 (0)