chore: expose more schema via control API (#3127)

This commit is contained in:
nic-chen 2020-12-25 21:26:15 +08:00 committed by GitHub
parent 86fa46d85b
commit baf8a26cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -33,6 +33,8 @@ function _M.schema()
ssl = core.schema.ssl,
stream_route = core.schema.stream_route,
upstream = core.schema.upstream,
upstream_hash_header_schema = core.schema.upstream_hash_header_schema,
upstream_hash_vars_schema = core.schema.upstream_hash_vars_schema,
},
plugins = plugin.get_all({
version = true,

View File

@ -57,7 +57,9 @@ __DATA__
"service": {"type":"object"},
"ssl": {"type":"object"},
"stream_route": {"type":"object"},
"upstream": {"type":"object"}
"upstream": {"type":"object"},
"upstream_hash_header_schema": {"type":"string"},
"upstream_hash_vars_schema": {"type":"string"},
},
"plugins": {
"example-plugin": {