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
Is your feature request related to a problem? Please describe your use case.
I'm developing a open api application, and the validation error message should shown in user interface.
I suggest that We could modify the error message as I could
Describe the solution you'd like
Like this:
@validate(query=MyCustomQueryParams,message_writer=MyCustomWriter)asyncdefquery_demo(request):
returntext("test")
asyncdefMyCustomWriter (error_model):
return'extract the error detail from error_model and custom message to the user'
Additional context
error_model should be a list-dict, which contains the all encountered error
the parameter name
the error value
the error type (wrong value type, missing required field,etc)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe your use case.
I'm developing a open api application, and the validation error message should shown in user interface.
I suggest that We could modify the error message as I could
Describe the solution you'd like
Like this:
Additional context
error_model should be a list-dict, which contains the all encountered error
The text was updated successfully, but these errors were encountered: