This is an automated email from the ASF dual-hosted git repository.

membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 3b4bfaf  fix: we should keep 'enable_websocket' for compatibility 
(#2836)
3b4bfaf is described below

commit 3b4bfaf18559b30969b14ce8dcf0d2dbd9a04227
Author: 罗泽轩 <[email protected]>
AuthorDate: Wed Nov 25 11:31:47 2020 +0800

    fix: we should keep 'enable_websocket' for compatibility (#2836)
---
 apisix/schema_def.lua | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/apisix/schema_def.lua b/apisix/schema_def.lua
index 6d35b70..5e5bbdd 100644
--- a/apisix/schema_def.lua
+++ b/apisix/schema_def.lua
@@ -374,7 +374,12 @@ local upstream_schema = {
         name = rule_name_def,
         desc = {type = "string", maxLength = 256},
         service_name = rule_name_def,
-        id = id_schema
+        id = id_schema,
+        -- deprecate fields, will be removed soon
+        enable_websocket = {
+            description = "enable websocket for request",
+            type        = "boolean",
+        },
     },
     anyOf = {
         {required = {"type", "nodes"}},

Reply via email to