Skip to content

Commit

Permalink
fix: register separator keyword as array (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigaStrgar authored Mar 7, 2021
1 parent 599b627 commit 4b8b2cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const Ajv = require('ajv').default

const separator = {
keyword: 'separator',
type: 'string',
metaSchema: {
type: 'string',
Expand Down Expand Up @@ -50,9 +51,7 @@ const ajv = new Ajv({
useDefaults: true,
coerceTypes: true,
allowUnionTypes: true,
keywords: {
separator
}
keywords: [separator]
})

const optsSchemaValidator = ajv.compile(optsSchema)
Expand Down

0 comments on commit 4b8b2cf

Please sign in to comment.