Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Serializer] Add option to skip uninitialized typed properties#41615
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
5c235b2 tod129544Compared129544 to9cb2dc3Comparecarsonbot commentedJun 9, 2021
Hey! I think@mkrauser has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
a73c938 toc0fb162Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can you please rebase to trigger the CI again while fixing the review?
src/Symfony/Component/Serializer/Tests/Normalizer/Features/SkipUninitializedValuesTestTrait.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/Tests/Normalizer/Features/TypedPropertiesObject.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
6b733b4 to9cc7bd2Comparevuryss commentedSep 8, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Done. Thanks for the help with low deps issue. The failing test now does not seem to have anything in common with my changes. |
src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
9cc7bd2 to1b9ee7eComparederrabus commentedSep 8, 2021
Thank you@vuryss. |
…ES option (vuryss, ivannemets-sravniru)This PR was merged into the 5.4 branch.Discussion----------[Serializer] Documenting the new SKIP_UNINITIALIZED_VALUES optionDocuments changes introduced here:symfony/symfony#41615Original issue:symfony/symfony#40578Docs issue:#15785Commits-------08599e8 Update serializer.rst034f0f6 [Serializer] Documenting the new SKIP_UNINITIALIZED_VALUES option
Adds the ability to skip uninitialized values from Serializer. This is useful when using typed properties in 7.4 and those without default values should not be included in the result.
This works correctly when we're not using serializer groups, but when using the groups - it breaks badly, so it's also kind of a fix in addition to feature.