diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2019-11-19 02:27:21 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-19 02:27:21 +0300 |
| commit | e5f2dfafce3b5c75b11fb76b7ddf464c5358ad41 (patch) | |
| tree | ac554e45cefb5c31cb43d959c5ceaf203ce6681e /priv | |
| parent | 880965aa67009dc3fb8dc161b8b1b6df6a71ed9d (diff) | |
| parent | 8f085a3ec546137ca7c5d2adc43cfb12f86af294 (diff) | |
| download | rabbitmq-server-git-e5f2dfafce3b5c75b11fb76b7ddf464c5358ad41.tar.gz | |
Merge pull request #2160 from rabbitmq/rabbitmq-management-749
Extract rabbit_definitions from rabbitmq-management
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 |
