Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the schema for skip_randao_verification flag type #444

Merged
merged 7 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions apis/validator/blinded_block.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,7 @@ get:
schema:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Graffiti'
- name: skip_randao_verification
in: query
required: false
description: |
Skip verification of the `randao_reveal` value. If this flag is set then the
`randao_reveal` must be set to the point at infinity (`0xc0..00`). This query parameter
nflaig marked this conversation as resolved.
Show resolved Hide resolved
is a flag and does not take a value.
schema: {}
allowEmptyValue: true
$ref: '../../beacon-node-oapi.yaml#/components/parameters/SkipRandaoVerification'
responses:
"200":
description: Success response
Expand Down
9 changes: 1 addition & 8 deletions apis/validator/block.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ get:
schema:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Graffiti'
- name: skip_randao_verification
in: query
required: false
description: |
Skip verification of the `randao_reveal` value. If this flag is set then the
`randao_reveal` must be set to the point at infinity (`0xc0..00`). This query parameter
is a flag and does not take a value.
schema: {}
allowEmptyValue: true
$ref: '../../beacon-node-oapi.yaml#/components/parameters/SkipRandaoVerification'
responses:
"200":
description: Success response
Expand Down
9 changes: 1 addition & 8 deletions apis/validator/block.v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,7 @@ get:
schema:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Graffiti'
- name: skip_randao_verification
in: query
required: false
description: |
Skip verification of the `randao_reveal` value. If this flag is set then the
`randao_reveal` must be set to the point at infinity (`0xc0..00`). This query parameter
is a flag and does not take a value.
schema: {}
allowEmptyValue: true
$ref: '../../beacon-node-oapi.yaml#/components/parameters/SkipRandaoVerification'
- name: builder_boost_factor
in: query
required: false
Expand Down
2 changes: 2 additions & 0 deletions beacon-node-oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ components:
$ref: './params/index.yaml#/BlockId'
BlockRoot:
$ref: './params/index.yaml#/BlockRoot'
SkipRandaoVerification:
$ref: './params/index.yaml#/SkipRandaoVerification'

responses:
InvalidRequest:
Expand Down
12 changes: 12 additions & 0 deletions params/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,15 @@ BlockRoot:
description: |
Block root.
\<hex encoded blockRoot with 0x prefix\>.
SkipRandaoVerification:
nflaig marked this conversation as resolved.
Show resolved Hide resolved
name: skip_randao_verification
in: query
required: false
description: |
Skip verification of the `randao_reveal` value. If this flag is set then the
`randao_reveal` must be set to the point at infinity (`0xc0..00`).
schema:
type: string
minLength: 0
maxLength: 0
allowEmptyValue: true
Loading