MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / ValidateContext

Method ValidateContext

pkg/ttnpb/user_validators.go:25–27  ·  view source on GitHub ↗

ValidateContext wraps the generated validator with (optionally context-based) custom checks.

(context.Context)

Source from the content-addressed store, hash-verified

23
24// ValidateContext wraps the generated validator with (optionally context-based) custom checks.
25func (req *GetUserRequest) ValidateContext(context.Context) error {
26 return req.ValidateFields()
27}
28
29// ValidateContext wraps the generated validator with (optionally context-based) custom checks.
30func (m *UpdateUserRequest) ValidateContext(context.Context) error {

Callers

nothing calls this directly

Calls 1

ValidateFieldsMethod · 0.95

Tested by

no test coverage detected