Open Cloudmersive opened 6 years ago
Right now the CLI only accepts files, not URLs. I agree that it would be a nice feature. A PR would be appreciated.
Any updates?
Not yet. I'm working on something new this week. I'll try to include this feature as well. I'll keep you informed.
@Cloudmersive @jaspreetsingh2701 I recently created a new package to generate anything using OpenAPI 3, and it supports specifying a URL: https://www.npmjs.com/package/openapi3-generator
Let me know if it suits your needs.
What if we replace our homegrown parsing with this lib? https://github.com/APIDevTools/swagger-parser. Apart from handling external urls it is well supported, handles v2/v3 formats, yml/json, dereferencing and more
I'd be happy to give this a shot if that sounds ok?
Try running this command:
snc https://api.cloudmersive.com/specs/allapis.json
Expected: Works
Observed: Fails with stack trace