func (m *TaskCard) validateKarma(formats strfmt.Registry) error { if swag.IsZero(m.Karma) { // not required return nil } if err := validate.Minimum("karma", "body", float64(*m.Karma), 0, true); err != nil { return err } if err := validate.MultipleOf("karma", "body", float64(*m.Karma), 0.5); err != nil { return err } return nil }
func (m *TaskCard) validateEffort(formats strfmt.Registry) error { if swag.IsZero(m.Effort) { // not required return nil } if err := validate.MaximumInt("effort", "body", int64(m.Effort), 27, false); err != nil { return err } if err := validate.MultipleOf("effort", "body", float64(m.Effort), 3); err != nil { return err } return nil }