Skip to content

Fix attributesToRetrieve parameter parsing for JSON strings #64

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
wants to merge 1 commit into from

Conversation

adityashirsatrao007
Copy link

  • Handle array parameters passed as JSON strings in both query parameters and request body
  • Add comprehensive parsing for parameters object containing multiple query params
  • Support parsing of JSON string arrays like array format
  • Convert parsed arrays to comma-separated strings for Algolia API compatibility
  • Add test case to verify attributesToRetrieve parameter handling
  • Maintain backward compatibility with existing parameter formats

Fixes #55

🤔 What

Describe what is being changed/added/reworked (you can use lists).

🤷 Why

Give context around why we're making the change.

🔍 How

Describe how we're implementing the change.

🧪 Testing

Additional instructions needed to test the changes.

📸 Previews

Add screenshots to get a taste of the changes.

- Handle array parameters passed as JSON strings in both query parameters and request body
- Add comprehensive parsing for parameters object containing multiple query params
- Support parsing of JSON string arrays like array format
- Convert parsed arrays to comma-separated strings for Algolia API compatibility
- Add test case to verify attributesToRetrieve parameter handling
- Maintain backward compatibility with existing parameter formats

Fixes #55
@adityashirsatrao007 adityashirsatrao007 closed this by deleting the head repository Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

attributesToRetrieve parameter ignored when passed as escaped JSON string
1 participant