From 429def6b95c877afec4685036a8216592b6514b4 Mon Sep 17 00:00:00 2001 From: zhouzb Date: Thu, 12 Aug 2021 13:55:21 +0800 Subject: [PATCH] fix(authn): fix http api spec --- apps/emqx_authn/src/emqx_authn_api.erl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/emqx_authn/src/emqx_authn_api.erl b/apps/emqx_authn/src/emqx_authn_api.erl index c4a12309e..bcaaebe93 100644 --- a/apps/emqx_authn/src/emqx_authn_api.erl +++ b/apps/emqx_authn/src/emqx_authn_api.erl @@ -1070,7 +1070,13 @@ definitions() -> PasswordBasedRedisDef = #{ type => object, - required => [], + required => [ server_type + , server + , servers + , password + , database + , query + ], properties => #{ server_type => #{ type => string, @@ -1099,7 +1105,7 @@ definitions() -> }, database => #{ type => integer, - exmaple => 0 + example => 0 }, query => #{ type => string,