-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module 2 task 1 #2
Conversation
Добавляю преподавателя (@tadjik1) для код-ревью. |
Решение было обновлено, посмотрим что скажет @tadjik1 |
@@ -1,4 +1,4 @@ | |||
export default { | |||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
спасибо! это я не досмотрел сначала
const Joi = require("joi"); | ||
|
||
@Injectable() | ||
export class JoiValidationPipe implements PipeTransform { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ух ты, отличное использование Joi 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
блестящее решение, все критичные и необходимые моменты учтены (badrequest, валидация) 💯
спасибо я старался, а joi это в статье habr был пример - попробовал сначала его (ранее joi не использовал только yup и zod ), а затем попробовал декораторы |
No description provided.