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

Support multiple methods for loading a swagger document. #100

Open
ashoda opened this issue Jan 3, 2017 · 3 comments
Open

Support multiple methods for loading a swagger document. #100

ashoda opened this issue Jan 3, 2017 · 3 comments
Assignees
Labels

Comments

@ashoda
Copy link
Collaborator

ashoda commented Jan 3, 2017

There are various requests around supporting loading swagger docs by different means.
Current behavior

  • Load JSON from a path relative to the application

Requested:

  • Load YAML from a path relative to the application
  • Load JSON from local file
  • JSON string

It'd make sense for us to look at the various request to determine the ideal approach to makes loading a swagger doc a bit more flexible.

My initial thought is to add support for a Hash or a JSON string in addition to what we currently support, which would afford people enough flexibility to decide how they'd like to load the swagger doc.

cc: @gwshaw @jreece1567

@jreece1567
Copy link

@ashoda Agreed. I think Apivore should support both YAML and JSON, loaded in all of the requested ways ...

  • From a path relative to the application (an HTTP/S path)
  • From a local file
  • From a string

cc: @gwshaw

@ben-axnick
Copy link

ben-axnick commented Apr 26, 2017

@ashoda I have proposed #106 as a solution.

@philsturgeon
Copy link

Kinda taken care of in #118 which adds YAML, as it also pulls in #87 which supports local files.

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

No branches or pull requests

4 participants