Validate triggers the OnModelValidate hook for the specified model.
(model Model)
| 232 | |
| 233 | // Validate triggers the OnModelValidate hook for the specified model. |
| 234 | func (app *BaseApp) Validate(model Model) error { |
| 235 | return app.ValidateWithContext(context.Background(), model) |
| 236 | } |
| 237 | |
| 238 | // ValidateWithContext is the same as Validate but allows specifying the ModelEvent context. |
| 239 | func (app *BaseApp) ValidateWithContext(ctx context.Context, model Model) error { |
nothing calls this directly
no test coverage detected