Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const util = require('./util');
const traverse = require('json-schema-traverse');
const path = require('path');
traverse.skipKeywords.discriminator = true;
const folders = util.getFolders();
const stats = [];
const USAGE = {
boolSchema: 'boolean schema',
patternPropsAndProps: 'patternProperties and properties',
additionalPropsSchema: 'additionalProperties is schema',
additionalPropsSchemaAndProps: 'additionalProperties schema and properties',
itemsArray: 'items is array of schemas'
};
setUsageStats();
for (const folder of folders) {
const folderName = path.basename(folder);
if (folderName.indexOf('.template') === 0) continue;