Index

aSchema

MMO.schemas · 1 symbol · generated 30 Sep 2026

class

aSchema

schemas.js:245

Base class for all schemas

class MMO.schemas.aSchema
Namespace
MMO.schemas

Index

validate(value, schemaPath, verbose)Validate a value and report the outcome.
test(anno, schemaPath, verbose)Run the validation against an existing annotation.

Methods2

validate(value, schemaPath, verbose)

schemas.js:254

Validate a value and report the outcome.

validate(value, schemaPath = '', verbose = true)
value*
schemaPath = ''stringthe location of this schema, for the error messages
verbose = truebooleancollect every error; when false, stop at the first one (much cheaper when all you need is the boolean)
returnsMMO.schemas.Annotation

test(anno, schemaPath, verbose)

schemas.js:268

Run the validation against an existing annotation. Subclasses override this and call super first, so the value is always marked as evaluated.

test(anno, schemaPath = '', verbose = true)
annoMMO.schemas.Annotation
schemaPath = ''string
verbose = trueboolean
returnsboolean