# OpenAPI Spec

TypeScript types, a downgrader and a router for OpenAPI 3.0, 3.1 and 3.2. Types carry the spec text as JSDoc, the downgrader converts 3.2 to 3.1 to 3.0, and the router matches requests against path templates like /planets/{id}.

Type: Library
Category: Coding
Source: https://github.com/middleapi/openapi-spec
Version: 0.7.1
License or terms: MIT
Author: @middleapi

## Installation

Install the package you need:

npm install @openapi-spec/types       # TypeScript types for OpenAPI 3.0/3.1/3.2
npm install @openapi-spec/downgrader  # downgrade documents 3.2 -> 3.1 -> 3.0
npm install @openapi-spec/router      # match requests against OpenAPI path templates

## Manual setup

None declared.

## Pricing

Free and open source

## Review

Checked the MIT GitHub repository and the three npm packages named in the listing. The packages were not installed.
