string
- Explore
- View source
- Playground
Loading ....
- YAML
- JSON
ethdebug/format/type/elementary/string
$schema: "https://json-schema.org/draft/2020-12/schema"
$id: "schema:ethdebug/format/type/elementary/string"
title: ethdebug/format/type/elementary/string
description: |
Schema describing the representation of a string type.
Standard interpretation: decode the bytes of the value with `encoding`.
If the bytes are not a valid sequence in that encoding, the value is
invalid.
type: object
properties:
label:
$ref: "schema:ethdebug/format/type/base#/$defs/Label"
class:
const: elementary
kind:
const: string
encoding:
description: |
The character encoding of the string's bytes at runtime.
$ref: "schema:ethdebug/format/materials/encoding"
default: utf-8
required:
- kind
examples:
- kind: string
- kind: string
encoding: utf-16le
- kind: string
label: string
ethdebug/format/type/elementary/string
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schema:ethdebug/format/type/elementary/string",
"title": "ethdebug/format/type/elementary/string",
"description": "Schema describing the representation of a string type.\n\nStandard interpretation: decode the bytes of the value with `encoding`.\nIf the bytes are not a valid sequence in that encoding, the value is\ninvalid.\n",
"type": "object",
"properties": {
"label": {
"$ref": "schema:ethdebug/format/type/base#/$defs/Label"
},
"class": {
"const": "elementary"
},
"kind": {
"const": "string"
},
"encoding": {
"description": "The character encoding of the string's bytes at runtime.\n",
"$ref": "schema:ethdebug/format/materials/encoding",
"default": "utf-8"
}
},
"required": [
"kind"
],
"examples": [
{
"kind": "string"
},
{
"kind": "string",
"encoding": "utf-16le"
},
{
"kind": "string",
"label": "string"
}
]
}
Loading playground...