docs(schema): Add documentation for license application
This commit is contained in:
parent
251192f84c
commit
43aa2ea481
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
-behaviour(hocon_schema).
|
-behaviour(hocon_schema).
|
||||||
|
|
||||||
-export([roots/0, fields/1, validations/0]).
|
-export([roots/0, fields/1, validations/0, desc/1]).
|
||||||
|
|
||||||
roots() ->
|
roots() ->
|
||||||
[
|
[
|
||||||
|
@ -40,7 +40,7 @@ fields(key_license) ->
|
||||||
type => string(),
|
type => string(),
|
||||||
%% so it's not logged
|
%% so it's not logged
|
||||||
sensitive => true,
|
sensitive => true,
|
||||||
desc => "Configure the license as a string"
|
desc => "License string"
|
||||||
}}
|
}}
|
||||||
| common_fields()
|
| common_fields()
|
||||||
];
|
];
|
||||||
|
@ -53,6 +53,13 @@ fields(file_license) ->
|
||||||
| common_fields()
|
| common_fields()
|
||||||
].
|
].
|
||||||
|
|
||||||
|
desc(key_license) ->
|
||||||
|
"License provisioned as a string.";
|
||||||
|
desc(file_license) ->
|
||||||
|
"License provisioned as a file.";
|
||||||
|
desc(_) ->
|
||||||
|
undefined.
|
||||||
|
|
||||||
common_fields() ->
|
common_fields() ->
|
||||||
[
|
[
|
||||||
{connection_low_watermark, #{
|
{connection_low_watermark, #{
|
||||||
|
|
Loading…
Reference in New Issue