Skip to content

Commit 9dd4219

Browse files
nflaigrolfyone
andauthored
Show most recent fork as default example in api explorer (#501)
* Show most recent fork as default example in api explorer * Remove unrelated change fixed separately in #503 --------- Co-authored-by: Paul Harris <[email protected]>
1 parent e0c986b commit 9dd4219

19 files changed

+79
-79
lines changed

apis/beacon/blob_sidecars/blob_sidecars.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ get:
3838
properties:
3939
version:
4040
type: string
41-
enum: [phase0, altair, bellatrix, capella, deneb, electra]
42-
example: "deneb"
41+
enum: [deneb, electra]
42+
example: "electra"
4343
execution_optimistic:
4444
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
4545
finalized:
4646
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized"
4747
data:
4848
anyOf:
49-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlobSidecars"
5049
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.BlobSidecars"
50+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlobSidecars"
5151
application/octet-stream:
5252
schema:
5353
description: "SSZ serialized `BlobSidecars` bytes. Use Accept header to choose this response type"

apis/beacon/blocks/attestations.v2.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ get:
2626
version:
2727
type: string
2828
enum: [phase0, altair, bellatrix, capella, deneb, electra]
29-
example: "phase0"
29+
example: "electra"
3030
execution_optimistic:
3131
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
3232
finalized:
@@ -35,10 +35,10 @@ get:
3535
anyOf:
3636
- type: array
3737
items:
38-
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.Attestation'
38+
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.Attestation'
3939
- type: array
4040
items:
41-
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.Attestation'
41+
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.Attestation'
4242
"400":
4343
description: "The block ID supplied could not be parsed"
4444
content:

apis/beacon/blocks/blinded_block.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ get:
2727
version:
2828
type: string
2929
enum: [phase0, altair, bellatrix, capella, deneb, electra]
30-
example: "phase0"
30+
example: "electra"
3131
execution_optimistic:
3232
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
3333
finalized:
3434
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized"
3535
data:
3636
anyOf:
37-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock"
38-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
39-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
40-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
41-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
4237
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlindedBeaconBlock"
38+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
39+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
40+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
41+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
42+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock"
4343
application/octet-stream:
4444
schema:
4545
description: "SSZ serialized block bytes. Use Accept header to choose this response type"

apis/beacon/blocks/blinded_blocks.v2.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ post:
5050
application/json:
5151
schema:
5252
anyOf:
53-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock'
54-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
55-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
56-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
57-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
5853
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlindedBeaconBlock"
54+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
55+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
56+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
57+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
58+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock'
5959
application/octet-stream:
6060
schema:
6161
description: "SSZ serialized block bytes. Use content type header to indicate that SSZ data is contained in the request body."

apis/beacon/blocks/blinded_blocks.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ post:
2929
application/json:
3030
schema:
3131
anyOf:
32-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock'
33-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
34-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
35-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
36-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
3732
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlindedBeaconBlock"
33+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
34+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
35+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
36+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
37+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock'
3838
application/octet-stream:
3939
schema:
4040
description: "SSZ serialized block bytes. Use content type header to indicate that SSZ data is contained in the request body."

apis/beacon/blocks/block.v2.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ get:
2727
version:
2828
type: string
2929
enum: [phase0, altair, bellatrix, capella, deneb, electra]
30-
example: "phase0"
30+
example: "electra"
3131
execution_optimistic:
3232
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
3333
finalized:
3434
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized"
3535
data:
3636
anyOf:
37-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock"
38-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
39-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBeaconBlock"
40-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBeaconBlock"
41-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBeaconBlock"
4237
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBeaconBlock"
38+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBeaconBlock"
39+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBeaconBlock"
40+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBeaconBlock"
41+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
42+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock"
4343
application/octet-stream:
4444
schema:
4545
description: "SSZ serialized block bytes. Use Accept header to choose this response type"

apis/beacon/blocks/blocks.v2.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ post:
4949
application/json:
5050
schema:
5151
anyOf:
52-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock'
53-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
54-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBeaconBlock"
55-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBeaconBlock"
56-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlockContents"
5752
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlockContents"
53+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlockContents"
54+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBeaconBlock"
55+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBeaconBlock"
56+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
57+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock'
5858
application/octet-stream:
5959
schema:
6060
description: "SSZ serialized block bytes. Use content type header to indicate that SSZ data is contained in the request body."

apis/beacon/blocks/blocks.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ post:
2828
application/json:
2929
schema:
3030
anyOf:
31-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock'
32-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
33-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBeaconBlock"
34-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBeaconBlock"
35-
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlockContents"
3631
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlockContents"
32+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlockContents"
33+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBeaconBlock"
34+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBeaconBlock"
35+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.SignedBeaconBlock"
36+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Phase0.SignedBeaconBlock'
3737
application/octet-stream:
3838
schema:
3939
description: "SSZ serialized block bytes. Use content type header to indicate that SSZ data is contained in the request body."

apis/beacon/light_client/bootstrap.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ get:
3030
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
3131
data:
3232
anyOf:
33-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Altair.LightClientBootstrap'
34-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Capella.LightClientBootstrap'
35-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Deneb.LightClientBootstrap'
3633
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.LightClientBootstrap'
34+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Deneb.LightClientBootstrap'
35+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Capella.LightClientBootstrap'
36+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Altair.LightClientBootstrap'
3737
application/octet-stream:
3838
schema:
3939
description: "SSZ serialized `LightClientBootstrap` bytes. Use Accept header to choose this response type"

apis/beacon/light_client/finality_update.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ get:
2525
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
2626
data:
2727
anyOf:
28-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Altair.LightClientFinalityUpdate'
29-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Capella.LightClientFinalityUpdate'
30-
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Deneb.LightClientFinalityUpdate'
3128
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.LightClientFinalityUpdate'
29+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Deneb.LightClientFinalityUpdate'
30+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Capella.LightClientFinalityUpdate'
31+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Altair.LightClientFinalityUpdate'
3232
application/octet-stream:
3333
schema:
3434
description: "SSZ serialized `LightClientFinalityUpdate` bytes. Use Accept header to choose this response type"

0 commit comments

Comments
 (0)