lib/reporter.js
function extractSchemaLabel(schema, limit) {
		limit = typeof limit === 'undefined' ? strimLimit : limit;
		var label = '';
		if (schema.id) {
			label = style.accent(schema.id);
		}
		if (schema.title) {
			label += style.accent(label ? ' (' + schema.title + ')' : style.accent(schema.title));
		}

		if (!label) {
			if (schema.description) {
				label = style.accent('<no id>') + ' ' + valueStrim(schema.description, limit);
			}
			else {
				label = style.accent('<no id>') + ' ' + valueStrim(schema, limit);
			}
		}
		return label;
	}
function extractSchemaLabel(schema, limit) {
		limit = typeof limit === 'undefined' ? strimLimit : limit;
		var label = '';
		if (schema.id) {
			label = style.accent(schema.id);
		}
		if (schema.title) {
			label += style.accent(label ? ' (' + schema.title + ')' : style.accent(schema.title));
		}

		if (!label) {
			if (schema.description) {
				label = style.accent('<no id>') + ' ' + valueStrim(schema.description, limit);
			}
			else {
				label = style.accent('<no id>') + ' ' + valueStrim(schema, limit);
			}
		}
		return label;
	}
function extractSchemaLabel ( schema , limit ) { limit = typeof limit === 'undefined' ? strimLimit : limit ; var label = '' ; if ( schema . id ) { label = style . accent ( schema . id ) ; } if ( schema . title ) { label += style . accent ( label ? ' (' + schema . title + ')' : style . accent ( schema . title ) ) ; } if ( ! label ) { if ( schema . description ) { label = style . accent ( '<no id>' ) + ' ' + valueStrim ( schema . description , limit ) ; } else { label = style . accent ( '<no id>' ) + ' ' + valueStrim ( schema , limit ) ; } } return label ; }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - best-effort
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - best - effort