fix: fallback for importers and fix spelling

This commit is contained in:
nivedin
2023-12-14 18:39:42 +05:30
committed by Andrew Bastin
parent b521604b66
commit 8d5ad2411b
4 changed files with 8 additions and 2 deletions

View File

@@ -199,6 +199,8 @@ const getHoppFolder = (
getHoppFolder(f, resources)
),
requests: getRequestsIn(folderRes, resources).map(getHoppRequest),
auth: { authType: "inherit", authActive: true },
headers: [],
})
const getHoppCollections = (doc: InsomniaDoc) =>

View File

@@ -592,6 +592,8 @@ const convertOpenApiDocToHopp = (
name,
folders: [],
requests: paths,
auth: { authType: "inherit", authActive: true },
headers: [],
}),
])
}

View File

@@ -292,6 +292,8 @@ const getHoppFolder = (ig: ItemGroup<Item>): HoppCollection =>
A.map(getHoppFolder)
),
requests: pipe(ig.items.all(), A.filter(isPMItem), A.map(getHoppRequest)),
auth: { authType: "inherit", authActive: true },
headers: [],
})
export const getHoppCollection = (coll: PMCollection) => getHoppFolder(coll)