From d4f5ecfc31d89b6f173e1fc9e75948fdc25e93c6 Mon Sep 17 00:00:00 2001 From: Julien Date: Sun, 14 Jan 2024 16:26:44 -0800 Subject: [PATCH] fix: correctly merge enums (#410) Co-authored-by: Paul Harris --- apis/beacon/states/validators.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/beacon/states/validators.yaml b/apis/beacon/states/validators.yaml index bdcb9014..904d2e86 100644 --- a/apis/beacon/states/validators.yaml +++ b/apis/beacon/states/validators.yaml @@ -33,7 +33,7 @@ get: type: array uniqueItems: true items: - allOf: + oneOf: - $ref: '../../../beacon-node-oapi.yaml#/components/schemas/ValidatorStatus' - enum: ["active", "pending", "exited", "withdrawal"] @@ -122,7 +122,7 @@ post: type: array uniqueItems: true items: - allOf: + oneOf: - $ref: '../../../beacon-node-oapi.yaml#/components/schemas/ValidatorStatus' - enum: ["active", "pending", "exited", "withdrawal"] responses: