Skip to content

Commit

Permalink
fix one of array item schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed May 27, 2024
1 parent 4ea9f41 commit fb718b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions apis/beacon/pool/attestations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ get:
required: [data]
properties:
data:
type: array
items:
oneOf:
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Attestation'
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.Attestation'
oneOf:
- type: array
items:
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Attestation'
- type: array
items:
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.Attestation'
"400":
description: "The slot or committee index could not be parsed"
content:
Expand Down
12 changes: 7 additions & 5 deletions apis/beacon/pool/attester_slashings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ get:
required: [data]
properties:
data:
type: array
items:
oneOf:
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/AttesterSlashing'
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.AttesterSlashing'
oneOf:
- type: array
items:
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/AttesterSlashing'
- type: array
items:
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.AttesterSlashing'
"500":
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'

Expand Down

0 comments on commit fb718b6

Please sign in to comment.