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 b77324b commit b39adb3Copy full SHA for b39adb3
lib/validate.js
@@ -10,12 +10,12 @@ const ajv = new Ajv({
10
addFormats(ajv)
11
const validator = ajv.getSchema(schemas.default.$id)
12
13
-function coerceArgsToArray(object) {
+function coerceArgsToArray (object) {
14
if (object && typeof object === 'object') {
15
return Object.fromEntries(Object.entries(object).map(([key, value]) => {
16
- if(value === null) {
+ if (value === null) {
17
value = []
18
- } else if(!Array.isArray(value)){
+ } else if (!Array.isArray(value)) {
19
value = [value]
20
}
21
0 commit comments