🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@apimatic/schema

Package Overview
Dependencies
Maintainers
6
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apimatic/schema

This package provides utilities for creating schema for different types, along with serialization information.

latest
Source
npmnpm
Version
0.7.21
Version published
Maintainers
6
Created
Source

APIMatic Schema Library for JavaScript SDKs

This package provides utilities for creating schema for different types, along with serialization information.

The exported functionality includes:

  • Bidirectional Data Transformation & Validation: Transforms data between external API formats (JSON/XML) and internal TypeScript types, validates before mapping or unmapping, and reports errors with detailed path information.
  • Object Schema Variants: Offers strict, flexible, and expandable object parsing options, including support for typing additional properties.
  • Schema Modifiers & Utilities: Supports optional and nullable values, array and dictionary validation, default values, and constant value schemas.
  • Union Type Handling: Enables exclusive (oneOf) and inclusive (anyOf) unions, along with discriminated unions for efficient schema selection.
  • XML Processing: Maps XML attributes and elements, supports custom naming, and provides specialized XML validation and transformation methods.
  • Core Validation Functions: Validates and maps/unmaps JSON and XML for serialization and deserialization.

This library is used by JavaScript SDKs generated by the APIMatic Code Generator. For details on supported platforms and build artifacts, see the Build and Usage Section.

FAQs

Package last updated on 30 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts