function validateSingle(
	mergedSchema,
	value,
	properties,
	customValidationFn,
	deepValidation,
) {
	if (mergedSchema.type === 'array') {
		return validateArray(mergedSchema, value, properties, customValidationFn, deepValidation);
	}
	return validateSimple(mergedSchema, value, properties, customValidationFn, deepValidation);
}
/**
 * Execute the right validation depending on the schema type.
 * @param mergedSchema The merged schema
 * @param value The value
 * @param properties All the values
 * @param customValidationFn A custom validation function
 * that is applied on schema.customValidation = true
 * @param deepValidation Validate subItems if true
 * @returns {Object} The validation result by field.
 */
Execute the right validation depending on the schema type.
Execute the right validation depending on the schema type .
function validateSingle(
	mergedSchema,
	value,
	properties,
	customValidationFn,
	deepValidation,
) {
	if (mergedSchema.type === 'array') {
		return validateArray(mergedSchema, value, properties, customValidationFn, deepValidation);
	}
	return validateSimple(mergedSchema, value, properties, customValidationFn, deepValidation);
}
function validateSingle ( mergedSchema , value , properties , customValidationFn , deepValidation , ) { if ( mergedSchema . type === 'array' ) { return validateArray ( mergedSchema , value , properties , customValidationFn , deepValidation ) ; } return validateSimple ( mergedSchema , value , properties , customValidationFn , deepValidation ) ; }
Execute the right validation depending on the schema type.
Execute the right validation depending on the schema type .