MCPcopy Index your code
hub / github.com/coder/coder / Validate

Method Validate

codersdk/notifications.go:303–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

ValidateMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected