Skip to content

Commit fb718b6

Browse files
committed
fix one of array item schemas
1 parent 4ea9f41 commit fb718b6

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

apis/beacon/pool/attestations.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ get:
2929
required: [data]
3030
properties:
3131
data:
32-
type: array
33-
items:
34-
oneOf:
35-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Attestation'
36-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.Attestation'
32+
oneOf:
33+
- type: array
34+
items:
35+
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Attestation'
36+
- type: array
37+
items:
38+
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.Attestation'
3739
"400":
3840
description: "The slot or committee index could not be parsed"
3941
content:

apis/beacon/pool/attester_slashings.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ get:
1818
required: [data]
1919
properties:
2020
data:
21-
type: array
22-
items:
23-
oneOf:
24-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/AttesterSlashing'
25-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.AttesterSlashing'
21+
oneOf:
22+
- type: array
23+
items:
24+
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/AttesterSlashing'
25+
- type: array
26+
items:
27+
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.AttesterSlashing'
2628
"500":
2729
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'
2830

0 commit comments

Comments
 (0)