Skip to content

[$10] Challenge Search Api, events param validation error. #346

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

Closed
nursoltan-s opened this issue Dec 2, 2020 · 7 comments
Closed

[$10] Challenge Search Api, events param validation error. #346

nursoltan-s opened this issue Dec 2, 2020 · 7 comments

Comments

@nursoltan-s
Copy link
Collaborator

Steps to Reproduce:

  1. Run curl https://api.topcoder-dev.com/v5/challenges/\?events\[\]\=tco20
  2. See error: "{"message":""0" must be a number"}"

Expected:

  • Api should return challenges related "TCO20" events.

Problem:

https://github.com/topcoder-platform/challenge-api/blob/develop/src/services/ChallengeService.js#L675

  • events validation should be Joi.array().items(Joi.string()) instead of number.
@rootelement rootelement self-assigned this Dec 2, 2020
@rootelement
Copy link
Contributor

Just pushed a fix to dev. Thanks for bringing the issue to our attention.
cc7d1df

It's deploying now.

@rootelement rootelement changed the title Challenge Search Api, events param validation error. [$10] Challenge Search Api, events param validation error. Dec 2, 2020
@rootelement
Copy link
Contributor

Contest https://www.topcoder.com/challenges/30155543 has been created for this ticket.

This is an automated message for jcori via Topcoder X

@rootelement rootelement removed their assignment Dec 2, 2020
@rootelement
Copy link
Contributor

Topcoder-X only supports a single assignee on a ticket to avoid issues with payment

This is an automated message for jcori via Topcoder X

@rootelement
Copy link
Contributor

Contest https://www.topcoder.com/challenges/30155543 has been updated - it has been assigned to nursoltan-s.

This is an automated message for jcori via Topcoder X

@rootelement
Copy link
Contributor

Not sure why this won't allow me to assign you... I'm trying to pay it out...

@rootelement
Copy link
Contributor

Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30155543

This is an automated message for jcori via Topcoder X

@rootelement
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants