diff --git a/plugins/importer-openapi/src/index.ts b/plugins/importer-openapi/src/index.ts index 8ba281a8..ee1cc66f 100644 --- a/plugins/importer-openapi/src/index.ts +++ b/plugins/importer-openapi/src/index.ts @@ -31,5 +31,7 @@ export async function pluginHookImport( return undefined; } + // console.log("HELLO", JSON.stringify(postmanCollection, null, 1)); + return pluginHookImportPostman(ctx, JSON.stringify(postmanCollection)); } diff --git a/plugins/importer-postman/src/index.ts b/plugins/importer-postman/src/index.ts index 57263d2a..f946ce8b 100644 --- a/plugins/importer-postman/src/index.ts +++ b/plugins/importer-postman/src/index.ts @@ -168,7 +168,7 @@ function importAuth( function importBody(rawBody: any): Pick { const body = toRecord(rawBody); - if ('graphql' in body) { + if (body.mode === 'graphql') { return { headers: [ { @@ -186,7 +186,7 @@ function importBody(rawBody: any): Pick