Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@stackmeister/openapi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackmeister/openapi

@stackmeister/openapi ==========================

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

@stackmeister/openapi

Typing and utilities for OpenAPI, mostly focused on 3.x versions.

Install

// Yarn
yarn add @stackmeister/openapi

// NPM
npm i @stackmeister/openapi

TypeScript typings are included (No @types/ package needed)

Usage

This library consists of types, mostly. Soon there will also be factories.

import type { Document } from '@stackmeister/openapi'

const spec: Document = {
  openapi: '3.0',
  info: {
    // From here on, just follow auto-completion
  }
}

For every structure that exists in the OpenAPI 3 spec, there will be a fitting type in here, including complex schema typing through @stackmeister/json-schema

FAQs

Package last updated on 09 Nov 2022

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