Index

ArrayAnnotation

MMO.schemas · 1 symbol · generated 5 Oct 2026

class

ArrayAnnotation

Annotation.js:131

The annotation of an array: one child annotation per item.

class MMO.schemas.ArrayAnnotation extends MMO.schemas.Annotation
Namespace
MMO.schemas
Extends
Annotation

Index

valid readonly accessor
constructor(value, path)
toJSON()Override: the items' errors are flattened into the same list.
merge(anno, withErrors)Override: also fold each item's outcome into the matching item of this annotation.

Properties1

Methods3

toJSON()

Annotation.js:159

Override: the items' errors are flattened into the same list.

toJSON()
returnsvalid: boolean, errors: Array=}

merge(anno, withErrors)

Annotation.js:174

Override: also fold each item's outcome into the matching item of this annotation.

merge(anno, withErrors = true)
annoMMO.schemas.Annotation
withErrors = trueboolean