Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions assets/json-schema-faker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23620,9 +23620,9 @@ function extend() {

var ALL_TYPES = ['array', 'object', 'integer', 'number', 'string', 'boolean', 'null'];
var MOST_NEAR_DATETIME = 2524608000000;
var MIN_INTEGER = -100000000;
var MAX_INTEGER = 100000000;
var MIN_NUMBER = -100;
Comment thread
jatin3893 marked this conversation as resolved.
var MIN_INTEGER = 0;
var MAX_INTEGER = 10000;
var MIN_NUMBER = 0;
var MAX_NUMBER = 100;
var env = {
ALL_TYPES: ALL_TYPES,
Expand Down Expand Up @@ -24261,11 +24261,7 @@ function extend() {
return generated > 0 ? Math.floor(generated) : Math.ceil(generated);
};

var LIPSUM_WORDS = ('Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore'
+ ' et dolore magna aliqua Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea'
+ ' commodo consequat Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla'
+ ' pariatur Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est'
+ ' laborum').split(' ');
var LIPSUM_WORDS = ('string').split(' ');
/**
* Generates randomized array of single lorem ipsum words.
*
Expand Down Expand Up @@ -24452,6 +24448,8 @@ function extend() {
minProps = Math.max(optionalsProbability === null || additionalProperties ? random.number(fillProps ? 1 : 0, max) : 0, min);
}

let postFix = 0;

while (fillProps) {
if (!(patternPropertyKeys.length || allowsAdditional)) {
break;
Expand Down Expand Up @@ -24490,7 +24488,7 @@ function extend() {
current += 1;
}
} else {
const word = get(requiredProperties) || (wordsGenerator(1) + hash());
const word = get(requiredProperties) || ('key_' + postFix++);

if (!props[word]) {
props[word] = additionalProperties || anyType;
Expand Down
Loading