openapi-fuzzer-core
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "openapi-fuzzer-core", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A library to generate random requests based on open-api specifications.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -204,6 +204,10 @@ const { klona } = require("klona"); | ||
fuzzStringParam(parameter, nonPrimitives) { | ||
let values = []; | ||
if (nonPrimitives) { | ||
return [10, true, {}, null, []]; | ||
values = values.concat([10, true, {}, null, []]); | ||
} | ||
return []; | ||
if (parameter.minLength > 0) { | ||
values.push(''); | ||
} | ||
return values; | ||
} | ||
@@ -210,0 +214,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11303
292