Often times we see DRF implementations that raise serialization or validation errors from views as simple string responses. It'd be nice to have the option of forcing that into a Boston Logger-controlled JSON structure to get the response text without breaking JSON serializability.
E.g.:
"response": {
"status_code": 400,
"string_response": "Validation error text here"
}
Often times we see DRF implementations that raise serialization or validation errors from views as simple string responses. It'd be nice to have the option of forcing that into a Boston Logger-controlled JSON structure to get the response text without breaking JSON serializability.
E.g.: