UNPKG

@flamesshield/rules-engine

Version:

Independent rules engine for security analysis of Firebase

30 lines 879 B
/** * Validation types for rule validation system * * These types support validating rules against EnrichedProjectInformation * to ensure rules reference valid paths and use correct operators. */ export interface ValidationResult { isValid: boolean; errors: ValidationError[]; warnings: ValidationWarning[]; } export interface ValidationError { type: 'INVALID_PATH' | 'INVALID_OPERATOR' | 'TYPE_MISMATCH' | 'MISSING_REQUIRED_FIELD'; message: string; path?: string; rule?: string; location?: string; } export interface ValidationWarning { type: 'DEPRECATED_PATH' | 'PERFORMANCE_CONCERN'; message: string; path?: string; suggestion?: string; } export interface RuleValidationContext { availablePaths: Set<string>; typeMap: Map<string, string>; deprecatedPaths: Set<string>; } //# sourceMappingURL=validation.d.ts.map