Send spec url to swagger-client

This commit is contained in:
Kyle Shockey
2017-03-25 00:35:52 -07:00
parent 2fd371bb36
commit 40ccf6aa98

View File

@@ -184,9 +184,9 @@ export const logRequest = (req) => {
// Actually fire the request via fn.execute // Actually fire the request via fn.execute
// (For debugging) and ease of testing // (For debugging) and ease of testing
export const executeRequest = (req) => ({fn, specActions}) => { export const executeRequest = (req) => ({fn, specActions, specSelectors}) => {
let { pathName, method } = req let { pathName, method } = req
let parsedRequest = Object.assign({}, req) let parsedRequest = Object.assign({ contextUrl: specSelectors.url() }, req)
if ( pathName && method ) { if ( pathName && method ) {
parsedRequest.operationId = method.toLowerCase() + "-" + pathName parsedRequest.operationId = method.toLowerCase() + "-" + pathName
} }