MCPcopy
hub / github.com/pocketbase/pocketbase / Validate

Method Validate

core/app.go:355–355  ·  view source on GitHub ↗

Validate triggers the OnModelValidate hook for the specified model.

(model Model)

Source from the content-addressed store, hash-verified

353
354 // Validate triggers the OnModelValidate hook for the specified model.
355 Validate(model Model) error
356
357 // ValidateWithContext is the same as Validate but allows specifying the ModelEvent context.
358 ValidateWithContext(ctx context.Context, model Model) error

Callers 15

ParseUnverifiedJWTFunction · 0.65
parseAndVerifyIdTokenMethod · 0.65
parseIdTokenMethod · 0.65
FetchAuthUserMethod · 0.65
fetchPrimaryEmailMethod · 0.65
LaunchURLFunction · 0.65
ValidateValueMethod · 0.65
ValidateValueMethod · 0.65
checkRangeMethod · 0.65

Calls

no outgoing calls

Tested by 15

TestCollectionValidateFunction · 0.52
TestMFAPreValidateFunction · 0.52
TestMFAValidateHookFunction · 0.52
TestOTPPreValidateFunction · 0.52
TestOTPValidateHookFunction · 0.52
TestRecordValidateFunction · 0.52
TestValidateFunction · 0.52