Skip to content
Snippets Groups Projects
Commit 467ffeb2 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

hardcode generate max 1 entry for arrays

parent 6c728d04
Branches
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ function arrayType(value, path, resolve, traverseCallback) {
const optionalsProbability = optionAPI('alwaysFakeOptionals') === true ? 1.0 : optionAPI('optionalsProbability');
const fixedProbabilities = optionAPI('alwaysFakeOptionals') || optionAPI('fixedProbabilities') || false;
let length = random.number(minItems, maxItems, 1, 5);
let length = random.number(minItems, maxItems, 1, 1);
if (optionalsProbability !== false) {
length = Math.max(fixedProbabilities
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment