Skip to content

Allows serialization of null valued properties. #3126

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

Merged
merged 12 commits into from
Feb 15, 2025

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