MCPcopy
hub / github.com/harness/harness / Validate

Method Validate

types/label.go:230–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228}
229
230func (in PullReqLabelAssignInput) Validate() error {
231 if (in.ValueID != nil && *in.ValueID > 0) && in.Value != "" {
232 return errors.InvalidArgument("cannot accept both value id and value")
233 }
234 return nil
235}
236
237type SaveLabelInput struct {
238 ID int64 `json:"id"`

Callers

nothing calls this directly

Calls 1

InvalidArgumentFunction · 0.92

Tested by

no test coverage detected