Skip to content

Commit 2990dcb

Browse files
Update openapi-to-har.js
ErikWittern#91
1 parent cfe92a0 commit 2990dcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openapi-to-har.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ const createHarParameterObjects = function (
227227
}
228228

229229
const objects = [];
230-
style = style ?? getDefaultStyleForLocation(location);
231-
explode = explode ?? getDefaultExplodeForStyle(style);
230+
style = (style !== null && style !== undefined) ? style : getDefaultStyleForLocation(location);
231+
explode = (explode !== null && explode !== undefined) ? explode : getDefaultExplodeForStyle(style);
232232

233233
if (location === 'query' || location === 'cookie') {
234234
const separator = getArrayElementSeparator(style);

0 commit comments

Comments
 (0)