@redocly/cli
Version:
[@Redocly](https://redocly.com) CLI is your all-in-one API documentation utility. It builds, manages, improves, and quality-checks your API descriptions, all of which comes in handy for various phases of the API Lifecycle. Create your own rulesets to make
8 lines • 441 B
JavaScript
import { logger } from '@redocly/openapi-core';
import { red, yellow } from 'colorette';
export function duplicateTagDescriptionWarning(conflicts) {
const tagsKeys = conflicts.map(([tagName]) => `\`${tagName}\``);
const joinString = yellow(', ');
logger.warn(`\nwarning: ${tagsKeys.length} conflict(s) on the ${red(tagsKeys.join(joinString))} tags description.\n`);
}
//# sourceMappingURL=duplicate-tag-description-warning.js.map