Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
fix: API page parameter minimum value is 0. Fixes #9. [#9] [#9]
Browse files Browse the repository at this point in the history
  • Loading branch information
Shogun committed May 18, 2018
1 parent 27f7d28 commit a9eaae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/trail-hapi-plugin/lib/schemas/trails.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const trailSchema = {
.example('tar'),
page: Joi.number()
.description('The page of results to return')
.min(1)
.min(0)
.example(5),
pageSize: Joi.number()
.description('The number of results per page (default is 25)')
Expand All @@ -96,7 +96,7 @@ const trailSchema = {
.example('who'),
page: Joi.number()
.description('The page of results to return')
.min(1)
.min(0)
.example(5),
pageSize: Joi.number()
.description('The number of results per page (default is 25)')
Expand Down

0 comments on commit a9eaae5

Please sign in to comment.