Skip to content

Commit

Permalink
Replace oneOf with anyOf in openapi schemas (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Oct 10, 2024
1 parent 2ee2480 commit 91e2916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apis/builder/blinded_blocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ post:
content:
application/json:
schema:
oneOf:
anyOf:
- $ref: "../../builder-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
- $ref: "../../builder-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
- $ref: "../../builder-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
Expand All @@ -53,7 +53,7 @@ post:
enum: [ bellatrix, capella, deneb ]
example: "bellatrix"
data:
oneOf:
anyOf:
- $ref: "../../builder-oapi.yaml#/components/schemas/Bellatrix.ExecutionPayload"
- $ref: "../../builder-oapi.yaml#/components/schemas/Capella.ExecutionPayload"
- $ref: "../../builder-oapi.yaml#/components/schemas/Deneb.ExecutionPayloadAndBlobsBundle"
Expand Down
2 changes: 1 addition & 1 deletion apis/builder/header.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ get:
enum: [ bellatrix, capella, deneb ]
example: "bellatrix"
data:
oneOf:
anyOf:
- $ref: "../../builder-oapi.yaml#/components/schemas/Bellatrix.SignedBuilderBid"
- $ref: "../../builder-oapi.yaml#/components/schemas/Capella.SignedBuilderBid"
- $ref: "../../builder-oapi.yaml#/components/schemas/Deneb.SignedBuilderBid"
Expand Down

0 comments on commit 91e2916

Please sign in to comment.