diego3g / umbriel

✉️ Umbriel is a simple mailing platform built with Node.js, TypeScript & Prisma.
MIT License
519 stars 73 forks source link

Implements Accounts Controllers Validators #125

Open gabriellopes00 opened 3 years ago

gabriellopes00 commented 3 years ago

I've completely removed RequiredFieldsValidator, CompareFieldsValidator and ValidatorCompositor as proposed on issue #72, and implemented the validators by controller using yup library, as suggested.

I had some issues because package.json and yarn.lock files conflicted due the long time of the fork, some libraries have updated... but is already solved.

The error messages adapter is already created, but it's under development and isn't been applied yet, but the validators themselves are working very well.

If approved, I'll keep implementing the others validators following the same pattern.

gabriellopes00 commented 3 years ago

I've updated package.json and yarn.lock files, cause u updated some dependencies...