add-malli-schemas

Official

Add Malli schemas consistently to APIs.

Authormetabase
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Efficiently add Malli schemas to API endpoints in the Metabase codebase with proper patterns, validation timing, and error handling.

Core Features & Use Cases

  • Route params have schemas
  • Query params have schemas with :optional true and :default where appropriate
  • Request body has a schema (for POST/PUT)
  • Response schema is defined (using :- after route string)
  • Use existing schema types from ms namespace when possible
  • Consider creating named schemas for reusable or complex types
  • Add contextual error messages for validation failures

Quick Start

Add a Malli schema to an endpoint, then attach to the endpoint macro; test by invoking the endpoint to verify validation.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-malli-schemas
Download link: https://github.com/metabase/metabase/archive/main.zip#add-malli-schemas

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository