/CSVToOpenAPI

Nodejs TypesScript program to convert a CSV to an OpenAPI (aka Swagger) YAML spec

Primary LanguageTypeScript

Nodejs TypesScript program to convert a CSV to an OpenAPI (aka Swagger) YAML spec

This is useful if you get a data dump as a starting point for creating new API consumers and/or producer endpoints.

To use, clone this repo:

git clone https://github.com/SumitBando/CSVToOpenAPI
cd CSVToOpenAPI

Install dependencies

pnpm i

Use as

node CSVToOpenAPI yourfile.csv

If using Vscode, start Typescript transpiler task with Cmd-Shift-B