func needsValidation(n *gen.Type) bool {
	for _, f := range n.Fields {
		if f.Validators > 0 {
			return true
		}
	}
	return false
}
// needsValidation returns if a type needs validation because there is some defined on one of its fields.
needsValidation returns if a type needs validation because there is some defined on one of its fields.
// needsValidation returns if a type needs validation because there is some defined on one of its fields .
func needsValidation(n *gen.Type) bool {
	for _, f := range n.Fields {
		if f.Validators > 0 {
			return true
		}
	}
	return false
}
func needsValidation ( n * gen . Type ) bool { for _ , f := range n . Fields { if f . Validators > 0 { return true } } return false }
needsValidation returns if a type needs validation because there is some defined on one of its fields.
needsValidation returns if a type needs validation because there is some defined on one of its fields .