Put in order · NestJS course · Module 1: NestJS Basics

Validation with Joi Schema

Arrange the elements of the Joi schema validation for the PORT variable:

Items to put in order

  • PORT:
  • .default(3000)
  • Joi.number()
Show the answer

Correct order:

  1. PORT:
  2. Joi.number()
  3. .default(3000)