From 6e0ca00b4a14579fca0a8bce0a21182837759521 Mon Sep 17 00:00:00 2001 From: Eugene Poyarkov Date: Thu, 25 Oct 2018 16:19:57 +0300 Subject: [PATCH] fix: json schema for notifier --- schemas/notifier.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/schemas/notifier.json b/schemas/notifier.json index f3d54ad8..6ede3e1f 100644 --- a/schemas/notifier.json +++ b/schemas/notifier.json @@ -3,8 +3,10 @@ "definitions": { "config": { "type": "object", - "required": ["enabled", "transport"], "additionalProperties": false, + "if": { "properties": { "enabled": true } }, + "then": { "required": ["enabled", "transport"] }, + "else": { "required": ["enabled"] }, "properties": { "enabled": { "type": "boolean", @@ -15,11 +17,11 @@ "required": ["exchange"], "properties": { "exchange": { - "type": "string" + "type": "string", + "default": "example" } } - }, - "routes": {} + } } } }