package validation import ( "context" "meteor-compute-service/internal/models" ) // Validator interface defines the contract for event validation // DEPRECATED: Use ValidationProvider interface instead type Validator interface { Validate(ctx context.Context, rawEvent *models.RawEvent) (*models.ValidationResult, error) } // MVPValidator implements a basic pass-through validation for MVP // DEPRECATED: Use MVPValidationProvider through the provider factory instead type MVPValidator struct { provider ValidationProvider } // NewMVPValidator creates a new MVP validator instance // DEPRECATED: Use NewMVPValidationProvider() through the provider factory instead func NewMVPValidator() *MVPValidator { return &MVPValidator{ provider: NewMVPValidationProvider(), } } // Validate performs basic validation on a raw event // DEPRECATED: This method now delegates to the new ValidationProvider system func (v *MVPValidator) Validate(ctx context.Context, rawEvent *models.RawEvent) (*models.ValidationResult, error) { return v.provider.Validate(ctx, rawEvent) } // ValidationDetails represents the detailed validation information // This type is now defined in mvp_provider.go and classic_cv_provider.go // Kept here for backward compatibility type ValidationDetails struct { Algorithm string `json:"algorithm"` Version string `json:"version"` ValidationSteps []ValidationStep `json:"validation_steps"` Metadata map[string]interface{} `json:"metadata"` } // ValidationStep represents a single validation step // This type is now defined in mvp_provider.go and classic_cv_provider.go // Kept here for backward compatibility type ValidationStep struct { Name string `json:"name"` Description string `json:"description"` Passed bool `json:"passed"` Details map[string]interface{} `json:"details,omitempty"` Error string `json:"error,omitempty"` }