mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Converting pathVariable descriptions to string when an object is generated
This commit is contained in:
@@ -1556,8 +1556,17 @@ module.exports = {
|
||||
item.request.url.variables.clear();
|
||||
item.request.url.variables.assimilate(this.convertPathVariables('param', pathVarArray, reqParams.path,
|
||||
components, options));
|
||||
// TODO: There is a bug in Postman that causes these request descriptions
|
||||
// to be converted as "object Object"
|
||||
|
||||
// Making sure description never goes out as an object
|
||||
// App / Collection transformer fail with the object syntax
|
||||
if (item.request.url.variables.members && item.request.url.variables.members.length > 0) {
|
||||
item.request.url.variables.members = _.map(item.request.url.variables.members, (m) => {
|
||||
if (typeof m.description === 'object' && m.description.content) {
|
||||
m.description = m.description.content;
|
||||
}
|
||||
return m;
|
||||
});
|
||||
}
|
||||
|
||||
// adding headers to request from reqParam
|
||||
_.forEach(reqParams.header, (header) => {
|
||||
|
||||
Reference in New Issue
Block a user