Skip to content

Commit

Permalink
Merge pull request #725 from postmanlabs/release/v4.13.0
Browse files Browse the repository at this point in the history
Release version v4.13.0
  • Loading branch information
Dhwaneet Bhatt authored May 24, 2023
2 parents 2d3d0bf + ddcb412 commit 856428a
Show file tree
Hide file tree
Showing 19 changed files with 4,772 additions and 160 deletions.
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

## [Unreleased]

## [v4.13.0] - 2023-05-24

### Added

- Added support for generating request and response bodies in correct XML format from mentioned examples.
- Added support for validation of specifications in case of errors to report User input errors correctly.

### Fixed

- Fixed issue where conversion was stuck for certain schemas with pattern.
- Fixed an issue where definition validation was not considering multiple white space characters.
- Fixed issue [#708](https://github.com/postmanlabs/openapi-to-postman/issues/708) where if string is defined for required field, conversion was failing.
- Fixed issue where for certain path segments, collection generation failed.
- Fixed TypeError occurring while checking typeof bodyContent in getXmlVersionContent.

## [v4.12.0] - 2023-05-04

### Added
Expand Down Expand Up @@ -547,7 +562,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/v4.12.0...HEAD
[Unreleased]: https://github.com/postmanlabs/openapi-to-postman/compare/v4.13.0...HEAD

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

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

Expand Down
6 changes: 4 additions & 2 deletions assets/json-schema-faker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23846,8 +23846,10 @@ function extend() {
/**
* CHANGE: This Makes sure that we're not adding extra spaces in generated value,
* As such behaviour generates invalid data when pattern is mentioned.
*
* To avoid infinite loop, make sure we keep adding spaces in cases where value is empty string
*/
value += (schema.pattern ? '' : ' ') + value;
value += ((schema.pattern && value.length !== 0) ? '' : ' ') + value;
}
if (value.length > max) {
value = value.substr(0, max);
Expand Down Expand Up @@ -24256,7 +24258,7 @@ function extend() {

const properties = value.properties || {};
const patternProperties = value.patternProperties || {};
const requiredProperties = typeof value.required === 'boolean' ? [] : (value.required || []).slice();
const requiredProperties = (!Array.isArray(value.required)) ? [] : (value.required || []).slice();
const allowsAdditional = value.additionalProperties !== false;

const propertyKeys = Object.keys(properties);
Expand Down
Loading

0 comments on commit 856428a

Please sign in to comment.