Skip to content
Merged
Changes from all 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
9 changes: 7 additions & 2 deletions assets/json-schema-faker.js
Original file line number Diff line number Diff line change
Expand Up @@ -24547,7 +24547,12 @@ function extend() {
* @returns {string}
*/
function thunkGenerator(min, max) {
if (min === void 0) { min = 0; }
// For properties of type string without any specified examples or detailed properties,
// we want the generated value to be called "string".
// Hence our wordsGenerator returns a fixed array of ['string']. To help with the same,
// we set the fallback min length value as "6" since we don't want the value to be
// "strin", "st", "s" etc.
if (min === void 0) { min = 6; }
if (max === void 0) { max = 140; }
var min = Math.max(0, min), max = random.number(min, max), result = produce();
// append until length is reached
Expand Down Expand Up @@ -24629,7 +24634,7 @@ function extend() {
'json-pointer': `(/(?:${FRAGMENT.replace(']*', '/]*')}|~[01]))+`,

// some types from https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#data-types (?)
uuid: '^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$',
uuid: '^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$',
};

regexps.iri = regexps['uri-reference'];
Expand Down
Loading