How to use the perPage function from joi

Find comprehensive JavaScript joi.perPage code examples handpicked from public code repositorys.

25
26
27
28
29
30
31
32
33
34
35
}


searchPhases.schema = {
  criteria: Joi.object().keys({
    page: Joi.page(),
    perPage: Joi.perPage().default(100),
    name: Joi.string()
  })
}

fork icon44
star icon17
watch icon25

26
27
28
29
30
31
32
33
34
35
36
}


searchTimelineTemplates.schema = {
  criteria: Joi.object().keys({
    page: Joi.page(),
    perPage: Joi.perPage(),
    name: Joi.string()
  })
}

fork icon44
star icon17
watch icon25