You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Description**: When set to `True`, disables response shaping for debugging purposes.
314
315
- **Default**: `False`
315
316
317
+
`RESPONSE_SHAPER_RETURN_ERROR_AS_DICT`
318
+
--------------------------------------
319
+
320
+
- **Type**: `bool`
321
+
- **Description**: Controls the format of dict error messages extracted by the ExceptionHandler. When `True`, errors with **nested dictionary** structure are returned as a dictionary containing the innermost key-value pair from nested error structures. When `False`, only the innermost error message is returned as a string. This applies to error responses shaped by the handler, particularly for validation.
322
+
- **Default**: `True`
323
+
324
+
**Example**:
325
+
```python
326
+
# With RESPONSE_SHAPER_RETURN_ERROR_AS_DICT = True
0 commit comments