Skip to content

Commit

Permalink
Replaced oneOf with anyOf as it breaks the schema validation due to d…
Browse files Browse the repository at this point in the history
…upes (both block and tx hashes are hash32) (#504)

* forcing oneOf breaks the schema validation due to dups

* code review agreed changes
  • Loading branch information
lorenzourb authored Dec 22, 2023
1 parent a0d0308 commit cea7eeb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/schemas/filter.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
FilterResults:
title: Filter results
oneOf:
- title: new block hashes
type: array
items:
$ref: '#/components/schemas/hash32'
- title: new transaction hashes
- title: new block or transaction hashes
type: array
items:
$ref: '#/components/schemas/hash32'
Expand Down

0 comments on commit cea7eeb

Please sign in to comment.