Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teobler/openapi-schema
A tool for generating OpenAPI schema interface for typescript.
https://github.com/teobler/openapi-schema
api-integration openapi3 typescript-library
Last synced: 19 days ago
JSON representation
A tool for generating OpenAPI schema interface for typescript.
- Host: GitHub
- URL: https://github.com/teobler/openapi-schema
- Owner: teobler
- Created: 2020-03-16T09:22:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-18T20:55:18.000Z (over 2 years ago)
- Last Synced: 2024-12-05T18:44:35.264Z (about 1 month ago)
- Topics: api-integration, openapi3, typescript-library
- Language: TypeScript
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenAPI-schema
this tool is built for generating typescript interface of OpenAPI schema.json file is from [OpenAPI-Specification](https://github.com/OAI/OpenAPI-Specification/tree/master/schemas/v3.0), you can also find yaml file there, thanks for the maintenance.
## NOTE
this tool only for OpenAPI **v3.0.x** now## install
```bash
npm install -D @openapi-integration/openapi-schema
```## use
```javascript
import { Spec } from "@openapi-integration/openapi-schema";console.log(Spec);
```## How to Start
1. clone repo to your local
2. `npm i`
3. modify code to what you want
4. `npm run generate` to generate new interface for typescript