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

Fix to #32939 - Accidentally using field instead of property for JSON metadata produce hard to understand exception #32966

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Jan 31, 2024

When processing shaper for JSON streaming we didn't protect against the case where there are no properties on JSON entity that should be populated as part of the loop. Fix check the count of properties we found before we start generating Switch-Case statement for PropertyName.

Fixes #32939

@maumar maumar requested a review from roji January 31, 2024 01:29
… metadata produce hard to understand exception

When processing shaper for JSON streaming we didn't protect against the case where there are no properties on JSON entity that should be populated as part of the loop.
Fix check the count of properties we found before we start generating Switch-Case statement for PropertyName.

Fixes #32939
@maumar maumar merged commit c3cc556 into main Feb 2, 2024
7 checks passed
@maumar maumar deleted the fix32939 branch February 2, 2024 22:49
roji pushed a commit to roji/efcore that referenced this pull request Feb 9, 2024
…r JSON metadata produce hard to understand exception (dotnet#32966)

When processing shaper for JSON streaming we didn't protect against the case where there are no properties on JSON entity that should be populated as part of the loop.
Fix check the count of properties we found before we start generating Switch-Case statement for PropertyName.

Fixes dotnet#32939
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.

Accidentally using field instead of property for JSON metadata produce hard to understand exception
2 participants