Top "Hapijs" questions

Hapi is a rich Node.

Hapijs and Joi: validate query params with presence: 'forbidden'

My goal is to create a index route for posts. User should be able to specify some query params (ie. …

javascript node.js hapijs joi
Multiple Joi validation types

I search a lot but nothing found to allow multiple type validation in Joi Link: https://github.com/hapijs/joi …

javascript node.js hapijs joi
Allow optional parameters in Joi without specifying them

I'm fairly new to using Joi to validate request payloads in hapi. My question is the following. I have this …

javascript node.js hapijs joi
Set default value of validation

I am using Joi to validate a payload of a service in my node.js server using hapijs framework. It …

javascript node.js typescript hapijs joi
How to use `pre` in route handler - hapi.js

I have to call a method using pre in a route. I am using hapi-request. I tried to use pre …

node.js routes hapijs
Hapi.js application architecture

I've been working on a hapi.js application and have the following architecture: Database --Models --usermodel.js --anothermodel.js Routes …

hapijs
joi validation: Set minimum array length conditionally

I have an array field which i would like to ensure that it has at least one element when a …

node.js hapijs
How to validate uploaded file size with Joi

I'm using Joi to validate requests. I'm wondering how should I validate uploaded file size with Joi. I'm sending many …

validation hapijs joi
AWS Cognito Mock

I want to write BDD tests for my nodejs based API which uses AWS cognito as user authentication service, but …

node.js amazon-web-services aws-sdk hapijs amazon-cognito
How should I use Swagger with Hapi?

I have a working ordinary Hapi application that I'm planning to migrate to Swagger. I installed swagger-node using the official …

node.js swagger hapijs