Skip to content

Commit

Permalink
Merge pull request #159 from joolfe/develop
Browse files Browse the repository at this point in the history
fix error when response header is null
  • Loading branch information
joolfe authored Oct 3, 2021
2 parents 39f0b41 + b09ed9d commit f9c6b7f
Show file tree
Hide file tree
Showing 7 changed files with 611 additions and 335 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
### [1.17.5](https://github.com/joolfe/postman-to-openapi/compare/1.17.4...1.17.5) (2021-10-03)


### Bug Fixes

* Avoid error when some versions of postman export response header with null value. close [#152](https://github.com/joolfe/postman-to-openapi/issues/152) ([8eb6861](https://github.com/joolfe/postman-to-openapi/commit/8eb68619ef5a2cc1f952d9a516e45ee3c1047ab8))


### Build System

* update deps ([69e3397](https://github.com/joolfe/postman-to-openapi/commit/69e339772de486f2cfd99f6da0765d95f9a667b3))
* update version ([921f9bd](https://github.com/joolfe/postman-to-openapi/commit/921f9bdbf0270cccb380a2fd0d8a1160323976f6))

### [1.17.4](https://github.com/joolfe/postman-to-openapi/compare/1.17.3...1.17.4) (2021-09-24)


Expand Down
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ function parseResponseHeaders (headerArray, responseHeaders) {
if (!responseHeaders) {
return {}
}
headerArray = headerArray || []
const headers = headerArray.reduce((acc, { key, value }) => {
acc[key] = {
schema: {
Expand Down
Loading

0 comments on commit f9c6b7f

Please sign in to comment.