Skip to content

Commit 18c435e

Browse files
authored
Add required properties to object types (#98)
1 parent 5839886 commit 18c435e

File tree

8 files changed

+12
-0
lines changed

8 files changed

+12
-0
lines changed

apis/builder/blinded_blocks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ post:
4646
schema:
4747
title: SubmitBlindedBlockResponse
4848
type: object
49+
required: [version, data]
4950
properties:
5051
version:
5152
type: string

apis/builder/header.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ get:
4040
schema:
4141
title: GetHeaderResponse
4242
type: object
43+
required: [version, data]
4344
properties:
4445
version:
4546
type: string

types/bellatrix/bid.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Bellatrix:
22
BuilderBidCommon:
33
type: object
4+
required: [value, pubkey]
45
properties:
56
value:
67
$ref: "../../beacon-apis/types/primitive.yaml#/Uint256"
@@ -13,6 +14,7 @@ Bellatrix:
1314
description: "The `BuilderBid` object from the Builder API Bellatrix spec."
1415
allOf:
1516
- type: object
17+
required: [header]
1618
properties:
1719
header:
1820
$ref: "../../beacon-apis/types/bellatrix/execution_payload.yaml#/Bellatrix/ExecutionPayloadHeader"
@@ -22,6 +24,7 @@ Bellatrix:
2224
SignedBuilderBid:
2325
type: object
2426
description: "The `SignedBuilderBid` object from the Builder API spec."
27+
required: [message, signature]
2528
properties:
2629
message:
2730
$ref: "#/Bellatrix/BuilderBid"

types/capella/bid.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Capella:
33
description: "The `BuilderBid` object from the Builder API Capella spec."
44
allOf:
55
- type: object
6+
required: [header]
67
properties:
78
header:
89
$ref: "../../beacon-apis/types/capella/execution_payload.yaml#/Capella/ExecutionPayloadHeader"
@@ -12,6 +13,7 @@ Capella:
1213
SignedBuilderBid:
1314
type: object
1415
description: "The `SignedBuilderBid` object from the Builder API spec."
16+
required: [message, signature]
1517
properties:
1618
message:
1719
$ref: "#/Capella/BuilderBid"

types/deneb/bid.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Deneb:
33
description: "The `BuilderBid` object from the Builder API Deneb spec."
44
allOf:
55
- type: object
6+
required: [header, blob_kzg_commitments]
67
properties:
78
header:
89
$ref: "../../beacon-apis/types/deneb/execution_payload.yaml#/Deneb/ExecutionPayloadHeader"
@@ -19,6 +20,7 @@ Deneb:
1920
SignedBuilderBid:
2021
type: object
2122
description: "The `SignedBuilderBid` object from the Builder API spec."
23+
required: [message, signature]
2224
properties:
2325
message:
2426
$ref: "#/Deneb/BuilderBid"

types/deneb/blobs_bundle.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Deneb:
22
BlobsBundle:
33
type: object
44
description: "The `BlobsBundle` object from the CL Deneb spec"
5+
required: [blobs, commitments, proofs]
56
properties:
67
blobs:
78
type: array

types/deneb/execution_payload_and_blobs_bundle.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Deneb:
22
ExecutionPayloadAndBlobsBundle:
33
type: object
44
description: "A wrapper object containing the ExecutionPayload and the BlobsBundle"
5+
required: [execution_payload, blobs_bundle]
56
properties:
67
execution_payload:
78
$ref: '../../beacon-apis/types/deneb/execution_payload.yaml#/Deneb/ExecutionPayload'

types/http.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ InternalError:
44
application/json:
55
schema:
66
type: object
7+
required: [code, message]
78
properties:
89
code:
910
description: "Either specific error code in case of invalid request or http status code"

0 commit comments

Comments
 (0)