Closed mfn closed 8 years ago
Per http://jsonapi.org/format/1.0/#errors 'status' and 'code' must be of type string, if present.
For completeness I added casts for 'detail' and 'title' too, just in case someone would pass an integer at a point.
This allows validating the response with e.g. http://jsonapi.org/faq/#is-there-a-json-schema-describing-json-api successfully.
Per http://jsonapi.org/format/1.0/#errors 'status' and 'code' must be of type string, if present.
For completeness I added casts for 'detail' and 'title' too, just in case someone would pass an integer at a point.
This allows validating the response with e.g. http://jsonapi.org/faq/#is-there-a-json-schema-describing-json-api successfully.