schema package
Classes
Class | Description |
---|---|
ArraySchemaType | Array model type validation |
BaseSchemaType | Base type model validation |
BooleanSchemaType | Boolean type validation |
DateSchemaType | Date model type validation |
ErrorModel | |
NumberSchemaType | Number model type validation |
ObjectSchemaType | Object model type validation |
StringSchemaType | String model type validation |
Enumerations
Enumeration | Description |
---|---|
schemaType |
Functions
Function | Description |
---|---|
ArrayType(items, errorMessage) | Creates instance ObjectType |
BaseType(st) | Creates instance MixedType |
BooleanType(errorMessage) | Creates instance BooleanType |
DateType(errorMessage) | Creates instance DateType |
NumberType(errorMessage) | Creates instance NumberType |
ObjectType(shape, errorMessage) | Creates instance ObjectType |
StringType(errorMessage) | Creates instance StringType |
Interfaces
Interface | Description |
---|---|
CheckResult | Result from schema validation check. |
Model | Model Interface Can implement a toJSON method to use with JSON.stringify |
Rule | Rule signature for validation |
Variables
Variable | Description |
---|---|
errorMessages |
Type Aliases
Type Alias | Description |
---|---|
InferSchemaType | Infer which schema type is base on the native type |
Maybe | One of the values |
Properties | Properties of ObjectSchemaType |
validationFnType | Validation funciton type |