Skip to content

Commit

Permalink
bugfix: removed useless schema of upstream. (apache#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuaijinchao authored and moonming committed Oct 9, 2019
1 parent 6825f74 commit 767786c
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions lua/apisix/schema_def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 767786c

Please sign in to comment.