Skip to content

Commit e03b371

Browse files
committed
Merge pull request ruby-grape#206 from adamgotterer/master
Fixed incorrect #requires name in validation documentation
2 parents e20d7d8 + dc7dad6 commit e03b371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ You can define validations and coercion options for your parameters:
203203

204204
```ruby
205205
params do
206-
required :id, type: Integer
206+
requires :id, type: Integer
207207
optional :name, type: String, regexp: /^[a-z]+$/
208208
end
209209
get ':id' do

0 commit comments

Comments
 (0)