Validators
Creating Validator
Use the CLI for create a new validator:
recife validator User
or
npx recife-cli validator User
The validator will be created in the src/validators
directory with the name UserValidator.ts
. And it will have the following content:
class UserValidator {
constructor() {
//
}
}
export default UserValidator;