We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b85af commit f2e0f3eCopy full SHA for f2e0f3e
spec/grape/validations/params_scope_spec.rb
@@ -479,6 +479,22 @@ def initialize(value)
479
end.to_not raise_error
480
end
481
482
+ it 'does not raise an error if when using nested given' do
483
+ expect do
484
+ subject.params do
485
+ optional :a, type: Hash do
486
+ requires :b
487
+ end
488
+ given :a do
489
+ requires :c
490
+ given :c do
491
+ requires :d
492
493
494
495
+ end.to_not raise_error
496
497
+
498
it 'allows aliasing of dependent parameters' do
499
subject.params do
500
optional :a
0 commit comments