Socket
Socket
Sign inDemoInstall

@apimatic/schema

Package Overview
Dependencies
1
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apimatic/schema

> This library is currently in preview.


Version published
Maintainers
4
Install size
347 kB
Created

Readme

Source

APIMatic Schema Libary for JavaScript

This library is currently in preview.

Provides utilities for creating schema for different types, along with serialization information.

These schema can later be used to:

  1. Validate data against schema.
  2. Prepare data for serialization to JSON or XML.
  3. Convert deserialized JSON or XML data to the schema type.
  4. Provide strong-typing in TypeScript for untrusted/untyped data.

This library is used by JavaScript SDKs generated by the APIMatic Code Generator.

Builds

The following environments are supported:

  1. Node.js v10+
  2. Bundlers like Rollup or Webpack
  3. Web browsers

To support multiple environments, we export various builds:

EnvironmentUsage
Common.jsImport like this: require('@apimatic/schema').
ES ModuleImport like this: import { /* your imports */ } from '@apimatic/schema'.
Browsers*Use script: https://unpkg.com/@apimatic/schema@VERSION/umd/schema.js
Modern Browsers (supports ESM and uses modern JS)*Use script: https://unpkg.com/@apimatic/schema@VERSION/umd/schema.esm.js

* Don't forget to replace VERSION with the version number.

Note: We discourage importing files or modules directly from the package. These are likely to change in the future and should not be considered stable.

FAQs

Last updated on 04 Apr 2024

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc