fix: we should keep 'enable_websocket' for compatibility (#2836)

This commit is contained in:
罗泽轩 2020-11-25 11:31:47 +08:00 committed by GitHub
parent ba114fc980
commit 3b4bfaf185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"}},