Skip to content

Challenge metadata.allowStackArt returning wrong data type #319

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
luizrrodrigues opened this issue Oct 2, 2020 · 2 comments
Closed

Challenge metadata.allowStackArt returning wrong data type #319

luizrrodrigues opened this issue Oct 2, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@luizrrodrigues
Copy link
Collaborator

ref.: https://api.topcoder.com/v5/challenges/ba800bde-a26d-486d-ac87-9db1a0b7dc9a

metadata: [
  name: "allowStockArt",
  value: "false",
]

value return string type instead boolean

image

original issue: topcoder-platform/community-app#5037

@rootelement
Copy link
Contributor

No, the metadata object is not type-specific like that. Name is always a string, Value is always a string. You'll have to typecast it on your side.

@luizrrodrigues
Copy link
Collaborator Author

@rootelement okay, I'll take care of this in FE side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants