How to add custom error codes to your Symfony API responses
- 2017-09-12
- php, jms-serializer, json, serialization, symfony, symfony-form, error-codes, api, custom-error
Serializing can be a not trivial process, but when talking about de-serialization, the problem is even more difficult. The source data (XML or JSON) can be not well formatted, well formatted but not valid or valid syntactically but not valid in our domain. Dividing deserialization, normalization, validation is fundamental.
It is almost a month that I started as maintainer of JMS Serializer and today I'm proud to announce the release v1.3.0 of JMS Serializer that contains many bug fixes and the new method "hasData" for generic serialization visitors (JSON/YAML)