How do you generate OpenAPI JSON definition?

Bit of an update. There is a 3rd party repository of openapi definitions that has been collected. Some but not all of the 3rd party API’s I plan to use are in there. I tried to put a couple of them into dreamfactory service definition. Seems to more or less work based on limited testing.