diff --git a/openapi-to-har.js b/openapi-to-har.js index 2d9daf2..1f0d556 100644 --- a/openapi-to-har.js +++ b/openapi-to-har.js @@ -227,8 +227,8 @@ const createHarParameterObjects = function ( } const objects = []; - style = style ?? getDefaultStyleForLocation(location); - explode = explode ?? getDefaultExplodeForStyle(style); + style = (style !== null && style !== undefined) ? style : getDefaultStyleForLocation(location); + explode = (explode !== null && explode !== undefined) ? explode : getDefaultExplodeForStyle(style); if (location === 'query' || location === 'cookie') { const separator = getArrayElementSeparator(style);