Constructors
constructor
- new SchemaManager(options?): SchemaManager
Properties
Protected
Readonly
map
Protected
Readonly
options
Readonly
type
Accessors
isAbortEarly
- get isAbortEarly(): boolean
Returns boolean
Methods
baseTypeValue
- baseTypeValue(type, isArray, input, params, format?): ISchemaCheckResult
Parameters
type: string
isArray: boolean
input: any
params: any
Optional
format: boolean
create
- create(fields, name?): SchemaType
forEach
- forEach(iter): void
Parameters
iter: ((value, key, map) => void)
- (value, key, map): void
Returns void
Returns void
get
- get(type): SchemaType
has
- has(type): boolean
Returns boolean
register
- register(name, fields): this
Returns this
value
- value(type, input): ISchemaCheckResult
获取 abortEarly 选项