Amit Barletz
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  (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/3416
Fixed by https://github.com/amplication/amplication/pull/3409
> Can I work on this? Good luck 😃
> 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...
@KlausMikhaelson for sure 😃
Fixed by https://github.com/amplication/amplication/pull/3554