mapping
- Explore
- View source
- Playground
Loading ....
- YAML
- JSON
ethdebug/format/type/complex/mapping
$schema: "https://json-schema.org/draft/2020-12/schema"
$id: "schema:ethdebug/format/type/complex/mapping"
title: ethdebug/format/type/complex/mapping
description:
Schema for representing mapping types
type: object
properties:
class:
type: string
const: complex
kind:
type: string
const: mapping
contains:
type: object
title: Mapping key/value types
properties:
key:
$ref: "schema:ethdebug/format/type/wrapper"
value:
$ref: "schema:ethdebug/format/type/wrapper"
required:
- key
- value
required:
- kind
- contains
examples:
- kind: mapping
contains:
key:
type:
kind: address
value:
type:
kind: uint
bits: 256
ethdebug/format/type/complex/mapping
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schema:ethdebug/format/type/complex/mapping",
"title": "ethdebug/format/type/complex/mapping",
"description": "Schema for representing mapping types",
"type": "object",
"properties": {
"class": {
"type": "string",
"const": "complex"
},
"kind": {
"type": "string",
"const": "mapping"
},
"contains": {
"type": "object",
"title": "Mapping key/value types",
"properties": {
"key": {
"$ref": "schema:ethdebug/format/type/wrapper"
},
"value": {
"$ref": "schema:ethdebug/format/type/wrapper"
}
},
"required": [
"key",
"value"
]
}
},
"required": [
"kind",
"contains"
],
"examples": [
{
"kind": "mapping",
"contains": {
"key": {
"type": {
"kind": "address"
}
},
"value": {
"type": {
"kind": "uint",
"bits": 256
}
}
}
}
]
}
Loading...