Skip to content

Commit

Permalink
Merge pull request #88 from raxhvl/main
Browse files Browse the repository at this point in the history
✨ feat(Pointer Schema): Better validation errors for pointer schema.
  • Loading branch information
gnidan authored Apr 21, 2024
2 parents 0568ebc + 2227691 commit 86677b9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions schemas/pointer.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ description: |
type: object

oneOf:
- $ref: "schema:ethdebug/format/pointer/region"
- $ref: "schema:ethdebug/format/pointer/collection"
if:
required: [location]
then:
$ref: "schema:ethdebug/format/pointer/region"
else:
$ref: "schema:ethdebug/format/pointer/collection"

examples:
- # example: a single particular storage slot
Expand Down

0 comments on commit 86677b9

Please sign in to comment.