schmittjoh / JMSSerializerBundle

Easily serialize, and deserialize data of any complexity (supports XML, JSON, YAML)
http://jmsyst.com/bundles/JMSSerializerBundle
MIT License
1.8k stars 311 forks source link

Support for DefaultValuePropertyDriver #923

Closed dbojdo closed 10 months ago

dbojdo commented 1 year ago
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes

Current version of the bundle does not support DefaultValuePropertyDriver. DefaultMetadataDriverFactory includes DefaultValuePropertyDriver in the chain resulting in a different behaviour.

Steps required to reproduce the problem

  1. Deserializer an empty input "{}" to the class of your choice (properties should have default values) using the serialiser pulled from the container

Expected Result

Actual Result