mnahkies / openapi-code-generator

A code generation tool for openapi 3 / 3.1 specifications written in typescript, primarily aimed at generating typescript clients and server stubs. Other target languages may be added in future.
https://openapi-code-generator.nahkies.co.nz/
MIT License
17 stars 2 forks source link

support typespec as an input format #148

Closed mnahkies closed 4 months ago

mnahkies commented 5 months ago

https://typespec.io/ seems like a pretty cool alternative specification language to openapi

they have API's that transpile it to OpenAPI 3, so it should be pretty trivial to support it as alternative input specification.

(ref: https://typespec.io/docs/libraries/openapi3/reference/js-api/functions/getOpenAPI3)

separately, I've been experimenting in private with SQL database schema + query AST introspection to produce zod schemas for a given SQL query, and toying with the idea of incorporating that into this project as another input source (alternatively since that's reasonably out of scope of the current project, separating some of the components I want to reuse from here into packages might make more sense)

mnahkies commented 4 months ago

Released in 0.9.0