Skip to content
/ oas-ts Public

Typescript Definitions for OpenAPI Specification

Notifications You must be signed in to change notification settings

byu-oit/oas-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oas-ts

Typescript definitions for the OpenAPI (and Swagger 2.0) specification.

Install

npm i @byu-oit/oas-ts

Usage

Most use cases only need to access either openapi OR swagger

import { OpenAPIObject } from '@byu-oit/oas-ts/openapi'
import { SwaggerObject } from '@byu-oit/oas-ts/swagger'

If you need to access both definitions within the same file, rename the exported object:

import * as OAS from '@byu-oit/oas-ts/openapi'
import * as Swagger form '@byu-oit/oas-ts/swagger'