This module will turn an array of tokens into an object.
opts
validate
Add checks to the array of checks to be executed
checks
Reads the stream data and split it into lines.
data
enc
cb
Extracts the type value and the severity of a given check name from the checkProperty
checkProperty
The checkProperty as defined in the schemafieldName
The name of the field in the checkPropertyReturns any infoObject An object containing the boolean value and the severity
Creates the field splitter for a field, if this field is a multi field
fieldDefinition
The field_definition schemafieldName
The name of the current fieldCreate the field spliter for a given field definition The field must be a multiField.
multiFieldDefinitionPart
The multiField part of aa field definition for one field.fieldName
The name of the current multiFieldCreates the checks for checking boolean values
fieldDefinition
The field_definition for this field.fieldName
The name of the current fieldCreate a function which checks that the value in a field is a valid boolean value. If the value is boolean value, the boolean equivalent will be stored in the content hash. Otherwise, the default value for this field will be stored in the content hash instead.
fieldDefinition
The field_definition for this field.fieldName
The name of the current fieldChecks a given string value. Checks the length and if it matches a given regular expression
fieldDefinition
The field_definition for this field.fieldName
The name of the current fieldnumberType
The type of the field (number, integer, float)Returns any checks A list of checks to be perfomred
Some of the values may be directly the value or could be an object with different addidtional properties. So to get the expected value it must be checked if the property is an object or not. If it is an object the real value is stored in the object under the property 'val'. See the json fieldDefinition.
fieldDefinition
The field_definitionfieldTypePropertyName
The name of the property. This property is under the fieldTypepropertyName
The name of the property. This property is a sibling of fieldTypeOnly one of the property names should be givenReturns the severity for a check property. The severity may be defined globaly for the complete field, but also may be defined on a per check basis
fieldDefinition
The field_definitionfieldTypePropertyName
The name of the property. This property is under the fieldTypepropertyName
The name of the property. This property is a sibling of fieldTypeOnly one of the property names should be givenReturns the severity for a check property. The severity may be defined globaly for the complete field, but also may be defined on a per check basis
fieldDefinition
The field_definitionCreates the checks which are common to each file type
fieldDefinition
The field_definition for this field.fieldName
The name of the current fieldJust check if for mandatory fields the value is given
content
the content hash to be validated.Creates the date checks for a date field
fieldDefinition
The field_definition schemafieldName
The name of the current fieldCreate a function which checks that the value in a field is a valid boolean value. If the value is boolean value, the boolean equivalent will be stored in the content hash. Otherwise, the default value for this field will be stored in the content hash instead.
fieldDefinition
fieldName
meta
The meta data hashcheckProperty
The properties defines which checks to be created. See the schema for more infofieldname
The name of the field which needs to be checkedReturns any function A function which will check a given content hash.
Checks that the given value is a valid date
content
the content hash to be validated.Returns any error an error object if the given value is not a valid date***
Checks that the given value is not before the given min date
content
the content hash to be validated.Returns any error an error object if the given value is not a valid date
Checks that the given value is not before the given min date
content
the content hash to be validated.Returns any error an error object if the given value is not a valid date
Checks that the given value is a valid number in the right type (number, integer, float)
content
the content hash to be validated.Returns any error an error object if the given value is not a valid number***
Checks that the given value is not before the given min value
content
the content hash to be validated.Returns any error an error object if the given value is not a valid date
Checks that the given value is not before the given min date
content
the content hash to be validated.Returns any error an error object if the given value is not a valid date
Changes the case of a string to the given value (upper, lower)
Checks that the given string has a minimum length
content
the content hash to be validated.Returns any error an error object if the given value is too short
Checks that the given string does not exeed the maximum length
content
the content hash to be validated.Returns any error an error object if the given value is too long
Checks that the given string has a minimum length
content
the content hash to be validated.Returns any error an error object if the given value is not a valid date
Creates the field splitter for a field, if this field is a multi field
fieldDefinition
The field_definition for this field.fieldName
The name of the current fieldParses a string and try to convert it in a valid number. If the string does not match a valid number it will return the error message, else the parsed number.
numberString
The string to be checkedtype
The expected type ["float", "integer", "number"]decimalSeparator
The used decimal separator.Creates the field splitter for a field, if this field is a multi field
fieldDefinition
The field_definition for this field.fieldName
The name of the current fieldChecks if a given string looks like a valid email.
fieldDefinition
The field_definition for this field.fieldName
The name of the current fieldReturns any The check
Set the default value if no value is there
fieldDefinition
The field_definition for this field.fieldName
The name of the current fieldReturns any checks A list of checks to be perfomred
Checks a given string value. Checks the length and if it matches a given regular expression
fieldDefinition
The field_definition for this field.fieldName
The name of the current fieldReturns any checks A list of checks to be perfomred
Extends Interceptor
This interceptor cares about the handling of the messages. It will add the hops and copies the messages
config
endpoint