['required', 'integer', 'min:1'], 'page' => ['nullable', 'integer', 'min:1'], 'per_page' => ['nullable', 'integer', 'min:1', 'max:100'], // A comment to land on, for `#comment-N` deep links. Pages are // otherwise only reachable in sequence from the first, and which one // holds a given comment depends on the sort — so the client cannot // work it out without walking every page. When set it decides the // page and `page` is ignored. 'focus' => ['nullable', 'integer', 'min:1'], // Validated against the allowed set in the controller (no "in" rule // is available in this validator). 'sort' => ['nullable', 'string'], ]; } }