Skip to content

Commit 95484d5

Browse files
authored
Merge pull request #1720 from gencer/patch-1
added note for avoid using :default on exactly_one_of
2 parents c549d5e + 54f7e20 commit 95484d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,8 @@ params do
12991299
end
13001300
```
13011301

1302+
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.
1303+
13021304
#### `at_least_one_of`
13031305

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

0 commit comments

Comments
 (0)