Skip to content

correctly send multiple expands as a comma seperated array#158

Open
niteshsandal-merge wants to merge 1 commit intomainfrom
fix/expand-array-comma-separated
Open

correctly send multiple expands as a comma seperated array#158
niteshsandal-merge wants to merge 1 commit intomainfrom
fix/expand-array-comma-separated

Conversation

@niteshsandal-merge
Copy link
Copy Markdown
Collaborator

Summary

  • Merge's REST API expects multi-value params like expand as CSV (?expand=groups,work_location), but the v4 SDK was serializing arrays as repeated params
    (?expand=groups&expand=work_location) — only the last value is respected, causing silent data loss
  • Flatten top-level array query params to comma-separated strings in createRequestUrl before they reach the query string builder
  • Added createRequestUrl.ts to .fernignore so the fix survives Fern regeneration

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.

3 participants