Skip to content

Commit 980fac4

Browse files
committed
improved output for readability
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 8cddfe5 commit 980fac4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/src/test/js/json-schema-lint-tests.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ for (const bomSchemaFile of bomSchemas) {
7777
const strict = cdxVersion >= [1, 5]
7878
? true
7979
: 'log'
80-
console.debug('> strict:', strict)
80+
console.debug('> strict: ', strict)
8181
const ajv = getAjv(strict)
8282

8383
if (cdxVersion[0] === 1 && cdxVersion[1] === 2) {
@@ -95,15 +95,17 @@ for (const bomSchemaFile of bomSchemas) {
9595
continue
9696
}
9797

98+
console.group(`> compile schema, log warnings ...`)
9899
try {
99100
ajv.compile(bomSchema)
100101
} catch (err) {
101102
++errCnt
103+
console.groupEnd()
102104
console.error(`!!! SCHEMA ERROR: ${err}`)
103105
continue
104106
}
105-
106-
console.log('> OK.')
107+
console.groupEnd()
108+
console.log('> SCHEMA OK.')
107109
}
108110

109111
// Exit statuses should be in the range 0 to 254.

0 commit comments

Comments
 (0)