Skip to content

[Serializer] Add missing normalizer options constants #22555

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

Merged
merged 1 commit into from
Apr 29, 2017
Merged

[Serializer] Add missing normalizer options constants #22555

merged 1 commit into from
Apr 29, 2017

Conversation

ogizanagi
Copy link
Contributor

@ogizanagi ogizanagi commented Apr 27, 2017

Q A
Branch? master (3.3)
Bug fix? not really
New feature? yesish, but for 3.3 as those options were added on this branch and not released yet
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #22537 (comment)
License MIT
Doc PR N/A

As seen in #22537 (comment).

@dunglas : I'm not sure about the exposing the key_type option as a constant in ArrayDenormalizer/AbstractObjectNormalizer, as it looks more or less like a detail of the AbstractObjectNormalizer implementation, but anyway it should be in 3.2 if we add it, so I haven't included it here.
However, I wonder if this option shouldn't directly accept a string too, rather than just a Symfony\Component\PropertyInfo\Type instance if we want to consider this option "public"?

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fabpot
Copy link
Member

fabpot commented Apr 29, 2017

Thank you @ogizanagi.

@fabpot fabpot merged commit b0c414f into symfony:master Apr 29, 2017
fabpot added a commit that referenced this pull request Apr 29, 2017
…gizanagi)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[Serializer] Add missing normalizer options constants

| Q             | A
| ------------- | ---
| Branch?       | master (3.3)
| Bug fix?      | not really
| New feature?  | yesish, but for 3.3 as those options were added on this branch and not released yet
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #22537 (comment)
| License       | MIT
| Doc PR        | N/A

As seen in #22537 (comment).

@dunglas : I'm not sure about the exposing the `key_type` option as a constant in `ArrayDenormalizer`/`AbstractObjectNormalizer`, as it looks more or less like a detail of the AbstractObjectNormalizer implementation, but anyway it should be in 3.2 if we add it, so I haven't included it here.
However, I wonder if this option shouldn't directly accept a string too, rather than just a `Symfony\Component\PropertyInfo\Type` instance if we want to consider this option "public"?

Commits
-------

b0c414f [Serializer] Add missing normalizer options constants
@ogizanagi ogizanagi deleted the fix/3.3/serializer/normalizer_consts branch April 29, 2017 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants