Skip to content

Commit

Permalink
fix: correctly merge enums (#410)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Harris <paul.harris@consensys.net>
  • Loading branch information
jeluard and rolfyone authored Jan 15, 2024
1 parent 1449e7d commit d4f5ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/beacon/states/validators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d4f5ecf

Please sign in to comment.