Skip to content

Commit 40ccf6a

Browse files
committed
Send spec url to swagger-client
1 parent 2fd371b commit 40ccf6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/plugins/spec/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ export const logRequest = (req) => {
184184

185185
// Actually fire the request via fn.execute
186186
// (For debugging) and ease of testing
187-
export const executeRequest = (req) => ({fn, specActions}) => {
187+
export const executeRequest = (req) => ({fn, specActions, specSelectors}) => {
188188
let { pathName, method } = req
189-
let parsedRequest = Object.assign({}, req)
189+
let parsedRequest = Object.assign({ contextUrl: specSelectors.url() }, req)
190190
if ( pathName && method ) {
191191
parsedRequest.operationId = method.toLowerCase() + "-" + pathName
192192
}

0 commit comments

Comments
 (0)