From 40ccf6aa989d73cad0c92327b0ace41d5f611ef4 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Sat, 25 Mar 2017 00:35:52 -0700 Subject: [PATCH] Send spec url to swagger-client --- src/core/plugins/spec/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/plugins/spec/actions.js b/src/core/plugins/spec/actions.js index ed61f34a..5c731cc3 100644 --- a/src/core/plugins/spec/actions.js +++ b/src/core/plugins/spec/actions.js @@ -184,9 +184,9 @@ export const logRequest = (req) => { // Actually fire the request via fn.execute // (For debugging) and ease of testing -export const executeRequest = (req) => ({fn, specActions}) => { +export const executeRequest = (req) => ({fn, specActions, specSelectors}) => { let { pathName, method } = req - let parsedRequest = Object.assign({}, req) + let parsedRequest = Object.assign({ contextUrl: specSelectors.url() }, req) if ( pathName && method ) { parsedRequest.operationId = method.toLowerCase() + "-" + pathName }