JMSSerializerBundle icon indicating copy to clipboard operation
JMSSerializerBundle copied to clipboard

Add an option to set skipWhenEmpty = true by default

Open jochen-jung opened this issue 5 years ago • 1 comments

We want to make it a general rule to not return empty properties.

So instead of adding the skipWhenEmpty annotation on every property we would prefer a config option.

Is there a way?

jochen-jung avatar Mar 12 '20 10:03 jochen-jung

Currently there is no way to do so... if you are interested to work on that feature, will be happy to accept a pull request

goetas avatar Mar 12 '20 11:03 goetas