Skip to content

Commit

Permalink
fix config example (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
almostinf authored Oct 27, 2023
1 parent 8a9a727 commit 18568f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/handler/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import "net/http"
type ContactExample struct {
Type string `json:"type" example:"webhook kontur"`
Label string `json:"label" example:"Webhook Kontur"`
Validation string `json:"validation" example:"^(http|https):\\/\\/.*(testkontur.ru|kontur.host|skbkontur.ru)(:[0-9]{2,5})?\\/"`
Placeholder string `json:"placeholder" example:"https://service.testkontur.ru/webhooks/moira"`
Help string `json:"help" example:"### Domains whitelist:\n - skbkontur.ru\n - testkontur.ru\n - kontur.host"`
Validation string `json:"validation" example:"^(http|https):\\/\\/.*(moira.ru)(:[0-9]{2,5})?\\/"`
Placeholder string `json:"placeholder" example:"https://moira.ru/webhooks/moira"`
Help string `json:"help" example:"### Domains whitelist:\n - moira.ru\n"`
}

type ConfigurationResponse struct {
Expand Down

0 comments on commit 18568f0

Please sign in to comment.