data-mapping

Official

Turn API responses into typed models.

Authorzerobias-org
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Data mapping patterns enable transforming raw API responses into strongly-typed internal models, enforcing contracts and reducing runtime errors during data ingestion.

Core Features & Use Cases

  • Ensure required fields with consistent validation using ensureProperties()
  • Normalize optional fields with optional() to preserve legitimate falsy values
  • Convert and map primitive types with map() for DateTime, UUID, URL, and Email
  • Handle nested objects with mapWith() and dedicated helper mappers
  • Convert snake_case in API payloads to camelCase in code
  • Map enums with toEnum() for robust type safety in API integration
  • Support arrays by mapping items individually and applying appropriate type transforms

Quick Start

Provide a raw API response and request a strongly-typed model using to<Model> mappers to generate the internal representation.

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: data-mapping
Download link: https://github.com/zerobias-org/module/archive/main.zip#data-mapping

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.