Skip to content

Commit 5e0af24

Browse files
authored
Fix example to work (#852)
1 parent db76f42 commit 5e0af24

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
* [#850](https://github.com/ruby-grape/grape-swagger/pull/850): Fix value of `enum` to be `Array` - [@takahashim](https://github.com/takahashim)
66
* [#846] (https://github.com/ruby-grape/grape-swagger/pull/846): Fixes oapi rake tasks, allows generating sepcs for different API versions.
7+
* [#852](https://github.com/ruby-grape/grape-swagger/pull/852): Fix example to work without error - [@takahashim](https://github.com/takahashim)
8+
* Your contribution here.
79

810
### 1.4.2 (October 22, 2021)
911

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ group :test do
3535

3636
gem 'ruby-grape-danger', '~> 0.2.0', require: false
3737
gem 'simplecov', require: false
38+
end
3839

40+
group :test, :development do
3941
unless ENV['MODEL_PARSER'] == 'grape-swagger-entity'
4042
gem 'grape-swagger-entity', git: 'https://github.com/ruby-grape/grape-swagger-entity'
4143
end

example/config.ru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
require 'rack/cors'
1+
Bundler.require ENV['RACK_ENV']
2+
23
use Rack::Cors do
34
allow do
45
origins '*'
@@ -12,7 +13,6 @@ require './api/endpoints'
1213
require './api/entities'
1314

1415
class Base < Grape::API
15-
require 'grape-entity'
1616
require '../lib/grape-swagger'
1717
format :json
1818

0 commit comments

Comments
 (0)