func (m *Meal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	var res []error

	if err := m.contextValidateIngredients(ctx, formats); err != nil {
		res = append(res, err)
	}

	if err := m.contextValidateTags(ctx, formats); err != nil {
		res = append(res, err)
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
// ContextValidate validate this meal based on the context it is used
ContextValidate validate this meal based on the context it is used
// ContextValidate validate this meal based on the context it is used
func (m *Meal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	var res []error
	if err := m.contextValidateIngredients(ctx, formats); err != nil {
		res = append(res, err)
	}
	if err := m.contextValidateTags(ctx, formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func ( m * Meal ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error { var res [ ] error if err := m . contextValidateIngredients ( ctx , formats ) ; err != nil { res = append ( res , err ) } if err := m . contextValidateTags ( ctx , formats ) ; err != nil { res = append ( res , err ) } if len ( res ) > 0 { return errors . CompositeValidationError ( res ... ) } return nil }
ContextValidate validate this meal based on the context it is used
ContextValidate validate this meal based on the context it is used