Skip to content

Commit

Permalink
validation for message and channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegfried Puchbauer committed May 19, 2015
1 parent 2fc4b29 commit 6a3b2e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions default/restmap.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[validation:savedsearch]
action.slack = case('action.slack' != "1", null(), \
'action.slack.param.message' == "" OR 'action.slack.param.message' == "action.slack.param.message", "No message text specified for Slack notification")
action.slack.param.channel = validate( match('action.slack.param.channel', "^[#@]"), "Slack channel is invalid (must start with # or @)")

0 comments on commit 6a3b2e3

Please sign in to comment.