fix: topic_metrics example
This commit is contained in:
parent
0e3310f1cf
commit
d82a5544da
|
@ -231,18 +231,16 @@ fields(metrics) ->
|
||||||
topic(In) ->
|
topic(In) ->
|
||||||
case In of
|
case In of
|
||||||
body ->
|
body ->
|
||||||
Desc = <<"Raw topic string">>,
|
Desc = <<"Raw topic string">>;
|
||||||
Example = "testtopic/1";
|
|
||||||
path ->
|
path ->
|
||||||
Desc = <<"Notice: Topic string in url path must be encoded">>,
|
Desc = <<"Notice: Topic string in url path must be encoded">>
|
||||||
Example = "testtopic%2F1"
|
|
||||||
end,
|
end,
|
||||||
{ topic
|
{ topic
|
||||||
, mk( binary(),
|
, mk( binary(),
|
||||||
#{ desc => Desc
|
#{ desc => Desc
|
||||||
, required => true
|
, required => true
|
||||||
, in => In
|
, in => In
|
||||||
, example => Example
|
, example => <<"testtopic/1">>
|
||||||
})
|
})
|
||||||
}.
|
}.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue