-
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
Added list of errors on sign up request in the docs #116
base: main
Are you sure you want to change the base?
Conversation
@CondensedMilk7 turned it into a table, I think that commit automatically got added to this pull request too right? |
@silacs is it ready for review? |
@KostaD02 yeah, the thing I wanted (possible errors on signup) is ready. |
| `"errors.invalid_avatar"` | When avatar url is not a url | | ||
| `"errors.invalid_gender"` | When gender is not `'MALE'`, `'FEMALE'` or `'OTHER'` | | ||
| `"errors.email_in_use"` | When email is already registered | | ||
<!-- | `"errors.teapot"` | When brewing coffee is requested | --> |
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.
Whats the point? would be better without comment.
Preferably to not keep unnecessary code
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.
forgot about that lol, you can remove it before accepting the pr right? I remember I checked some toggle allowing modifications or something like that
i'm not home right now and cant change it myself
should be home by the end of the day though, if you haven't changed it by then, then i will
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.
Would be great if you update it
@@ -88,6 +88,30 @@ curl -X 'POST' \ | |||
Email verification may also be required. | |||
::: | |||
|
|||
::: info NOTE |
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.
Imo it would be better without alert
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.
what alert? you mean :::?
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.
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.
yeah I know, but I built the docs and tested it and it looked fine imo, will show you a screenshot im going home soon
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.
Could you screenshot light and dark mode?
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.
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.
actually, would this be better in errors.md? just making a section for signup (and also the others when I add them)
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.
@silacs sorry for the late response. Let's keep it without an alert; a single table looks better. It would be great if each endpoint had its own error mapping.
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.
yeah, im thinking of making it like how the shop is in the sidebar
so
errors
ⳑ Auth
ⳑ Products
ⳑ Cart
and then each category will have errors for each endpoints
what do you think?
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.
Could work but each time user has to search it, would be better if it will be with endpoint description
No description provided.