fix(authz): `servers` field use string
This commit is contained in:
parent
39c29b2396
commit
8cb9482542
|
@ -182,8 +182,7 @@ definitions() ->
|
||||||
mongo_type => #{type => string,
|
mongo_type => #{type => string,
|
||||||
enum => [<<"rs">>],
|
enum => [<<"rs">>],
|
||||||
example => <<"rs">>},
|
example => <<"rs">>},
|
||||||
servers => #{type => array,
|
servers => #{type => string, example => <<"127.0.0.1:27017, 127.0.0.2:27017">>},
|
||||||
items => #{type => string,example => <<"127.0.0.1:27017">>}},
|
|
||||||
replica_set_name => #{type => string},
|
replica_set_name => #{type => string},
|
||||||
pool_size => #{type => integer},
|
pool_size => #{type => integer},
|
||||||
username => #{type => string},
|
username => #{type => string},
|
||||||
|
@ -240,8 +239,7 @@ definitions() ->
|
||||||
mongo_type => #{type => string,
|
mongo_type => #{type => string,
|
||||||
enum => [<<"sharded">>],
|
enum => [<<"sharded">>],
|
||||||
example => <<"sharded">>},
|
example => <<"sharded">>},
|
||||||
servers => #{type => array,
|
servers => #{type => string,example => <<"127.0.0.1:27017, 127.0.0.2:27017">>},
|
||||||
items => #{type => string,example => <<"127.0.0.1:27017">>}},
|
|
||||||
pool_size => #{type => integer},
|
pool_size => #{type => integer},
|
||||||
username => #{type => string},
|
username => #{type => string},
|
||||||
password => #{type => string},
|
password => #{type => string},
|
||||||
|
@ -401,8 +399,7 @@ definitions() ->
|
||||||
type => string,
|
type => string,
|
||||||
example => <<"HGETALL mqtt_authz">>
|
example => <<"HGETALL mqtt_authz">>
|
||||||
},
|
},
|
||||||
servers => #{type => array,
|
servers => #{type => string, example => <<"127.0.0.1:6379, 127.0.0.2:6379">>},
|
||||||
items => #{type => string,example => <<"127.0.0.1:3306">>}},
|
|
||||||
redis_type => #{type => string,
|
redis_type => #{type => string,
|
||||||
enum => [<<"sentinel">>],
|
enum => [<<"sentinel">>],
|
||||||
example => <<"sentinel">>},
|
example => <<"sentinel">>},
|
||||||
|
@ -438,8 +435,7 @@ definitions() ->
|
||||||
type => string,
|
type => string,
|
||||||
example => <<"HGETALL mqtt_authz">>
|
example => <<"HGETALL mqtt_authz">>
|
||||||
},
|
},
|
||||||
servers => #{type => array,
|
servers => #{type => string, example => <<"127.0.0.1:6379, 127.0.0.2:6379">>},
|
||||||
items => #{type => string, example => <<"127.0.0.1:3306">>}},
|
|
||||||
redis_type => #{type => string,
|
redis_type => #{type => string,
|
||||||
enum => [<<"cluster">>],
|
enum => [<<"cluster">>],
|
||||||
example => <<"cluster">>},
|
example => <<"cluster">>},
|
||||||
|
|
Loading…
Reference in New Issue