From a7c171c0b3555d339d64af49db8755ab74671a14 Mon Sep 17 00:00:00 2001 From: Jatin Parekh Date: Fri, 22 Aug 2025 19:37:32 +0530 Subject: [PATCH 1/3] CUE-6067: Make faker data generation more deterministic --- assets/json-schema-faker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/json-schema-faker.js b/assets/json-schema-faker.js index 58a990943..b811a4c5e 100644 --- a/assets/json-schema-faker.js +++ b/assets/json-schema-faker.js @@ -24547,7 +24547,7 @@ function extend() { * @returns {string} */ function thunkGenerator(min, max) { - if (min === void 0) { min = 0; } + 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 @@ -24629,7 +24629,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']; From 79fdbb05cd721e67f7b418c8fbd94465047e59bf Mon Sep 17 00:00:00 2001 From: Jatin Parekh Date: Mon, 25 Aug 2025 13:27:09 +0530 Subject: [PATCH 2/3] CUE-6067: Add a comment to explain the 6 --- assets/json-schema-faker.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/json-schema-faker.js b/assets/json-schema-faker.js index b811a4c5e..f0d7380d1 100644 --- a/assets/json-schema-faker.js +++ b/assets/json-schema-faker.js @@ -24547,6 +24547,11 @@ function extend() { * @returns {string} */ function thunkGenerator(min, max) { + // 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(); From e633884d2fe68511d62b3347649feb4c47610906 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 25 Aug 2025 09:46:20 +0000 Subject: [PATCH 3/3] Prepare release v5.0.2 --- CHANGELOG.md | 6 +++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 931753a58..f5236fdbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [v5.0.2] - 2025-08-25 + ## [v5.0.1] - 2025-07-22 ## [v5.0.0] - 2025-03-07 @@ -657,7 +659,9 @@ Newer releases follow the [Keep a Changelog](https://keepachangelog.com/en/1.0.0 - Base release -[Unreleased]: https://github.com/postmanlabs/openapi-to-postman/compare/v5.0.1...HEAD +[Unreleased]: https://github.com/postmanlabs/openapi-to-postman/compare/v5.0.2...HEAD + +[v5.0.2]: https://github.com/postmanlabs/openapi-to-postman/compare/v5.0.1...v5.0.2 [v5.0.1]: https://github.com/postmanlabs/openapi-to-postman/compare/v5.0.0...v5.0.1 diff --git a/package-lock.json b/package-lock.json index 289a562ba..58d953957 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "openapi-to-postmanv2", - "version": "5.0.1", + "version": "5.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openapi-to-postmanv2", - "version": "5.0.1", + "version": "5.0.2", "license": "Apache-2.0", "dependencies": { "ajv": "8.11.0", diff --git a/package.json b/package.json index 5ef0fe46f..7eb56e196 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openapi-to-postmanv2", - "version": "5.0.1", + "version": "5.0.2", "description": "Convert a given OpenAPI specification to Postman Collection v2.0", "homepage": "https://github.com/postmanlabs/openapi-to-postman", "bugs": "https://github.com/postmanlabs/openapi-to-postman/issues",