Skip to content

Commit 856428a

Browse files
author
Dhwaneet Bhatt
authored
Merge pull request #725 from postmanlabs/release/v4.13.0
Release version v4.13.0
2 parents 2d3d0bf + ddcb412 commit 856428a

19 files changed

+4772
-160
lines changed

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
## [Unreleased]
44

5+
## [v4.13.0] - 2023-05-24
6+
7+
### Added
8+
9+
- Added support for generating request and response bodies in correct XML format from mentioned examples.
10+
- Added support for validation of specifications in case of errors to report User input errors correctly.
11+
12+
### Fixed
13+
14+
- Fixed issue where conversion was stuck for certain schemas with pattern.
15+
- Fixed an issue where definition validation was not considering multiple white space characters.
16+
- Fixed issue [#708](https://github.com/postmanlabs/openapi-to-postman/issues/708) where if string is defined for required field, conversion was failing.
17+
- Fixed issue where for certain path segments, collection generation failed.
18+
- Fixed TypeError occurring while checking typeof bodyContent in getXmlVersionContent.
19+
520
## [v4.12.0] - 2023-05-04
621

722
### Added
@@ -547,7 +562,9 @@ Newer releases follow the [Keep a Changelog](https://keepachangelog.com/en/1.0.0
547562

548563
- Base release
549564

550-
[Unreleased]: https://github.com/postmanlabs/openapi-to-postman/compare/v4.12.0...HEAD
565+
[Unreleased]: https://github.com/postmanlabs/openapi-to-postman/compare/v4.13.0...HEAD
566+
567+
[v4.13.0]: https://github.com/postmanlabs/openapi-to-postman/compare/v4.12.0...v4.13.0
551568

552569
[v4.12.0]: https://github.com/postmanlabs/openapi-to-postman/compare/v4.11.0...v4.12.0
553570

assets/json-schema-faker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23846,8 +23846,10 @@ function extend() {
2384623846
/**
2384723847
* CHANGE: This Makes sure that we're not adding extra spaces in generated value,
2384823848
* As such behaviour generates invalid data when pattern is mentioned.
23849+
*
23850+
* To avoid infinite loop, make sure we keep adding spaces in cases where value is empty string
2384923851
*/
23850-
value += (schema.pattern ? '' : ' ') + value;
23852+
value += ((schema.pattern && value.length !== 0) ? '' : ' ') + value;
2385123853
}
2385223854
if (value.length > max) {
2385323855
value = value.substr(0, max);
@@ -24256,7 +24258,7 @@ function extend() {
2425624258

2425724259
const properties = value.properties || {};
2425824260
const patternProperties = value.patternProperties || {};
24259-
const requiredProperties = typeof value.required === 'boolean' ? [] : (value.required || []).slice();
24261+
const requiredProperties = (!Array.isArray(value.required)) ? [] : (value.required || []).slice();
2426024262
const allowsAdditional = value.additionalProperties !== false;
2426124263

2426224264
const propertyKeys = Object.keys(properties);

0 commit comments

Comments
 (0)