Skip to content
Snippets Groups Projects
Commit fdd16b1e authored by Alvaro Cabrera's avatar Alvaro Cabrera
Browse files

Shuffle before merge; fixes #179

parent 87de2d2e
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -37,7 +37,7 @@ var objectType: FTypeGenerator = function objectType(value: IObjectSchema, path, ...@@ -37,7 +37,7 @@ var objectType: FTypeGenerator = function objectType(value: IObjectSchema, path,
var min = Math.max(value.minProperties || 0, requiredProperties.length); var min = Math.max(value.minProperties || 0, requiredProperties.length);
var max = Math.max(value.maxProperties || random.number(min, min + 5)); var max = Math.max(value.maxProperties || random.number(min, min + 5));
patternPropertyKeys.concat(propertyKeys).forEach(function(_key) { random.shuffle(patternPropertyKeys.concat(propertyKeys)).forEach(function(_key) {
if (requiredProperties.indexOf(_key) === -1) { if (requiredProperties.indexOf(_key) === -1) {
requiredProperties.push(_key); requiredProperties.push(_key);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment