id | value | notes |
---|---|---|
description (required) | string | A description of the test |
severity (required) | error, warning, skipped | The severity of the failing test. |
prerequisite fields | array | Use this parameter to generate skipped error messages when optional extracted fields are null. For example, if a missing broker’s email address doesn’t greatly affect the quality of your extraction, then write a condition to verify broker.email is properly formatted, but specify [“broker\\.email”] in this parameter to skip the verification if the email is null. For an example, see Validation 3 in the Examples section. Double escape any dots in the field keys (for example, delivery\\.zip\\.code). |
condition (required) | JsonLogic object | Tests extracted fields using Boolean, logic, numeric, array, string, and other operations. Supports all JsonLogic operations and extends them with Sensible operations. For the list of Sensible operations, and for more information about syntax, see the Custom Computation method. |
company_A
are scanned documents, check if the field came from OCR’d text. If it was OCR’d (confidence score is not null), then test that it has a high OCR confidence score for both the anchor text and the extracted value text. This validation requires that you set a high verbosity setting in the SenseML configuration.
zip_code
is a 5-digit number if the country
field equals USA, or 6 alphanumeric characters if the country
field equals Canada. Uses a Sensible operation (match
) to test regular expressions.
broker.email
is nullzip_code
is 17 digits