Skip to content

Commit

Permalink
fix: propertyNames with empty schema, closes #861
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Sep 23, 2018
1 parent 70362b9 commit c1f929b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/dot/propertyNames.jst
Expand Up @@ -3,6 +3,8 @@
{{# def.setupKeyword }}
{{# def.setupNextLevel }}

var {{=$errs}} = errors;

{{? {{# def.nonEmptySchema:$schema }} }}
{{
$it.schema = $schema;
Expand All @@ -22,8 +24,6 @@
, $currentBaseId = it.baseId;
}}

var {{=$errs}} = errors;

{{? $ownProperties }}
var {{=$dataProperties}} = undefined;
{{?}}
Expand Down
1 change: 0 additions & 1 deletion spec/tests/issues/861_empty_propertynames.json
@@ -1,6 +1,5 @@
[
{
"skip": true,
"description": "propertyNames with empty schema (#861)",
"schema": {
"properties": {
Expand Down

0 comments on commit c1f929b

Please sign in to comment.