mcp-swagger-parser
Version:
Enterprise-grade OpenAPI/Swagger specification parser for Model Context Protocol (MCP) projects
42 lines • 861 B
TypeScript
/**
* Validation and error types used across the parser
*/
/**
* Validation error information
*/
export interface ValidationError {
code: string;
message: string;
path: string;
line?: number;
column?: number;
context?: any;
severity: 'error';
}
/**
* Validation warning information
*/
export interface ValidationWarning {
code: string;
message: string;
path: string;
line?: number;
column?: number;
context?: any;
severity: 'warning';
}
/**
* Validation result containing errors and warnings
*/
export interface ValidationResult {
valid: boolean;
isValid: boolean;
errors: ValidationError[];
warnings: ValidationWarning[];
metadata?: {
validationTime: number;
rulesApplied: string[];
[key: string]: any;
};
}
//# sourceMappingURL=validation.d.ts.map