Skip to content
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

fix(serializer): fix TagCollector for JSONAPI and HAL format #6076

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

usu
Copy link
Contributor

@usu usu commented Jan 3, 2024

Q A
Branch? main
Tickets
License MIT
Doc PR

I tested PR #5753 in a real application after it was merged into main.

I noticed, that while evolving the PR I broke the implementation for HAL and JSONAPI when simplifying the function signature of the TagCollectorInterace (commit 6550208). The context keys object and format were not properly propagated for HAL and JSONAPI. Unfortunately, there were no test cases for these formats.

This PR:

  • fixes implementation for HAL and JSONAPI
  • adds additional test coverage for these formats
  • cleans up the code in TagCollectorCustom to provide more comments and more clarity

@soyuka
Copy link
Member

soyuka commented Jan 4, 2024

Nice thanks!

@soyuka soyuka merged commit bbc99cf into api-platform:main Jan 4, 2024
52 of 55 checks passed
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.

2 participants