validator

Source:

Methods

(async, static) validate(xformStr, optionsopt) → {ValidateResult}

Description:
  • The validate function. Relies heavily on the XForm class.

Source:
Parameters:
Name Type Attributes Description
xformStr string

XForm content.

options ValidationOptions <optional>

Validation options.

Returns:

validation results.

Type
ValidateResult

Type Definitions

ValidateResult

Source:
Properties:
Name Type Description
warnings Array.<string>

List of warnings.

errors Array.<string>

List of errors.

version string

Package version.

ValidationOptions

Source:
Properties:
Name Type Description
debug boolean

Run validator in debug mode.

openclinica boolean

Run validator in OpenClinica mode.