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 #34293 - Json: error when trying to materialize json entity with nullable property that is null in the json string - should materialize the property as null instead #35040

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Nov 5, 2024

Problem was that when computing nullability of a JSON entity we were using faulty logic - checking if the foreign key is required, rather than if its required dependent. This leads to optional entities being incorrectly marked as required and cause validation error when JSON contained null.

Fixes #34293

@maumar maumar requested a review from a team as a code owner November 5, 2024 01:27
…th nullable property that is null in the json string - should materialize the property as null instead

Problem was that when computing nullability of a JSON entity we were using faulty logic - checking if the foreign key is required, rather than if its required dependent. This lead to optional entities being incorrectly marked as required and cause validation error when JSON contained null.

Fixes #34293
@maumar maumar merged commit 612ccbf into main Nov 5, 2024
7 checks passed
@maumar maumar deleted the fix34293 branch November 5, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants