yusenthebot

joi

Object schema validation. Use when: runtime type validation; schema definition and inference; form and API input validation. NOT for: database ORM operations; API endpoint routing.

yusenthebot 0 Updated 3mo ago
GitHub

Install

npx skillscat add yusenthebot/skills-pack/joi

Install via the SkillsCat registry.

SKILL.md

joi

Overview

Object schema validation. # joi #### The most powerful schema description language and data validator for JavaScript.

Installation

npm install joi

Core API / Usage

import joi from 'joi';

// See official documentation for complete API reference
// https://www.npmjs.com/package/joi

Common Patterns

Refer to the official documentation for common patterns, recipes, and advanced usage examples.

Configuration

See the official documentation for configuration options and advanced settings.

Tips & Gotchas

  • Current version: 18.0.2. Check the changelog when upgrading across major versions.
  • Refer to the official npm page for edge cases and advanced configuration.