-
orval
orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
On the frontend we can use the OpenAPI docs to generate the TS types for our data structures. Not only types but fetch functions as well as react-query hook can be generated as well. And in this blog post you can see how to do that with a library called Orval.
I just want to plug our open source library (https://phero.dev) which goes full on the "End-to-end Typescript" part, but without the need for OpenAPI specs. As you know, maintaining an OpenAPI spec by hand can be a very tedious task. We at Phero, rather write models and code, and let tools such as Phero generate specs and docs. Instead of the other way around. We believe models are the most important part of your codebase.