Skip to content

Commit 71adbfb

Browse files
committed
Fixed nested objects in inline JSON schemas.
1 parent 1012129 commit 71adbfb

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- fixed markdown parser
66
- improved parsing `<links>` in the markdown parser
7+
- fixed nested objects in JSON schemas
78

89
========================
910
0.0.99

jsonschema.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,10 @@ function check_object(meta, error, value, response, stop, definitions, path, par
553553
if (newerror.items.length) {
554554
for (var err of newerror.items)
555555
error.push(ref.$$ID + '.' + err, '@');
556-
} else
556+
} else {
557557
response[key] = tmp;
558+
count++;
559+
}
558560
continue;
559561
} else
560562
continue;

0 commit comments

Comments
 (0)