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

Use IEnumerable for list parameters in client methods #4787

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JoshLove-msft
Copy link
Contributor

@JoshLove-msft JoshLove-msft commented Oct 17, 2024

Fixes #4786

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Oct 17, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Oct 17, 2024

API change check

API changes are not detected in this pull request.

@ArcturusZhang
Copy link
Member

ArcturusZhang commented Oct 18, 2024

do we have something to configure so that we could change this back in azure libraries?
and would this lead to an extra ToList?

@JoshLove-msft
Copy link
Contributor Author

do we have something to configure so that we could change this back in azure libraries? and would this lead to an extra ToList?

Yeah this leads to an extra ToList so I am thinking we need to keep the IList for the serialization ctor.

@JoshLove-msft JoshLove-msft changed the title Use IEnumerable for list parameters Use IEnumerable for list parameters in client methods Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAI - Array parameters should be generated as IEnumerable rather than IList
4 participants