Skip to content

Commit c98b2f1

Browse files
authored
Merge pull request #1707 from mvasin/patch-2
Add link to the example
2 parents a029337 + ce3647b commit c98b2f1

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)