-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Serializer] Add missing options context #14384
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
Conversation
This PR can be transformed to document the context options of each serialization format #8505 but i need feedback 😄 |
@maxhelias minor comment: there's no need to create "draft PRs" because in Symfony we consider all PRs already "in draft" and "ready to review" until they are merged. In the code repository we do the same and we don't use draft PRs. Thanks! |
@javiereguiluz ok I'll change then. |
Status: Needs Work |
Fyi, I've just merged the PR you mentioned. However, I've also opened another PR that changes this: #14521 After that, this PR should probably be rebased. |
0186e76
to
5902d04
Compare
@wouterj I rebase the branch and I harmonize a little more the Normalizers & Encoders section. |
5902d04
to
b47e769
Compare
About the DOCtor errors your seeing: I reported this a couple days: OskarStark/doctor-rst#808 . Normally, we add 2 spaces between the columns in these tables, but to avoid this error I changed it to 1 space for one column :) |
0850560
to
d7a7cc2
Compare
Thanks for the tips, it's fixed 👍 |
friendly ping @wouterj 😃 |
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.
Sorry, somehow this PR was no longer in my notification center.
I've one minor syntax fix, which we can also fix while merging. Are all these options introduced before Symfony 4.4, or do we need a .. versionadded:: 4.4
directive for new options?
d7a7cc2
to
3766967
Compare
Don't worry about it. The most recent one has been integrated in version 4.1, do you want the directive anyway ? |
3766967
to
b2b73b2
Compare
The correct versionadded directives would be super helpful if you can find them out 🙏 |
b2b73b2
to
6b52b31
Compare
@wouterj @OskarStark I added the right directive |
6b52b31
to
159da02
Compare
friendly ping @wouterj or @OskarStark 😃 |
* 4.4: [#14384] Minor grammar fix in versionadded directive Add missing options context
* 5.1: Removed 4.2 versionadded directive [#14384] Minor grammar fix in versionadded directive Add missing options context
* 5.2: Removed 4.2 versionadded directive [#14384] Minor grammar fix in versionadded directive Add missing options context
Thank you @maxhelias (also thank you for your patience!)! Lots of great new content in this PR :) |
The options are not really in the right place since just above the text indicates the elements for associative arrays.
But we only list context options for an associative array here : https://symfony.com/doc/current/components/serializer.html#context
Wouldn't we move all the options for all encoders here ? https://symfony.com/doc/current/components/serializer.html#encoders
And in the first section display only the possible options for associative array with the link to their description.
Solve #10277 and #10286