improving documentation
This commit is contained in:
parent
6505ad758f
commit
7c5bc626d0
@ -10,10 +10,8 @@ def create_default_json_response_format(error_field:str, error_description:str):
|
|||||||
"""
|
"""
|
||||||
The default format of a JSON response for exceptions is:
|
The default format of a JSON response for exceptions is:
|
||||||
{
|
{
|
||||||
"message":str,
|
"error_field":str,
|
||||||
"errors":typing.Optional[
|
"error_description":str
|
||||||
list[dict[str,list[str]]]
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
json_response = {
|
json_response = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user