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

[Nullable Context] Standardize optional arrays in schema #6948

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

schmittjoseph
Copy link
Member

@schmittjoseph schmittjoseph commented Jul 3, 2024

Summary

Now that we have nullable contexts enabled for our schema, we can fix an issue where we were reporting optional lists could be set as a null.

This PR standardizes all of our optional Lists to default to an empty collection and not be nullable and also have setters (we rely on these setters quite a bit in our tests).

Partial fix for #6929
Additional ref: https://github.com/dotnet/dotnet-monitor/pull/6932/files#r1663237955

Release Notes Entry

@schmittjoseph schmittjoseph marked this pull request as ready for review July 3, 2024 17:17
@schmittjoseph schmittjoseph requested a review from a team as a code owner July 3, 2024 17:17
@schmittjoseph schmittjoseph enabled auto-merge (squash) July 3, 2024 17:26
@schmittjoseph schmittjoseph merged commit 94b2b90 into dotnet:main Jul 3, 2024
26 checks passed
@schmittjoseph schmittjoseph deleted the nullability/fix-schema branch July 3, 2024 18:12
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.

2 participants