Skip to content

Commit

Permalink
Add required properties to object types (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Feb 5, 2024
1 parent 5839886 commit 18c435e
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/builder/blinded_blocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ post:
schema:
title: SubmitBlindedBlockResponse
type: object
required: [version, data]
properties:
version:
type: string
Expand Down
1 change: 1 addition & 0 deletions apis/builder/header.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ get:
schema:
title: GetHeaderResponse
type: object
required: [version, data]
properties:
version:
type: string
Expand Down
3 changes: 3 additions & 0 deletions types/bellatrix/bid.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Bellatrix:
BuilderBidCommon:
type: object
required: [value, pubkey]
properties:
value:
$ref: "../../beacon-apis/types/primitive.yaml#/Uint256"
Expand All @@ -13,6 +14,7 @@ Bellatrix:
description: "The `BuilderBid` object from the Builder API Bellatrix spec."
allOf:
- type: object
required: [header]
properties:
header:
$ref: "../../beacon-apis/types/bellatrix/execution_payload.yaml#/Bellatrix/ExecutionPayloadHeader"
Expand All @@ -22,6 +24,7 @@ Bellatrix:
SignedBuilderBid:
type: object
description: "The `SignedBuilderBid` object from the Builder API spec."
required: [message, signature]
properties:
message:
$ref: "#/Bellatrix/BuilderBid"
Expand Down
2 changes: 2 additions & 0 deletions types/capella/bid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Capella:
description: "The `BuilderBid` object from the Builder API Capella spec."
allOf:
- type: object
required: [header]
properties:
header:
$ref: "../../beacon-apis/types/capella/execution_payload.yaml#/Capella/ExecutionPayloadHeader"
Expand All @@ -12,6 +13,7 @@ Capella:
SignedBuilderBid:
type: object
description: "The `SignedBuilderBid` object from the Builder API spec."
required: [message, signature]
properties:
message:
$ref: "#/Capella/BuilderBid"
Expand Down
2 changes: 2 additions & 0 deletions types/deneb/bid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Deneb:
description: "The `BuilderBid` object from the Builder API Deneb spec."
allOf:
- type: object
required: [header, blob_kzg_commitments]
properties:
header:
$ref: "../../beacon-apis/types/deneb/execution_payload.yaml#/Deneb/ExecutionPayloadHeader"
Expand All @@ -19,6 +20,7 @@ Deneb:
SignedBuilderBid:
type: object
description: "The `SignedBuilderBid` object from the Builder API spec."
required: [message, signature]
properties:
message:
$ref: "#/Deneb/BuilderBid"
Expand Down
1 change: 1 addition & 0 deletions types/deneb/blobs_bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Deneb:
BlobsBundle:
type: object
description: "The `BlobsBundle` object from the CL Deneb spec"
required: [blobs, commitments, proofs]
properties:
blobs:
type: array
Expand Down
1 change: 1 addition & 0 deletions types/deneb/execution_payload_and_blobs_bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Deneb:
ExecutionPayloadAndBlobsBundle:
type: object
description: "A wrapper object containing the ExecutionPayload and the BlobsBundle"
required: [execution_payload, blobs_bundle]
properties:
execution_payload:
$ref: '../../beacon-apis/types/deneb/execution_payload.yaml#/Deneb/ExecutionPayload'
Expand Down
1 change: 1 addition & 0 deletions types/http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ InternalError:
application/json:
schema:
type: object
required: [code, message]
properties:
code:
description: "Either specific error code in case of invalid request or http status code"
Expand Down

0 comments on commit 18c435e

Please sign in to comment.