openapi-to-postmanv2
Advanced tools
Comparing version 4.8.1-beta.1 to 4.9.0
# 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. |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
1481081
38182