func (it *Product) Validate() error {
	if it.Type == "" {
		return errors.New("invalid product type")

	}
	if it.Data == nil {
		return errors.New("product data can not be nil")

	}
	return nil
}
// Validate checks items request body
Validate checks items request body
// Validate checks items request body
func (it *Product) Validate() error {
	if it.Type == "" {
		return errors.New("invalid product type")
	}
	if it.Data == nil {
		return errors.New("product data can not be nil")
	}
	return nil
}
func ( it * Product ) Validate ( ) error { if it . Type == " " { return errors . New ( " " ) } if it . Data == nil { return errors . New ( " " ) } return nil }
Validate checks items request body
Validate checks items request body