Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Serializer] Serialization versioning#38478

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

Open
ArnaudTarroux wants to merge11 commits intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromArnaudTarroux:feature/serializer-version

Conversation

ArnaudTarroux
Copy link

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#30848
LicenseMIT
Doc PRn/a

Add Serialization versioning.

  • Added@Since annotation
  • Added@Until annotation
  • Added support ofsince anduntil to thexml andyaml mapping
  • Addedversion context option
  • Added the possibility to configure theserializer.default_version in the framework config

@ArnaudTarroux
Copy link
Author

Old PR =>#35617

OskarStark reacted with thumbs up emoji

@nicolas-grekasnicolas-grekas added this to the5.x milestoneOct 12, 2020
@fabpotfabpot modified the milestones:5.4,6.1Nov 16, 2021
@fabpot
Copy link
Member

@dunglas I would love to get your input here whenever you have time.

@@ -934,6 +934,7 @@ private function addSerializerSection(ArrayNodeDefinition $rootNode)
->end()
->end()
->end()
->scalarNode('default_version')->end()

Choose a reason for hiding this comment

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

From#38542serializer.default_context config option is avalable now.

Why not useserializer.default_context.version instead?

@fabpotfabpot modified the milestones:6.1,6.2May 20, 2022
@nicolas-grekasnicolas-grekas modified the milestones:6.2,6.3Nov 5, 2022
@connorhu
Copy link
Contributor

I have made some updates to this PR.

  • addedSince andUntil annotations
  • fixed some tests
  • fixed merge conflicts (with rebase to 6.3)

You can find it here:
6.3...connorhu:symfony:feature/serializer-version

@ArnaudTarroux
Copy link
Author

I have made some updates to this PR.

  • addedSince andUntil annotations
  • fixed some tests
  • fixed merge conflicts (with rebase to 6.3)

You can find it here:6.3...connorhu:symfony:feature/serializer-version

Thank for your work@connorhu !
I don'y know if this PR will be merged one day 🤷

@nicolas-grekasnicolas-grekas removed this from the6.3 milestoneMay 23, 2023
@nicolas-grekasnicolas-grekas added this to the6.4 milestoneMay 23, 2023
@nicolas-grekasnicolas-grekas modified the milestones:6.4,7.1Nov 15, 2023
@xabbuhxabbuh modified the milestones:7.1,7.2May 15, 2024
use Symfony\Component\Serializer\Exception\InvalidArgumentException;

/**
* Annotation class for @Since().
Copy link
Contributor

@Seb33300Seb33300Aug 29, 2024
edited
Loading

Choose a reason for hiding this comment

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

Not sure if you're still maintaining this PR, but this probably needs to be changed into an attribute now.

@fabpotfabpot modified the milestones:7.2,7.3Nov 20, 2024
@fabpotfabpot modified the milestones:7.3,7.4May 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Seb33300Seb33300Seb33300 left review comments

@bigfoot90bigfoot90bigfoot90 left review comments

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
7.4
Development

Successfully merging this pull request may close these issues.

8 participants
@ArnaudTarroux@fabpot@connorhu@Seb33300@bigfoot90@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp