doc_lift is to make the doc render application to lift this field to the root level and force the field's doc to refernec it instead of expanding the structs in a nested way
@@ -1,7 +1,7 @@
%% -*- mode: erlang -*-
{application, emqx_authz, [
{description, "An OTP application"},
- {vsn, "0.1.15"},
+ {vsn, "0.1.16"},
{registered, []},
{mod, {emqx_authz_app, []}},
{applications, [
@@ -492,7 +492,9 @@ authz_fields() ->
?ARRAY(?UNION(UnionMemberSelector)),
#{
default => [],
- desc => ?DESC(sources)
+ desc => ?DESC(sources),
+ %% doc_lift is force a root level reference instead of nesting sub-structs
+ extra => #{doc_lift => true}
}
)}
].