()
| 301 | ) |
| 302 | |
| 303 | func (c CustomNotificationRequest) Validate() error { |
| 304 | if c.Content == nil { |
| 305 | return xerrors.Errorf("content is required") |
| 306 | } |
| 307 | return c.Content.Validate() |
| 308 | } |
| 309 | |
| 310 | func (c CustomNotificationContent) Validate() error { |
| 311 | if strings.TrimSpace(c.Title) == "" || |
no test coverage detected