jsend icon indicating copy to clipboard operation
jsend copied to clipboard

including optional "message" field for "fail" status

Open arjunQ21 opened this issue 3 years ago • 2 comments

We usually send "fail" status if validation errors exist with request data. Sometimes, the failed message may not be included with any key of request payload(for example: when the input data is included in request parameters, instead of request body). In such situations, adding an optional "message" field with response( just like in error condition) would make this standard even more flexible.

arjunQ21 avatar Apr 07 '21 08:04 arjunQ21

I'd like to see this change as well -- @xzilla what are your thoughts on this? It was also brought up in #9

istrupin avatar Oct 26 '21 19:10 istrupin

That would be the best implementation. Actually, maybe consider adding a message as a standard. Just sending error or data with no description...

feyton avatar Jan 14 '22 16:01 feyton