fix: tiny issues with importers
This commit is contained in:
@@ -180,7 +180,7 @@ const getHoppReqParams = (req: InsomniaRequestResource): HoppRESTParam[] =>
|
||||
const getHoppRequest = (req: InsomniaRequestResource): HoppRESTRequest =>
|
||||
makeRESTRequest({
|
||||
name: req.name ?? "Untitled Request",
|
||||
method: req.method ?? "GET",
|
||||
method: req.method?.toUpperCase() ?? "GET",
|
||||
endpoint: replaceVarTemplating(req.url ?? ""),
|
||||
auth: getHoppReqAuth(req),
|
||||
body: getHoppReqBody(req),
|
||||
|
||||
@@ -531,8 +531,8 @@ const convertPathToHoppReqs = (
|
||||
// Construct request object
|
||||
RA.map(({ method, info }) =>
|
||||
makeRESTRequest({
|
||||
name: info.operationId ?? "Untitled Request",
|
||||
method,
|
||||
name: info.operationId ?? info.summary ?? "Untitled Request",
|
||||
method: method.toUpperCase(),
|
||||
endpoint: `<<baseUrl>>${replaceOpenApiPathTemplating(pathName)}`, // TODO: Make this proper
|
||||
|
||||
// We don't need to worry about reference types as the Dereferencing pass should remove them
|
||||
|
||||
@@ -214,7 +214,7 @@ const getHoppRequest = (item: Item): HoppRESTRequest => {
|
||||
return makeRESTRequest({
|
||||
name: item.name,
|
||||
endpoint: getHoppReqURL(item),
|
||||
method: item.request.method,
|
||||
method: item.request.method.toUpperCase(),
|
||||
headers: getHoppReqHeaders(item),
|
||||
params: getHoppReqParams(item),
|
||||
auth: getHoppReqAuth(item),
|
||||
|
||||
Reference in New Issue
Block a user