Skip to content

Commit

Permalink
finalllyyyy
Browse files Browse the repository at this point in the history
  • Loading branch information
ItshMoh committed Sep 7, 2024
1 parent a8ece8f commit 56c8f4f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/postman-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ export const converters: Record<string, ConvertPostmanFunction > = {
'3.0.0': from_postman_to_asyncapi
}

const openapi = transpile(collection);

function from_postman_to_asyncapi(postman: any ,options:PostmanToAsyncAPIOptions ={}) {
const perspective = options.perspective;
const openapi = transpile(postman);
const asyncapi = from_openapi_to_asyncapi(openapi , {perspective:perspective});
return asyncapi;
}

const output = from_postman_to_asyncapi(collection);

}

0 comments on commit 56c8f4f

Please sign in to comment.