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.
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 joiCore API / Usage
import joi from 'joi';
// See official documentation for complete API reference
// https://www.npmjs.com/package/joiCommon 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.