Properties need to be allowed by Symfony's serializer at the same time#4031
Properties need to be allowed by Symfony's serializer at the same time#4031kayue wants to merge 4 commits into
Conversation
|
Hello, |
92f9aa9 to
02d701d
Compare
|
@alanpoulain Updated the branch and added a unit test. In Sylius it uses both FosRestBundle and ApiPlatform, and they basically shared the same serializer. Therefore I want to be able to control property visibility using serialization group so the settings can be shared by both bundles. In fact this is what ApiPlatform recommended to use as well. ApiPlatform's |
Some resources are only registered in ApiPlatform
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The Problem
The Solution
parent::getAllowedAttributes()inApiPlatform\Core\Serializer\AbstractItemNormalizer.