Based on @ocramius Handling optional input parameters in PHP with vimeo/psalm and azjezz/psl I tried to use the same approach for out API implementation also with shared SDK DTOs.
Using the same
OptionalField given from ocramius, we can leverage that to add optional fields into the json serialized response.
This way we also add the ability to work with
- absent values
- adding/updating values
- or removal of values