bytes
- Explore
- View source
- Playground
Loading ....
- YAML
- JSON
ethdebug/format/type/elementary/bytes
$schema: "https://json-schema.org/draft/2020-12/schema"
$id: "schema:ethdebug/format/type/elementary/bytes"
title: ethdebug/format/type/elementary/bytes
description:
Schema describing the representation of a type of bytes string
(either dynamic or static)
type: object
properties:
class:
const: elementary
kind:
const: bytes
size:
description:
The number of bytes in the bytes string. If this field is omitted, this
type is the dynamic bytes string type.
$ref: "schema:ethdebug/format/data/unsigned"
required:
- kind
examples:
- # example static bytes type
kind: bytes
size: 32
- # example dynamic bytes type
kind: bytes
ethdebug/format/type/elementary/bytes
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schema:ethdebug/format/type/elementary/bytes",
"title": "ethdebug/format/type/elementary/bytes",
"description": "Schema describing the representation of a type of bytes string (either dynamic or static)",
"type": "object",
"properties": {
"class": {
"const": "elementary"
},
"kind": {
"const": "bytes"
},
"size": {
"description": "The number of bytes in the bytes string. If this field is omitted, this type is the dynamic bytes string type.",
"$ref": "schema:ethdebug/format/data/unsigned"
}
},
"required": [
"kind"
],
"examples": [
{
"kind": "bytes",
"size": 32
},
{
"kind": "bytes"
}
]
}
Loading...