joolfe / postman-to-openapi

🛸 Convert postman collection to OpenAPI
MIT License
612 stars 107 forks source link

Use postman-to-openapi package in the postman #99

Closed rishipurwar1 closed 3 years ago

rishipurwar1 commented 3 years ago

Hello @joolfe Is there any way to use this package in the postman app?

I tried some solutions but nothing works for me. Any ideas on how to use this package in the postman.

Sorry for creating an issue😔

joolfe commented 3 years ago

Hi @rishipurwar1, you mean to execute the library forma postman script section? What si exactly what you are trying to do?

rishipurwar1 commented 3 years ago

@joolfe Yes! I want to execute this library from the postman test script section. I want to make a collection so, we can generate an OpenAPI from the postman collection using this library right from the postman.

joolfe commented 3 years ago

I'm afraid that you cannot import libraries from postman script, you can only import the sandbox libraries in a postman script, you can have a look here. As a workaround you can copy and paste all the library code (also dependencies code) inside a postman script section and try to make it work but I think is not going to be easy, just an idea.