Skip to content

Commit 202fbea

Browse files
authored
Update schemaUtils.js
1 parent 2a393cb commit 202fbea

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
@@ -634,7 +634,7 @@ module.exports = {
634634
Object.assign(specComponentsAndUtils, concreteUtils.getRequiredData(spec));
635635

636636
for (path in paths) {
637-
if (paths.hasOwnProperty(path) && paths[path] && typeof paths[path] === 'object') {
637+
if (paths.hasOwnProperty(path) && typeof paths[path] === 'object' && paths[path]) {
638638
currentPathObject = paths[path];
639639

640640
// discard the leading slash, if it exists

0 commit comments

Comments
 (0)