Skip to content

Commit 268b1dd

Browse files
committed
Fix an issue with examples calculations
1 parent 384afea commit 268b1dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/schemaUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ module.exports = {
294294
numberOfRefs = (specString.match(/\$ref/g) || []).length;
295295

296296
// Number of times `example` is present
297-
numberOfExamples = (specString.match(/\$example/g) || []).length;
297+
numberOfExamples = (specString.match(/example/g) || []).length;
298298
}
299299

300300
return {

0 commit comments

Comments
 (0)