Skip to content

Commit f9d745f

Browse files
committed
Minor nits
1 parent 749a06c commit f9d745f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ const ajvOptions = /** @type {const} */ ({
6262
logger: false,
6363
useDefaults: true
6464
})
65+
6566
const ajv = new Ajv({
6667
...ajvOptions,
6768
removeAdditional: 'failing',
6869
})
6970

7071
const validate = ajv.compile(socketYmlSchema)
72+
7173
// We want to be strict and fail rather than removeAdditional when we parse a possible v1 config – only fallback to it when it actually matches well
7274
const ajvV1 = new Ajv({
7375
...ajvOptions

lib/v1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
/**
24
* @typedef SocketYmlV1
35
* @property {string[]} [ignore]

0 commit comments

Comments
 (0)