Validate validates the provided field argument.
(v string)
| 60 | |
| 61 | // Validate validates the provided field argument. |
| 62 | func (a *Argument) Validate(v string) bool { |
| 63 | if a.ValidationFunc == nil { |
| 64 | return true |
| 65 | } |
| 66 | return a.ValidationFunc(v) |
| 67 | } |
| 68 | |
| 69 | // IsDeprecated determines if the field is deprecated. |
| 70 | func (f FieldInfo) IsDeprecated() bool { return f.Deprecation != nil } |