From 767786ce05d69bbf8fa08359f3a38e96d2d37e57 Mon Sep 17 00:00:00 2001 From: Janko Date: Wed, 9 Oct 2019 10:02:52 +0800 Subject: [PATCH] bugfix: removed useless schema of upstream. (#643) --- lua/apisix/schema_def.lua | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/lua/apisix/schema_def.lua b/lua/apisix/schema_def.lua index 1ba0972cfb27..5d62efe1cc20 100644 --- a/lua/apisix/schema_def.lua +++ b/lua/apisix/schema_def.lua @@ -239,33 +239,7 @@ local upstream_schema = { enum = {"remote_addr"}, }, desc = {type = "string", maxLength = 256}, - id = id_schema, - scheme = { - description = "scheme of upstream", - type = "string", - enum = {"http", "https"}, - }, - host = { - description = "host of upstream", - type = "string", - pattern = host_def_pat, - }, - upgrade = { - description = "upgrade header for upstream", - type = "string", - }, - connection = { - description = "connection header for upstream", - type = "string", - }, - uri = { - description = "new uri for upstream", - type = "string", - }, - enable_websocket = { - description = "enable websocket for request", - type = "boolean", - } + id = id_schema }, required = {"nodes", "type"}, additionalProperties = false,