Socket
Book a DemoInstallSign in
Socket

@apimatic/schema

Package Overview
Dependencies
Maintainers
5
Versions
28
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 schemas for different types, along with serialization information and conversion to standard JSON Schemas.

0.7.21-alpha.0
latest
Source
npmnpm
Version published
Maintainers
5
Created
Source

APIMatic Schema Library for JavaScript SDKs

This package provides utilities for creating schemas for different types, along with serialization information and conversion to standard JSON Schemas.

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.
  • Conversion to JSON Schema: Convert any described schema into a standard JSON Schema. For more details, see this document.

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 04 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.