From fb718b65d39b62ffd4ee6c95d1d6fb1458c08958 Mon Sep 17 00:00:00 2001 From: Mehdi AOUADI Date: Mon, 27 May 2024 12:36:01 +0200 Subject: [PATCH] fix one of array item schemas --- apis/beacon/pool/attestations.yaml | 12 +++++++----- apis/beacon/pool/attester_slashings.yaml | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/apis/beacon/pool/attestations.yaml b/apis/beacon/pool/attestations.yaml index 83a37fdf..395dc6ed 100644 --- a/apis/beacon/pool/attestations.yaml +++ b/apis/beacon/pool/attestations.yaml @@ -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: diff --git a/apis/beacon/pool/attester_slashings.yaml b/apis/beacon/pool/attester_slashings.yaml index 545d7265..9ccb69ae 100644 --- a/apis/beacon/pool/attester_slashings.yaml +++ b/apis/beacon/pool/attester_slashings.yaml @@ -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'