Skip to content

Commit 470f80c

Browse files
authored
Merge pull request #2092 from huyvohcmc/improve-include-missing-doc
Improve include missing doc
2 parents e7e2501 + 3e57355 commit 470f80c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Your contribution here.
1010
* [#2089](https://github.com/ruby-grape/grape/pull/2089): Specify order of mounting Grape with Rack::Cascade in README - [@jonmchan](https://github.com/jonmchan).
1111
* [#2083](https://github.com/ruby-grape/grape/pull/2083): Set `Cache-Control` header only for streamed responses - [@stanhu](https://github.com/stanhu).
12+
* [#2092](https://github.com/ruby-grape/grape/pull/2092): Correct an example params in Include Missing doc - [@huyvohcmc](https://github.com/huyvohcmc).
1213

1314
### 1.4.0 (2020/07/10)
1415

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,8 +908,10 @@ By default `declared(params)` includes parameters that have `nil` values. If you
908908
format :json
909909

910910
params do
911-
requires :first_name, type: String
912-
optional :last_name, type: String
911+
requires :user, type: Hash do
912+
requires :first_name, type: String
913+
optional :last_name, type: String
914+
end
913915
end
914916

915917
post 'users/signup' do

0 commit comments

Comments
 (0)