Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Courses endpoint returns incorrect format for difficulties #338

Open
4 tasks
brianhogg opened this issue Aug 14, 2024 · 0 comments
Open
4 tasks

Courses endpoint returns incorrect format for difficulties #338

brianhogg opened this issue Aug 14, 2024 · 0 comments
Assignees

Comments

@brianhogg
Copy link
Contributor

Reproduction Steps

  1. Create a course with two or more difficulties
  2. Make an API call to /wp-json/llms/v1/courses

Expected Behavior

Difficulties is an array of integers as per the documentation

Actual Behavior

A string with a comma-separated list of integers is returned

Tech Notes

We may want to create a v2 of the endpoint with the fix so it won't break the code of anyone relying on the current incorrect format.

This issue has been recreated:

  • Locally
  • On a staging site
  • On a production website
  • With only LifterLMS and a default theme
@ideadude ideadude moved this to Awaiting Triage in Development Aug 14, 2024
@ideadude ideadude self-assigned this Aug 14, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: Awaiting Triage
Development

No branches or pull requests

2 participants