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

Unknown/unsupported Swagger version to validate against: #107

Open
aegixx opened this issue Apr 21, 2017 · 2 comments
Open

Unknown/unsupported Swagger version to validate against: #107

aegixx opened this issue Apr 21, 2017 · 2 comments

Comments

@aegixx
Copy link

aegixx commented Apr 21, 2017

Doesn't seem to be picking up the Swagger version correctly (notice no version is reported).

I get this even when loading https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v2.0/json/petstore-minimal.json

     Failure/Error: subject { Apivore::SwaggerChecker.instance_for('/swagger.json') }
     RuntimeError:
       Unknown/unsupported Swagger version to validate against:
@aegixx
Copy link
Author

aegixx commented Apr 21, 2017

Related to #64 though I get the error also when loading https://github.com/westfieldlabs/apivore/blob/master/spec/data/01_sample2.0.json

Running apivore (1.6.2)

@saneshark
Copy link

Are you changing the default rspec host used for requests from "www.example.com" to something else? This is the only change I've made and I'm having this issue. I think it must be a bug in apivore, it should support changing the host.

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

No branches or pull requests

2 participants