UNPKG

@redocly/openapi-core

Version:

See https://github.com/Redocly/openapi-cli

21 lines (20 loc) 583 B
import { NormalizedProblem } from '../walk'; export declare type Totals = { errors: number; warnings: number; ignored: number; }; export declare type OutputFormat = 'codeframe' | 'stylish' | 'json' | 'checkstyle'; export declare function getTotals(problems: (NormalizedProblem & { ignored?: boolean; })[]): Totals; export declare function formatProblems(problems: (NormalizedProblem & { ignored?: boolean; })[], opts: { maxProblems?: number; cwd?: string; format?: OutputFormat; color?: boolean; totals: Totals; version: string; }): void;