From c057943771735debf56b381b2fc8ba451b09afa7 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 4 Aug 2022 08:44:55 +0000 Subject: [PATCH] invalid params is added --- proto/protobuf/rpc/error.proto | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/proto/protobuf/rpc/error.proto b/proto/protobuf/rpc/error.proto index 049dc3d..cd8bcea 100644 --- a/proto/protobuf/rpc/error.proto +++ b/proto/protobuf/rpc/error.proto @@ -15,3 +15,24 @@ message Error { optional string message = 2; 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; +}