Global

Methods

applyModifiers(value, meta, context) → {*}

Apply post modifiers one-by-one

Properties:
Properties
Name Type Description
meta.post Array

The list of post modifiers

meta.type string

The type name

context.system Object

The type system

Name Type Description
types Object

All types meta in the type system

handlers Object

The modifier handlers for the type system

context.i18n Object

The i18n object

Properties
Name Type Description
t function

The i18n translate function

context.path string

The current field path

context.rawValue *

The raw value

Source:
Parameters:
Name Type Description
value *
meta Object

The current type meta

context Object
Returns:
Type:
*

makeValidator(validateFunc, message, checkNull) → {array}

Wrap the validate function into a validator.

Source:
Parameters:
Name Type Description
validateFunc function

Validate function to return true or false

message string

Error message

checkNull bool

Whether to continue vaildation if given value is null

Returns:
Type:
array

<bool, string>