fix: fallback for importers and fix spelling
This commit is contained in:
@@ -173,7 +173,7 @@
|
|||||||
"name_length_insufficient": "Collection name should be at least 3 characters long",
|
"name_length_insufficient": "Collection name should be at least 3 characters long",
|
||||||
"new": "New Collection",
|
"new": "New Collection",
|
||||||
"order_changed": "Collection Order Updated",
|
"order_changed": "Collection Order Updated",
|
||||||
"properties":"Colection Properties",
|
"properties":"Collection Properties",
|
||||||
"properties_updated": "Collection Properties Updated",
|
"properties_updated": "Collection Properties Updated",
|
||||||
"renamed": "Collection renamed",
|
"renamed": "Collection renamed",
|
||||||
"request_in_use": "Request in use",
|
"request_in_use": "Request in use",
|
||||||
|
|||||||
@@ -199,6 +199,8 @@ const getHoppFolder = (
|
|||||||
getHoppFolder(f, resources)
|
getHoppFolder(f, resources)
|
||||||
),
|
),
|
||||||
requests: getRequestsIn(folderRes, resources).map(getHoppRequest),
|
requests: getRequestsIn(folderRes, resources).map(getHoppRequest),
|
||||||
|
auth: { authType: "inherit", authActive: true },
|
||||||
|
headers: [],
|
||||||
})
|
})
|
||||||
|
|
||||||
const getHoppCollections = (doc: InsomniaDoc) =>
|
const getHoppCollections = (doc: InsomniaDoc) =>
|
||||||
|
|||||||
@@ -592,6 +592,8 @@ const convertOpenApiDocToHopp = (
|
|||||||
name,
|
name,
|
||||||
folders: [],
|
folders: [],
|
||||||
requests: paths,
|
requests: paths,
|
||||||
|
auth: { authType: "inherit", authActive: true },
|
||||||
|
headers: [],
|
||||||
}),
|
}),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -292,6 +292,8 @@ const getHoppFolder = (ig: ItemGroup<Item>): HoppCollection =>
|
|||||||
A.map(getHoppFolder)
|
A.map(getHoppFolder)
|
||||||
),
|
),
|
||||||
requests: pipe(ig.items.all(), A.filter(isPMItem), A.map(getHoppRequest)),
|
requests: pipe(ig.items.all(), A.filter(isPMItem), A.map(getHoppRequest)),
|
||||||
|
auth: { authType: "inherit", authActive: true },
|
||||||
|
headers: [],
|
||||||
})
|
})
|
||||||
|
|
||||||
export const getHoppCollection = (coll: PMCollection) => getHoppFolder(coll)
|
export const getHoppCollection = (coll: PMCollection) => getHoppFolder(coll)
|
||||||
|
|||||||
Reference in New Issue
Block a user