Alerting: Add validation to slack contact point (#45618)

* add requiredifempty

* rename field, fix logic

* update mockdata

* remove logs

* update test

* fix json expected payload in e2e tests

* fix test

* fix test again

Co-authored-by: Jean-Philippe Quémémer <jeanphilippe.quemener@grafana.com>
This commit is contained in:
Peter Holmberg
2022-02-25 15:10:21 +01:00
committed by GitHub
co-authored by Jean-Philippe Quémémer
parent a68a570e92
commit 4ef58e595c
8 changed files with 59 additions and 783 deletions
+1
View File
@@ -45,6 +45,7 @@ type NotifierOption struct {
Required bool `json:"required"`
ValidationRule string `json:"validationRule"`
Secure bool `json:"secure"`
DependsOn string `json:"dependsOn"`
}
// InputType is the type of input that can be rendered in the frontend.