Home > @websublime/schema > ObjectSchemaType
ObjectSchemaType class
Object model type validation
Signature:
export declare class ObjectSchemaType<T> extends BaseSchemaType<T>
Extends: BaseSchemaType<T>
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(properties, errorMessage) | Create ObjectSchemaType instance. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
properties | Properties<Omit<T, 'toJSON'>> | Properties model types. | |
type | string |
Methods
Method | Modifiers | Description |
---|---|---|
check(value, parent, context, drill) | Check if object is valid. | |
isEmpty(value) | Validate if an object is empty | |
shape(properties) | Shape a child object |