fix: dashboard swagger SUITE
This commit is contained in:
parent
a1ef677e33
commit
402d3d97ae
|
@ -101,7 +101,7 @@ t_public_ref(_Config) ->
|
|||
minimum => 1,type => integer}}},
|
||||
#{<<"public.page">> => #{description => <<"Page number of the results to fetch.">>,
|
||||
example => 1,in => query,name => page,
|
||||
schema => #{default => 1,example => 100,type => integer}}}],
|
||||
schema => #{default => 1,example => 100,minimum => 1,type => integer}}}],
|
||||
?assertEqual(ExpectRefs, emqx_dashboard_swagger:components(Refs,#{})),
|
||||
ok.
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ t_complicated_type(_Config) ->
|
|||
Object = #{<<"content">> => #{<<"application/json">> =>
|
||||
#{<<"schema">> => #{<<"properties">> =>
|
||||
[
|
||||
{<<"no_neg_integer">>, #{example => 100, minimum => 1, type => integer}},
|
||||
{<<"no_neg_integer">>, #{example => 100, minimum => 0, type => integer}},
|
||||
{<<"url">>, #{example => <<"http://127.0.0.1">>, type => string}},
|
||||
{<<"server">>, #{example => <<"127.0.0.1:80">>, type => string}},
|
||||
{<<"connect_timeout">>, #{example => infinity, <<"oneOf">> => [
|
||||
|
|
Loading…
Reference in New Issue