Our great sponsors
-
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.
-
json-schema-to-openapi-schema
Due to the OpenAPI v3.0 and JSON Schema discrepancy, you can use this JS library to convert JSON Schema objects to OpenAPI Schema.
-
ajv
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
Sometimes you might know the data you want to collect, but you need to create a UI to facilitate collecting it. By starting with a JSON schema you can use React JSON schema Form (Rjsf) to automatically generate forms with prebuilt client and server-side validation against the provided schema.
Typescript to JSON Schema
OpenAPI, like JSON schema can seem like a drag to implement if you're not using it already. However, if you start with JSON schema you can use this handy library to generate the OpenAPI Schema Object which is used to define the input and output data types.
In the JavaScript ecosystem you can use the excellent AJV package to validate any JavaScript object against a JSON schema. This is especially useful to ensure that API contracts are maintained when communicating with other services.