Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/quantumsheep/swagger-schema-extractor

Extract Swagger (OpenAPI) schemas into TypeScript types
https://github.com/quantumsheep/swagger-schema-extractor

openapi openapi3 swagger types typescript

Last synced: 17 days ago
JSON representation

Extract Swagger (OpenAPI) schemas into TypeScript types

Awesome Lists containing this project

README

        

[![npm](https://img.shields.io/npm/v/swagger-schema-extractor)](https://www.npmjs.com/package/swagger-schema-extractor)

# Swagger Schema Extractor
Extract OpenAPI schemas into TypeScript types.

## Usage
### OpenAPI v3
```bash
npx swagger-schema-extractor http://localhost:3000/openapi.json > types.ts
```

### OpenAPI v2
```bash
npx swagger-schema-extractor http://localhost:3000/v2/swagger.json > types.ts
```