jamesmawm / golang-user-microservice

Create a micro service for handling user accounts.
MIT License
7 stars 6 forks source link

Add inputs validation #20

Closed jamesmawm closed 4 years ago

jamesmawm commented 4 years ago

Currently duplicate usernames are allowed to be stored in DB when the OnSignup() method in api.go is called. Kindly assist to validate that a username is in use, and throw an error if so. Update the response in swagger.yml too as you go along.

minaorangina commented 4 years ago

May I take this one?

jamesmawm commented 4 years ago

Sure!

jamesmawm commented 4 years ago

Thanks!