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
I would implement some type of custom error message when the sent request has missing fields. The problem I have is, I can't find a way to extract the column name. For example I have this test struct.
struct Test {
pub test1: String,
pub test2: String,
}
If in a Json requets body test1 is sent, but test2 is not, how could I get the missing param name, because the error message does not send this information: "parse request payload error: Expected input type "string", found null. (occurred while parsing "Test")"
The text was updated successfully, but these errors were encountered:
Hello,
I would implement some type of custom error message when the sent request has missing fields. The problem I have is, I can't find a way to extract the column name. For example I have this test struct.
struct Test {
pub test1: String,
pub test2: String,
}
If in a Json requets body test1 is sent, but test2 is not, how could I get the missing param name, because the error message does not send this information: "parse request payload error: Expected input type "string", found null. (occurred while parsing "Test")"
The text was updated successfully, but these errors were encountered: