Skip to content

Commit

Permalink
Merge pull request #1720 from gencer/patch-1
Browse files Browse the repository at this point in the history
added note for avoid using :default on exactly_one_of
  • Loading branch information
dblock authored Dec 20, 2017
2 parents c549d5e + 54f7e20 commit 95484d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,8 @@ params do
end
```

Note that using `:default` with `mutually_exclusive` will cause multiple parameters to always have a default value and raise a `Grape::Exceptions::Validation` mutually exclusive exception.

#### `at_least_one_of`

Parameters can be defined as 'at_least_one_of', ensuring that at least one parameter gets selected.
Expand Down

0 comments on commit 95484d5

Please sign in to comment.