You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My personal use case for multiple exclusion strategies: I'd like to use Groups with the proposed DepthExclusion strategy (#4). Restrict the properties that are serialized, and restrict the depth to which some properties are serialized. I need both for that. Strategies really complement each other; the same is true for e.g. groups and version.
The issue mainly dealed with three changes:
Adding a serializer builder service that separates the new settings for each invocation => Builder exists
The option to configure specific serializers in the config files => would go to SerializerBundle
Changes to Groups => Default Groups are there, I think that was it
A new option to have a chain of exclusion strategies instead of a single one
Is there still demand for this?
Looks like the builder doesn't have support for setting (multiple) exclusion strategies yet. So it looks like we'd need to do that and 4.). Or has this been accomplished some other way?
The text was updated successfully, but these errors were encountered:
Okay, I tried to rebase Seldaek's latest commits (just 5 months old) onto master, but it doesn't play well with the current builder. I assume you could add public methods to the builder similar to configureEventHandlers, addMetadataDirs etc. that set the exclusion strategies. Not sure if you would still need to add some sort of ChainExclusionStrategy, though.
This has been discussed in schmittjoh/JMSSerializerBundle#140, but it mainly belongs here now.
My personal use case for multiple exclusion strategies: I'd like to use Groups with the proposed DepthExclusion strategy (#4). Restrict the properties that are serialized, and restrict the depth to which some properties are serialized. I need both for that. Strategies really complement each other; the same is true for e.g. groups and version.
The issue mainly dealed with three changes:
Is there still demand for this?
Looks like the builder doesn't have support for setting (multiple) exclusion strategies yet. So it looks like we'd need to do that and 4.). Or has this been accomplished some other way?
The text was updated successfully, but these errors were encountered: