@meta-system/object-definition
Version:
Standard Object Definition For Meta-System
14 lines • 1 kB
JavaScript
export var Errors;
(function (Errors) {
Errors["ExpectedObject"] = "ObjectDefinition provided should be an object";
Errors["WrongTypeObject"] = "Value of Object should be a TypeDefinition";
Errors["TypeNotString"] = "Property \"type\" must be a string";
Errors["UnknownType"] = "Given value is not a known Type";
Errors["RequiredNotBoolean"] = "If present, the property \"required\" must be a boolean";
Errors["SubtypeNotDefined"] = "Property \"subtype\" must be defined for deep types (array or object)";
Errors["InvalidArrayType"] = "Subtype for array not valid - must be one of the values: 'string', 'boolean', 'number', 'object', 'date', or 'function'";
Errors["SubtypeNotArray"] = "Subtype of ENUM should be an Array";
Errors["InvalidTypeOfItemInArray"] = "Subtype array contains an item with an invalid type";
Errors["ObjectTypeSubtype"] = "Expected subtype for type object should be an object";
})(Errors || (Errors = {}));
//# sourceMappingURL=errors.js.map