Add SetContentFromEnumCollection method to RequestInformation class#579
Merged
Conversation
Co-authored-by: gavinbarron <7122716+gavinbarron@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix compile error with enum array in generated C# client
Add SetContentFromEnumCollection method to RequestInformation class
Oct 23, 2025
gavinbarron
approved these changes
Oct 23, 2025
baywet
requested changes
Oct 24, 2025
…rator Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>
baywet
reviewed
Oct 24, 2025
baywet
previously approved these changes
Oct 24, 2025
Member
|
@adrian05-ms you'll need to give it an approval since Gavin queued the PR and I submitted the last commit. |
baywet
approved these changes
Oct 24, 2025
gavinbarron
approved these changes
Oct 24, 2025
adrian05-ms
approved these changes
Oct 24, 2025
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Added the missing
SetContentFromEnumCollectionmethod to theRequestInformationclass and refactored to use a foreach loop for finding the first non-null item. This resolves the compile error that occurred when Kiota generates C# clients for OpenAPI specs with enum array request bodies.All tests pass successfully.
Original prompt
Fixes #578
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.