Skip to content

Commit 369bf9b

Browse files
committed
fix tests
1 parent 416b570 commit 369bf9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swagger-to-har.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ var getQueryStrings = function (swagger, path, method, values) {
152152
value = values[param.name] + '' /* adding a empty string to convert to string */
153153
} else if (typeof param.default !== 'undefined') {
154154
value = param.default + ''
155-
} else if (typeof param.schema.example !== 'undefined') {
155+
} else if (typeof param.schema !== 'undefined' && typeof param.schema.example !== 'undefined') {
156156
value = param.schema.example + ''
157157
}
158158
queryStrings.push({

0 commit comments

Comments
 (0)