invalid params is added

This commit is contained in:
병준 박 2022-08-04 08:44:55 +00:00
parent dbbdd2d5f2
commit c057943771

View File

@ -15,3 +15,24 @@ message Error {
optional string message = 2; optional string message = 2;
optional bytes data = 3; optional bytes data = 3;
} }
enum InvalidParamsType {
DATE_TIME = 0;
DECIMAL = 1;
EQUALS_TO = 2;
FLOAT = 3;
INTEGER = 4;
RANGE = 5;
REG_EX = 6;
REQUIRED = 7;
STRING_LENGTH = 8;
URL = 9;
}
message InvalidParamsDetail {
string location = 1;
string param = 2;
string value = 3;
InvalidParamsType error_type = 4;
string message = 5;
}