joolfe / postman-to-openapi

🛸 Convert postman collection to OpenAPI
MIT License
599 stars 105 forks source link

Components section missing. #87

Closed asifadn8 closed 3 years ago

asifadn8 commented 3 years ago

Upon converting the collection to OpenApi the "components" section is missing, is there a way that it can also be generated upon conversion.

joolfe commented 3 years ago

Hi @asifadn8,

At this moment the unique element supported inside components is the securitySchemes that are automatically created if you use one of the supported auth method described in docs.

What is exactly your use case? there are a lot of elements that can be set up inside components but as explained in OpenAPI docs "will have no effect on the API unless they are explicitly referenced", so depending of what you need more part of espec should be modified.

asifadn8 commented 3 years ago

Hi @joolfe, Ansswer for "What is exactly your use case?" ==> schemas;parameters & requestBodies.

joolfe commented 3 years ago

There are already several issues for that, see #22 , #23 , #26 .... Allow to add "components" in openapi will not solve the provlem as we need to link with the postman sections for this reason are in A&D, but are in mind.