-
Notifications
You must be signed in to change notification settings - Fork 6
Update backend routes for events #1018
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
Conversation
896e5a9 to
e6bf72a
Compare
| const colourValid = this.isColourCodeValid(eventDetails.colour); | ||
| validate(colourValid, 'Colour code is not valid', HttpStatus.BAD_REQUEST); | ||
|
|
||
| if (!(eventDetails.type in EventType)) { |
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.
Curious if this is actually possible. Might be worth testing to see what happens when you pass an invalid type... Ask @jason4193 about using Postman later.
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.
@lhvy Tested on the Postman, only default-<1 to 8>, #<3 letters 0-9/A-F> & #<6 letters 0-9/A-F> will pass the validation.
Something like #default, default-9, #xxx will fail
jason4193
left a comment
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.
similar to @lhvy 's comments, happy to test on those routes using postman
75fe2be to
3cfa62f
Compare
258dcf4 to
f353af6
Compare
Description 🧾
Context of PR, summary of changes, as well as any relevant technical decisions/motivations.
Testing
Replace this line with instructions on how to test your changes, as well as any relevant images for UI changes.
Checklist
feature: for application feature improvement or new featuresbug: fixing something that previously wasn't workingdev: development-side related changesdocker: updates to the Docker codesetup: changes to the setup/infrastructure of the codebasetest: updates to internal testing