Skip to content

Commit

Permalink
added note for mutually_exclusive params
Browse files Browse the repository at this point in the history
  • Loading branch information
gencer committed Dec 20, 2017
1 parent c549d5e commit 54f7e20
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 54f7e20

Please sign in to comment.