openapi-convert
v1.1.4
Published
Convert OpenAPI 3.0 specifications to TypeScript code. This tool is designed to work with Apifox exports.
Downloads
32
Readme
openapi-convert
Convert OpenAPI 3.0 specifications to TypeScript code. This tool is designed to work with Apifox exports.
Start with vite-vanilla-ts-lib-starter
Usage
The starter contains the following scripts:
dev- starts dev serverbuild- generates the following bundles: CommonJS (.cjs) ESM (.mjs) and IIFE (.iife.js). The name of bundle is automatically taken frompackage.jsonname propertytest- starts vitest and runs all teststest:coverage- starts vitest and run all tests with code coverage reportlint:scripts- lint.tsfiles with eslintlint:styles- lint.cssand.scssfiles with stylelintformat:scripts- format.ts,.htmland.jsonfiles with prettierformat:styles- format.csand.scssfiles with stylelintformat- format all with prettier and stylelintprepare- script for setting up husky pre-commit hookuninstall-husky- script for removing husky from repository
TODO
- [x] Implement generation of basic interfaces and enums
- [ ] Implement generation of request functions
- [ ] Implement descriptions and other jsdoc
- [ ] Implement command line instructions
- [ ] Optimize configurability
- [ ] Improve test cases
