Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openapi-to-postmanv2

Package Overview
Dependencies
Maintainers
7
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-to-postmanv2 - npm Package Compare versions

Comparing version 4.8.1-beta.1 to 4.9.0

5

CHANGELOG.md
# OpenAPI-Postman Changelog
#### v4.9.0 (February 06, 2023)
* Fixed issue [#660](https://github.com/postmanlabs/openapi-to-postman/issues/660) where for certain XML request bodies, conversion was failing with TypeError.
* Fixed issue where for some definitions having non-string URLs were failing conversion with TypeErrors.
* Fixed issue where a test in-consistently kept failing due to uncertainity of jsf library.
#### v4.8.0 (January 24, 2023)

@@ -4,0 +9,0 @@ * Added specifictionVersion field to validate result.

6

lib/31XUtils/schemaUtils31X.js

@@ -128,3 +128,3 @@ const inputValidation31X = require('./inputValidation31X'),

else if (hasProperties) {
const schemaProperties = Object.keys(schema.properties);
const schemaProperties = _.keys(schema.properties);
schemaProperties.forEach((property) => {

@@ -145,3 +145,3 @@ schema.properties[property] = this.fixExamplesByVersion(schema.properties[property]);

isBinaryContentType (bodyType, contentObj) {
return Object.keys(contentObj[bodyType]).length === 0 && fileUploadTypes.includes(bodyType);
return _.keys(contentObj[bodyType]).length === 0 && fileUploadTypes.includes(bodyType);
},

@@ -157,3 +157,3 @@

const resolvedSchema = _.cloneDeep(refSchema),
outerKeys = Object.keys(outerProps);
outerKeys = _.keys(outerProps);

@@ -160,0 +160,0 @@ if (_.isObject(resolvedSchema) && _.isObject(outerProps)) {

var _ = require('lodash');
const { formatDataPath } = require('../common/schemaUtilsCommon'),
// Mismatch severities
SEVERITY = {
INFO: 'info',
LOG: 'log',
WARNING: 'warning',
ERROR: 'error'
};
const { formatDataPath } = require('../common/schemaUtilsCommon');

@@ -31,4 +24,3 @@ /**

`${ajvValidationErrorObj.message}`,
reasonCode: 'INVALID_TYPE',
severity: SEVERITY.ERROR
reasonCode: 'INVALID_TYPE'
};

@@ -40,3 +32,2 @@

mismatchObj.reasonCode = 'MISSING_IN_SCHEMA';
mismatchObj.severity = SEVERITY.WARNING;
break;

@@ -56,3 +47,2 @@

`property "${_.get(ajvValidationErrorObj, 'params.missingProperty')}"`;
mismatchObj.severity = SEVERITY.ERROR;
break;

@@ -59,0 +49,0 @@

@@ -50,3 +50,3 @@ /* eslint-disable */

else {
childNodes += propVal;
childNodes += _.isString(propVal) ? propVal : '';
}

@@ -70,3 +70,3 @@ });

schemaItemsWithXmlProps.xml = schema.xml;
contents = convertSchemaToXML(arrayElemName, schemaItemsWithXmlProps, false, indentChar, indent + extraIndent) +
contents = convertSchemaToXML(arrayElemName, schemaItemsWithXmlProps, false, indentChar, indent + extraIndent) +
convertSchemaToXML(arrayElemName, schemaItemsWithXmlProps, false, indentChar, indent + extraIndent);

@@ -73,0 +73,0 @@ if (isWrapped) {

{
"name": "openapi-to-postmanv2",
"version": "4.8.1-beta.1",
"version": "4.9.0",
"description": "Convert a given OpenAPI specification to Postman Collection v2.0",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/postmanlabs/openapi-to-postman",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc