Skip to content

Conversation

timayabi2020
Copy link
Contributor

@timayabi2020 timayabi2020 commented Feb 13, 2025

Fixes #2609 and #3008

Changes proposed in this pull request

  • Adds autorest directive to ensure that null valued properties are not omitted by default.
  • Adds a custom JsonExtensions class containing an extension method that ensures properties explicitly defined as null in a PowerShell session are retained
  • Adds test project to test the above custom class.

This PR has a dependency on the autorest update done here which is part of addressing the issue here microsoftgraph/autorest.powershell#9

image image

@timayabi2020 timayabi2020 marked this pull request as ready for review February 14, 2025 05:49
@timayabi2020 timayabi2020 requested a review from a team as a code owner February 14, 2025 05:49
Ndiritu
Ndiritu previously approved these changes Feb 14, 2025
@timayabi2020 timayabi2020 merged commit e3fe823 into dev Feb 15, 2025
6 checks passed
@timayabi2020 timayabi2020 deleted the enable-null-valued-properties branch February 15, 2025 17:17
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.

Update-MGUser -agegroup doesn't allow null value despite documentation

2 participants