aSchema
MMO.schemas · 1 symbol · generated 5 Oct 2026
aSchema
schemas.js:245Base class for all schemas
- 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:254Validate a value and report the outcome.
| value | * | |
| schemaPath = '' | string | the location of this schema, for the error messages |
| verbose = true | boolean | collect every error; when false, stop at the first one (much cheaper when all you need is the boolean) |
| returns | MMO.schemas.Annotation |
test(anno, schemaPath, verbose)
schemas.js:268Run the validation against an existing annotation. Subclasses override this and call super first, so the value is always marked as evaluated.
| anno | MMO.schemas.Annotation | |
| schemaPath = '' | string | |
| verbose = true | boolean | |
| returns | boolean |