🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@scalar/openapi-types

Package Overview
Dependencies
Maintainers
8
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/openapi-types

Modern OpenAPI types

latest
Source
npmnpm
Version
0.8.0
Version published
Maintainers
8
Created
Source

Scalar OpenAPI Types

Version Downloads License Discord

Strict, well-documented OpenAPI TypeScript types based on official JSON Schemas, with specification links in comments.

Installation

npm add @scalar/openapi-types

Versions

  • OpenAPI 3.2
  • OpenAPI 3.1
  • OpenAPI 3.0
  • Swagger 2.0

Usage

import type { Document } from '@scalar/openapi-types/3.2'

const file: Document = {
  openapi: '3.2.0',
  info: {
    title: 'Hello World',
    version: '1.0.0',
  },
  paths: {},
}

Individual Exports

If your bundler doesn't work with barrel files, you can explicitly import objects, too:

import type { Document } from '@scalar/openapi-types/3.2/document'

const file: Document = {
  openapi: '3.2.0',
  info: {
    title: 'Hello World',
    version: '1.0.0',
  },
  paths: {},
}

Community

We are API nerds. You too? Let's chat on Discord: https://discord.gg/scalar

License

The source code in this repository is licensed under MIT.

Keywords

openapi

FAQs

Package last updated on 21 Apr 2026

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