Skip to content
Merged
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
11 changes: 11 additions & 0 deletions schemas/type/complex/array.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ $schema: "https://json-schema.org/draft/2020-12/schema"
$id: "schema:ethdebug/format/type/complex/array"

title: ethdebug/format/type/complex/array
description: |
Schema for representing array types, both fixed-size and dynamically
sized. An array type specifies the element type it contains and,
optionally, a fixed element count.

type: object
properties:
class:
Expand All @@ -11,6 +16,9 @@ properties:
type: string
const: array
contains:
description: |
The element type contained by this array, specified as an
**ethdebug/format/type/wrapper**.
$ref: "schema:ethdebug/format/type/wrapper"
count:
description: |
Expand All @@ -23,18 +31,21 @@ required:
- contains

examples:
# example: a dynamically-sized array of uint256
- kind: array
contains:
type:
kind: uint
bits: 256

# example: a fixed-size array of 10 addresses
- kind: array
count: 10
contains:
type:
kind: address

# example: a nested array with an unknown element type
- kind: array
contains:
type:
Expand Down
Loading