ErikWittern / openapi-snippet

Generates code snippets for given Swagger / Open API documents
MIT License
116 stars 67 forks source link

Don't work with yaml from URL #28

Open axpira opened 4 years ago

axpira commented 4 years ago

I tried this:

const targets = [ 'node_unirest', 'c', 'java', 'shell_curl', 'shell_httpie', 'go' ]
const results = SwaggerSnippet.getSwaggerSnippets('http://localhost:3000/static/openapi.yaml', targets) 

And returned a empty array.

How can I use read a specification from URL?

Thanks