diff options
Diffstat (limited to 'priv')
| -rw-r--r-- | priv/schema/rabbit.schema | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema index e05623ae78..2054a48ccf 100644 --- a/priv/schema/rabbit.schema +++ b/priv/schema/rabbit.schema @@ -73,7 +73,7 @@ end}. ]}. -%% Maximum time for AMQP 0-8/0-9/0-9-1 handshake (after socket connection +%% Maximum time for 0-9-1 handshake (after socket connection %% and SSL handshake), in milliseconds. %% %% {handshake_timeout, 10000}, @@ -98,6 +98,19 @@ end}. ]}. %% +%% Definition import +%% + +%% Load definitions from a JSON file or directory of files. See +%% https://www.rabbitmq.com/management.html#load-definitions +%% +%% {load_definitions, "/path/to/schema.json"}, +%% {load_definitions, "/path/to/schemas"}, +{mapping, "load_definitions", "rabbit.load_definitions", + [{datatype, string}, + {validators, ["file_accessible"]}]}. + +%% %% Security / AAA %% ============== %% @@ -1631,7 +1644,7 @@ fun(Dir) -> Res end}. -{validator, "file_accessible", "file doesn/t exist or isn't readable", +{validator, "file_accessible", "file doesn't exist or isn't readable", fun(File) -> ReadFile = file:read_file_info(File), element(1, ReadFile) == ok |
