How do you handle runtime validation / API documentation?

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

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.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • json-schema-to-ts

    Infer TS types from JSON schemas 📝

  • https://github.com/ThomasAribart/json-schema-to-ts - Infers TS Types from raw JSON Schema object literals you embed in your code.

  • typebox

    Json Schema Type Builder with Static Type Resolution for TypeScript

  • https://github.com/sinclairzx81/typebox - Provides an API to create JSON Schema similar to how you would create a TS type.

  • 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
  • zod-plugins

    Plugins and utilities for Zod

  • You could try zod for runtime validation and types with zod-openapi to derive open API schema from the validator. An example of the alternative approach is something like generate-runtypes or runtyping to generate runtypes validators from a JSON schema (and separately generate the Open API definitions from the JSON schema).

  • generate-runtypes

    A code generator for Runtypes types. Perfect to create tooling to generate code for Runtypes!

  • You could try zod for runtime validation and types with zod-openapi to derive open API schema from the validator. An example of the alternative approach is something like generate-runtypes or runtyping to generate runtypes validators from a JSON schema (and separately generate the Open API definitions from the JSON schema).

  • runtyping

    Generate runtype validation from static types & JSON schema.

  • You could try zod for runtime validation and types with zod-openapi to derive open API schema from the validator. An example of the alternative approach is something like generate-runtypes or runtyping to generate runtypes validators from a JSON schema (and separately generate the Open API definitions from the JSON schema).

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB 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

  • Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 2

    1 project | dev.to | 20 May 2022
  • How do you navigate an api response where you don't know the exact structure?

    1 project | /r/webdev | 9 Nov 2023
  • Tres herramientas para desarrolladores de software 👌

    2 projects | dev.to | 27 Oct 2023
  • Show HN: A tool to Convert JSON schemas into TypeScript classes

    7 projects | news.ycombinator.com | 5 Oct 2023
  • Sharing data types on a multi-language project

    3 projects | news.ycombinator.com | 16 Aug 2023