Skip to content

Commit

Permalink
fix: json schema for notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jenyapoyarkov committed Oct 25, 2018
1 parent 3c70261 commit 6e0ca00
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions schemas/notifier.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"definitions": {
"config": {
"type": "object",
"required": ["enabled", "transport"],
"additionalProperties": false,
"if": { "properties": { "enabled": true } },

This comment has been minimized.

Copy link
@AVVS

AVVS Oct 25, 2018

Member

doesnt work like that:

"if": { "properties": { "enabled": { "const": true } } }
"then": { "required": ["enabled", "transport"] },
"else": { "required": ["enabled"] },
"properties": {
"enabled": {
"type": "boolean",
Expand All @@ -15,11 +17,11 @@
"required": ["exchange"],
"properties": {
"exchange": {
"type": "string"
"type": "string",
"default": "example"
}
}
},
"routes": {}
}
}
}
}
Expand Down

0 comments on commit 6e0ca00

Please sign in to comment.