Constructor
new ValidationService(requestService, configServer)
Constructs a validation service.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
requestService | RequestService | The request service. | |||||||||
configServer | object | The configuration for the server. Properties
|
Classes
Methods
(async) validate(doc)
Sends the request to validate the document.
Parameters:
Name | Type | Description |
---|---|---|
doc | Document | The document to validate. |