AttributeValidationCode produces Go code that runs the validations defined in the given attribute against the value held by the variable named target. See ValidationCode for a description of the arguments.
(att *expr.AttributeExpr, put expr.UserType, attCtx *AttributeContext, req, alias bool, target, attName string)
| 64 | // |
| 65 | // See ValidationCode for a description of the arguments. |
| 66 | func AttributeValidationCode(att *expr.AttributeExpr, put expr.UserType, attCtx *AttributeContext, req, alias bool, target, attName string) string { |
| 67 | return recurseValidationCode(att, put, attCtx, req, alias, false, target, attName, nil).String() |
| 68 | } |
| 69 | |
| 70 | // ValidationCode produces Go code that runs the validations defined in the |
| 71 | // given attribute and its children recursively against the value held by the |
no test coverage detected