Skip to content

Update annotations of Serialization #1267

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 2 commits into from
Feb 2, 2021
Merged

Conversation

GrimpEreau
Copy link
Contributor

No description provided.

itemOperations: [
'get',
'put' => [
'normalization_context' => ['groups' => ['put']]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'normalization_context' => ['groups' => ['put']]
'normalization_context' => ['groups' => ['put']],

*/
#[ApiResource(
normalizationContext: [
'groups' => ['person']
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'groups' => ['person']
'groups' => ['person'],

'groups' => ['person']
],
denormalizationContext: [
'groups' => ['person']
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'groups' => ['person']
'groups' => ['person'],

*/
#[ApiResource(
normalizationContext: [
'groups' => ['person']
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'groups' => ['person']
'groups' => ['person'],

'groups' => ['person']
],
denormalizationContext: [
'groups' => ['person']
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'groups' => ['person']
'groups' => ['person'],

* @ORM\Entity
*/
#[ApiResource(
collectionOperations: [
'get' => ['normalization_context' => ['groups' => 'greeting:collection:get']]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'get' => ['normalization_context' => ['groups' => 'greeting:collection:get']]
'get' => ['normalization_context' => ['groups' => 'greeting:collection:get']],

@dunglas dunglas merged commit 8cc9e0e into api-platform:2.6 Feb 2, 2021
@dunglas
Copy link
Member

dunglas commented Feb 2, 2021

Thanks @GrimpEreau !

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.

3 participants