0.0.4 • Published 11 months ago
openapi-nitro v0.0.4
openapi-nitro
Generate a unjs/nitro routes dirs from an OpenAPI spec
How to Use
$ pnpm dlx openapi-nitro ./openapi.yaml -o ./routes
$ tree routes/
routes/
└── pets
├── [petId]
│ ├── index.delete.ts
│ ├── index.get.ts
│ └── toys
│ └── index.get.ts
├── index.get.ts
└── index.post.ts
Comman line Options
$ pnpm dlx openapi-nitro --help
Generator nitro routes from OpenAPI (openapi-nitro v0.0.1) 7:25:17
USAGE openapi-nitro [OPTIONS] [INPUT]
ARGUMENTS
INPUT="./openapi.yaml" Input OpenAPI file path
OPTIONS
-o, --output="./routes" Output dir path
Used Packages
- @apidevtools/swagger-parser ... OpenAPI parser/validator
- openapi3-ts ... TypeScript library to help building OpenAPI 3.x
- unjs/citty ... CLI Builder
- unjs/unbuild ... bundler
Inspired Packages
- typed-openapi ... generator API Client and Scheme, Model from OpenAPI spec
- typebox-codegen ... transform TypeScript to valibot, zod, etc.
License
0.0.2-rc.20240905110419
11 months ago
0.0.3
11 months ago
0.0.4
11 months ago
0.0.2-rc.20240901094200
11 months ago
0.0.2
11 months ago
0.0.1-rc.20240812085609
11 months ago
0.0.1-rc.20240812074603
11 months ago
0.0.1
11 months ago
0.0.1-rc.20240812072021
11 months ago
0.0.1-rc.20240812070251
11 months ago
0.0.1-rc.20240812070153
11 months ago
0.0.1-rc.20240812065614
11 months ago