Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line tool cannot accept a URL #27

Open
Cloudmersive opened this issue May 13, 2018 · 5 comments
Open

Command line tool cannot accept a URL #27

Cloudmersive opened this issue May 13, 2018 · 5 comments

Comments

@Cloudmersive
Copy link

Try running this command:

snc https://api.cloudmersive.com/specs/allapis.json

Expected: Works

Observed: Fails with stack trace

@fmvilas
Copy link
Owner

fmvilas commented May 13, 2018

Right now the CLI only accepts files, not URLs. I agree that it would be a nice feature. A PR would be appreciated.

@jaspreetsingh2701
Copy link

Any updates?

@fmvilas
Copy link
Owner

fmvilas commented Jul 25, 2018

Not yet. I'm working on something new this week. I'll try to include this feature as well. I'll keep you informed.

@fmvilas
Copy link
Owner

fmvilas commented Jul 27, 2018

@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.

@crhistianramirez
Copy link

crhistianramirez commented Jun 8, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants