Skip to content

Commit ce3647b

Browse files
author
Mikhail Vasin
authored
Add link to the example
The example referred is too far away to reference it without a link
1 parent 13a0e0c commit ce3647b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ client.get('/', status_codes: %w(1 two)) # => [1, "two"]
10381038
### Validation of Nested Parameters
10391039

10401040
Parameters can be nested using `group` or by calling `requires` or `optional` with a block.
1041-
In the above example, this means `params[:media][:url]` is required along with `params[:id]`,
1041+
In the [above example](#parameter-validation-and-coercion), this means `params[:media][:url]` is required along with `params[:id]`,
10421042
and `params[:audio][:format]` is required only if `params[:audio]` is present.
10431043
With a block, `group`, `requires` and `optional` accept an additional option `type` which can
10441044
be either `Array` or `Hash`, and defaults to `Array`. Depending on the value, the nested

0 commit comments

Comments
 (0)