Skip to content
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

[Graph] Use comma array format for parameters #100

Merged
merged 3 commits into from
Mar 19, 2025

Conversation

heyitsaamir
Copy link
Contributor

@heyitsaamir heyitsaamir commented Mar 18, 2025

Currently, we don't specify the array format when the parameter is used. By default this option defaults to indices. But graph seems to want comma. This fixes that.

Additionally, I noticed that getInjectedUrl was being rewritten in ALL files. I moved it to its own file and reduced some of the generated code from all files.

I verified this fixed works with a real graph call.

Previously: https://graph.microsoft.com/v1.0/users/d4851876-1c70-4f6e-bfbc-8b2ceeccc8d3/teamwork/installedApps?%24expand%5B0%5D=teamsApp%2CteamsAppDefinition

Now: https://graph.microsoft.com/v1.0/users/d4851876-1c70-4f6e-bfbc-8b2ceeccc8d3/teamwork/installedApps?%24expand=teamsApp%2CteamsAppDefinition

Notice the expand%5B0%5D, this translates to expand[0] when url decoded. This is not what we want.

@heyitsaamir heyitsaamir requested review from aacebo and corinagum March 18, 2025 21:36
@aacebo aacebo merged commit 6dcb724 into main Mar 19, 2025
5 checks passed
@aacebo aacebo deleted the aamirj/handleCorrectArrayFormat branch March 19, 2025 14:28
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