(parent *AttributeExpr)
| 816 | } |
| 817 | |
| 818 | func (a *AttributeExpr) inheritValidations(parent *AttributeExpr) { |
| 819 | if parent.Validation == nil { |
| 820 | return |
| 821 | } |
| 822 | if a.Validation == nil { |
| 823 | a.Validation = &ValidationExpr{} |
| 824 | } |
| 825 | a.Validation.AddRequired(parent.Validation.Required...) |
| 826 | } |
| 827 | |
| 828 | func (a *AttributeExpr) shouldInherit(parent *AttributeExpr) bool { |
| 829 | return a != nil && AsObject(a.Type) != nil && |
no test coverage detected