// Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
// This method is not required and may be deleted.
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
This method is not required and may be deleted.
// Validate gets run every time you call a " pop . Validate * " ( pop . ValidateAndSave pop . ValidateAndCreate pop . ValidateAndUpdate ) method . // This method is not required and may be deleted .
func (u *UserProfile) Validate(tx *pop.Connection) (*validate.Errors, error) {
	return validate.Validate(
		&validators.StringIsPresent{Field: u.Provider, Name: "Provider"},
		&validators.StringIsPresent{Field: u.ProviderID, Name: "ProviderID"},
		&validators.EmailIsPresent{Field: u.Email.String, Name: "Email"},
		&validators.StringIsPresent{Field: u.Data, Name: "Data"},
	), nil
}
func ( u * UserProfile ) Validate ( tx * pop . Connection ) ( * validate . Errors , error ) { return validate . Validate ( & validators . StringIsPresent { Field : u . Provider , Name : " " } , & validators . StringIsPresent { Field : u . ProviderID , Name : " " } , & validators . EmailIsPresent { Field : u . Email . String , Name : " " } , & validators . StringIsPresent { Field : u . Data , Name : " " } , ) , nil }
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
Validate gets run every time you call a " pop . Validate * " ( pop . ValidateAndSave pop . ValidateAndCreate pop . ValidateAndUpdate ) method .