You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's some duplication between getFullPath, getQueryStrings and getHeadersArray this can probably be solved by extracting all of the common logic into one method (Probably getQueryStrings) and then have getFullPath and getHeadersArray delegate to getQueryStrings and customize as needed. For example getFullPath needs to replace a parameter place holder with an actual value.
This can be seen here:
openapi-snippet/openapi-to-har.js
Lines 369 to 386 in 2e6c2c9
Another issue is that the
getFullPath
method assumes that only one or the other will have entries.openapi-snippet/openapi-to-har.js
Lines 335 to 338 in 2e6c2c9
Finally
getQueryStrings
appears to do it correctly and checks both:openapi-snippet/openapi-to-har.js
Lines 302 to 316 in 2e6c2c9
I don't think I'll fix this in #82 as that's too large already. This is just a defect I found while testing #82.
The text was updated successfully, but these errors were encountered: