Anyone know of frameworks that auto-generate OpenAPI/Swagger docs from types?

This page summarizes the projects mentioned and recommended in the original post on /r/typescript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • ts-app

    Boilerplate project for a TypeScript API (Express, tsoa) + UI (React/TSX)

  • I'm the creator/one of the maintainers for tsoa. I also have a project ts-app that heavily uses tsoa. Let me know if you have any questions.

  • runtypes

    Runtime validation for static types

  • A guy on my team wrote a utility to generate our OpenAPI spec from our runtypes definitions. We're trying to get it open sourced, but it's slow going (large enterprise app). If you're wanting to roll your own though, the runtypes source has a utility to print the type it represents. He use that to scrape the object definitions, and generate the spec.

  • 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.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts