westfieldlabs / apivore

Tests your rails API against its Swagger description of end-points, models, and query parameters.
Apache License 2.0
213 stars 66 forks source link

You are setting a key that conflicts with a built-in method Apivore::Swagger#version #114

Open MiralDesai opened 6 years ago

MiralDesai commented 6 years ago

Rest of the error:

/$userpath/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/apivore-1.6.2/lib/apivore/swagger.rb:19.

I assume it's talking about this line in my request spec:

subject { Apivore::SwaggerChecker.instance_for('/docs/swagger.json') }

However to me it looks like it's setup exactly as the docs suggest. Seems like a bug with the gem.

wvengen commented 6 years ago

See https://github.com/omniauth/omniauth/issues/872 for what looks like a similar issue in Omniauth.