You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of Server Side Validation, using **Fluent Validation **as a validation framework with code example for creating the Validator.
Summary.
PDF-API uses FluentValidation as a validation framework. For details, please see https://fluentvalidation.net/.
The FluentValidation Validators are part of the BaseTemplate model - a relevant validator must be injected into the Base class during construction.
Creating the Validator.
The Validator is applied to a specific DTO. Therefore your DTO must be defined before creating the validator. An example of a validator is shown below: