fix(api_schema): add authn mongo missing fields
This commit is contained in:
parent
33f5eec802
commit
53b51e31f0
|
@ -20,18 +20,18 @@
|
||||||
|
|
||||||
definitions() ->
|
definitions() ->
|
||||||
Sources = #{
|
Sources = #{
|
||||||
oneOf => [ minirest:ref(<<"http">>)
|
'oneOf' => [ minirest:ref(<<"http">>)
|
||||||
, minirest:ref(<<"built-in-database">>)
|
, minirest:ref(<<"built-in-database">>)
|
||||||
, minirest:ref(<<"mongo_single">>)
|
, minirest:ref(<<"mongo_single">>)
|
||||||
, minirest:ref(<<"mongo_rs">>)
|
, minirest:ref(<<"mongo_rs">>)
|
||||||
, minirest:ref(<<"mongo_sharded">>)
|
, minirest:ref(<<"mongo_sharded">>)
|
||||||
, minirest:ref(<<"mysql">>)
|
, minirest:ref(<<"mysql">>)
|
||||||
, minirest:ref(<<"postgresql">>)
|
, minirest:ref(<<"postgresql">>)
|
||||||
, minirest:ref(<<"redis_single">>)
|
, minirest:ref(<<"redis_single">>)
|
||||||
, minirest:ref(<<"redis_sentinel">>)
|
, minirest:ref(<<"redis_sentinel">>)
|
||||||
, minirest:ref(<<"redis_cluster">>)
|
, minirest:ref(<<"redis_cluster">>)
|
||||||
, minirest:ref(<<"file">>)
|
, minirest:ref(<<"file">>)
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
SSL = #{
|
SSL = #{
|
||||||
type => object,
|
type => object,
|
||||||
|
@ -119,6 +119,7 @@ definitions() ->
|
||||||
type => boolean,
|
type => boolean,
|
||||||
example => true
|
example => true
|
||||||
},
|
},
|
||||||
|
srv_record => #{type => boolean, example => false, default => false},
|
||||||
collection => #{type => string},
|
collection => #{type => string},
|
||||||
selector => #{type => object},
|
selector => #{type => object},
|
||||||
mongo_type => #{type => string,
|
mongo_type => #{type => string,
|
||||||
|
@ -175,6 +176,7 @@ definitions() ->
|
||||||
type => boolean,
|
type => boolean,
|
||||||
example => true
|
example => true
|
||||||
},
|
},
|
||||||
|
srv_record => #{type => boolean, example => false, default => false},
|
||||||
collection => #{type => string},
|
collection => #{type => string},
|
||||||
selector => #{type => object},
|
selector => #{type => object},
|
||||||
mongo_type => #{type => string,
|
mongo_type => #{type => string,
|
||||||
|
@ -232,6 +234,7 @@ definitions() ->
|
||||||
type => boolean,
|
type => boolean,
|
||||||
example => true
|
example => true
|
||||||
},
|
},
|
||||||
|
srv_record => #{type => boolean, example => false, default => false},
|
||||||
collection => #{type => string},
|
collection => #{type => string},
|
||||||
selector => #{type => object},
|
selector => #{type => object},
|
||||||
mongo_type => #{type => string,
|
mongo_type => #{type => string,
|
||||||
|
@ -479,7 +482,9 @@ definitions() ->
|
||||||
type => array,
|
type => array,
|
||||||
items => #{
|
items => #{
|
||||||
type => string,
|
type => string,
|
||||||
example => <<"{allow,{username,\"^dashboard?\"},subscribe,[\"$SYS/#\"]}.\n{allow,{ipaddr,\"127.0.0.1\"},all,[\"$SYS/#\",\"#\"]}.">>
|
example =>
|
||||||
|
<<"{allow,{username,\"^dashboard?\"},","subscribe,[\"$SYS/#\"]}.\n",
|
||||||
|
"{allow,{ipaddr,\"127.0.0.1\"},all,[\"$SYS/#\",\"#\"]}.">>
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
path => #{
|
path => #{
|
||||||
|
|
Loading…
Reference in New Issue