We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 749a06c commit f9d745fCopy full SHA for f9d745f
index.js
@@ -62,12 +62,14 @@ const ajvOptions = /** @type {const} */ ({
62
logger: false,
63
useDefaults: true
64
})
65
+
66
const ajv = new Ajv({
67
...ajvOptions,
68
removeAdditional: 'failing',
69
70
71
const validate = ajv.compile(socketYmlSchema)
72
73
// 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
74
const ajvV1 = new Ajv({
75
...ajvOptions
lib/v1.js
@@ -1,3 +1,5 @@
1
+'use strict'
2
3
/**
4
* @typedef SocketYmlV1
5
* @property {string[]} [ignore]
0 commit comments