ValidationService

This class is responsible for the validation requests.

Constructor

new ValidationService(requestService, configServer)

Constructs a validation service.

Parameters:
NameTypeDescription
requestServiceRequestService

The request service.

configServerobject

The configuration for the server.

Properties
NameTypeDescription
urlstring

The base URL of the server.

validatestring

The route to validating documents.

Classes

ValidationService

Methods

(async) validate(doc)

Sends the request to validate the document.

Parameters:
NameTypeDescription
docDocument

The document to validate.