ValidateContext wraps the generated validator with (optionally context-based) custom checks.
(context.Context)
| 22 | |
| 23 | // ValidateContext wraps the generated validator with (optionally context-based) custom checks. |
| 24 | func (p *MACPayload) ValidateContext(context.Context) error { |
| 25 | if h := p.GetFHdr(); h == nil || types.MustDevAddr(h.DevAddr).OrZero().IsZero() { |
| 26 | return errMissing("DevAddr") |
| 27 | } |
| 28 | return p.ValidateFields() |
| 29 | } |
| 30 | |
| 31 | // ValidateContext wraps the generated validator with (optionally context-based) custom checks. |
| 32 | func (p *JoinRequestPayload) ValidateContext(context.Context) error { |
nothing calls this directly
no test coverage detected