ruby-grape / grape-swagger

Add OAPI/swagger v2.0 compliant documentation to your grape API
MIT License
1.09k stars 471 forks source link

Should rack-test be considered an optional dependency? #908

Closed x-yuri closed 11 months ago

x-yuri commented 11 months ago

I'm running swagger-ui in a docker container by providing it a swagger.json file. Which I build with rake oapi:fetch. After switching from bundle install to bundle install --without test development I realized that grape-swagger needs rack-test, which is not in the dependencies. Do you want to add it to the dependencies? Or should I install it manually? Or I'm doing something wrong? On a side note, why does the rake task need rack-test?

LeFnord commented 11 months ago

yes … please add it to the runtime dependencies in gemspec, it is needed for the rake tasks