Skip to content

Commit

Permalink
Merge branch 'v7-alpha' into v7-alpha-unify-keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Aug 22, 2020
2 parents 2483969 + f098b51 commit cf35765
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/dot/definitions.def
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@

{{## def.nonEmptySchema:_schema:
(it.opts.strictKeywords
? typeof _schema == 'object' && Object.keys(_schema).length > 0
? (typeof _schema == 'object' && Object.keys(_schema).length > 0)
|| _schema === false
: it.util.schemaHasRules(_schema, it.RULES.all))
#}}

Expand Down
7 changes: 6 additions & 1 deletion spec/boolean.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ describe("boolean schemas", () => {
var ajvs

before(() => {
ajvs = [new Ajv(), new Ajv({allErrors: true}), new Ajv({inlineRefs: false})]
ajvs = [
new Ajv(),
new Ajv({allErrors: true}),
new Ajv({inlineRefs: false}),
new Ajv({strictKeywords: true}),
]
})

describe("top level schema", () => {
Expand Down

0 comments on commit cf35765

Please sign in to comment.