From dba71d500404fef5214534ff4b5a8a7f8a9948af Mon Sep 17 00:00:00 2001 From: Jose Nino Date: Tue, 21 Nov 2017 17:52:20 -0800 Subject: [PATCH] cds: allow v1 config to define api_type in the json-schema Signed-off-by: Jose Nino --- source/common/json/config_schemas.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/common/json/config_schemas.cc b/source/common/json/config_schemas.cc index 9e96a4bb13831..689bada76252b 100644 --- a/source/common/json/config_schemas.cc +++ b/source/common/json/config_schemas.cc @@ -1131,6 +1131,10 @@ const std::string Json::Schema::CLUSTER_MANAGER_SCHEMA(R"EOF( "type" : "integer", "minimum" : 0, "exclusiveMinimum" : true + }, + "api_type" : { + "type" : "string", + "enum" : ["REST_LEGACY", "REST", "GRPC"] } }, "required" : ["cluster"],