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/assets/json-schema-faker.js b/assets/json-schema-faker.js index 58a990943..f0d7380d1 100644 --- a/assets/json-schema-faker.js +++ b/assets/json-schema-faker.js @@ -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 @@ -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']; 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",