Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/quantumsheep/swagger-schema-extractor
- Owner: quantumsheep
- License: mit
- Created: 2020-12-04T11:48:15.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-07T09:58:09.000Z (almost 4 years ago)
- Last Synced: 2024-10-05T13:34:51.174Z (about 1 month ago)
- Topics: openapi, openapi3, swagger, types, typescript
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```