Amit Barletz

Results 106 comments of Amit Barletz

we can add a custom validation decorator and use it on the username property https://github.com/typestack/class-validator#custom-validation-decorators ![image](https://user-images.githubusercontent.com/39680385/170830833-e3323fb9-6a1d-45c8-ba03-ce82cc08ea07.png) (a screenshot from a generated app - User.ts)

> https://www.prisma.io/docs/reference/api-reference/error-reference#p2002 I think the last solution is preferable, but with `409 conflict` HTTP error code

I think it's related to the project configuration setting. https://user-images.githubusercontent.com/39680385/183250047-8bd37bed-5f77-4643-a6ab-41d11fe5d45d.mov

Fixed by https://github.com/amplication/amplication/pull/3409

> Hey @abrl91 I would like to work on it, can you assign it to me ? Go for it :)

> Hey @abrl91 Ig I am not able to figure out how we have to make those changes so if anyone does know about that than please go ahead @KlausMikhaelson...