quicktype
json-schema-to-ts
Our great sponsors
quicktype | json-schema-to-ts | |
---|---|---|
96 | 5 | |
11,498 | 1,335 | |
2.2% | - | |
8.7 | 7.6 | |
5 days ago | about 2 months ago | |
TypeScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
quicktype
-
How do you navigate an api response where you don't know the exact structure?
I grab the response off of the network tab. Either make a structure manually or use something like QuickType
-
Tres herramientas para desarrolladores de software 👌
2. Quicktype
-
Show HN: A tool to Convert JSON schemas into TypeScript classes
I have the library demo linked from the homepage bookmarked: https://app.quicktype.io/ I use it every time I need to go from a pile of JSON to TypeScript types or zod declarations.
-
Sharing data types on a multi-language project
This is a very intriguing problem!
Not trying to steal thunder, but quicktype (https://github.com/quicktype/quicktype) does all of this–JSON schema or TypeScript definitions to de/serializers and types in nearly 30 languages at this point. Try it here: https://app.quicktype.io
-
How can I get the ingredients and measurements to display from theMealDB JSON?
I usually use this tool: https://app.quicktype.io
-
Need Help with Combine
Grab the json, paste it into https://app.quicktype.io/ and see if the structure matched your struct.
- The Typescript ecosystem is exhausting
-
how to efficiently create structs to match the json response
I usually use https://app.quicktype.io/ , they also have a VSCode plugin and then fieldaligment to make sure it's as compact as possible.
-
Fastest Way to Auto Generate Types for Typescript and Input validation
Just paste your json inside app.quicktype.io or it's vscode
-
Is anyone making productive use of ChatGPT?
P.S. This could be more efficient to generate Codable code than ChatGPT
json-schema-to-ts
-
Fastify: Support for Auto Type Inference (similar to TRPC)
JSON Schema To TS
-
Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 2
// First create a general "post" schema // Shared Schema export const postSchema = { $id: 'post', type: 'object', properties: { id: { type: 'number' }, title: { type: 'string' }, published: { type: 'boolean' }, content: { type: 'string' }, tags: { type: 'array', items: { type: 'string' } }, deleted: { type: 'boolean' } }, required: ['title', 'published', 'content', 'tags', 'deleted'] } as const // We don't need to create a separate "bodySchema". // But directly infer type from postSchema export type Body = FromSchema // Reply Schema // Check https://www.fastify.io/docs/latest/Reference/Validation-and-Serialization/#adding-a-shared-schema const replySchema = { type: 'object', properties: { posts: { type: 'array', items: { $ref: 'post#' } } }, additionalProperties: false } as const // Check https://github.com/ThomasAribart/json-schema-to-ts#references export type Reply = FromSchema< typeof replySchema, { references: [typeof postSchema] } > // Also make ReplyNotFound reusable for future use export const postNotFoundSchema = { $id: 'postNotFound', // add $id here type: 'object', required: ['error'], properties: { error: { type: 'string' } }, additionalProperties: false } as const export type PostNotFound = FromSchema
-
Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 1
json-schema-to-ts comes to the rescue. 💪
-
How do you handle runtime validation / API documentation?
https://github.com/ThomasAribart/json-schema-to-ts - Infers TS Types from raw JSON Schema object literals you embed in your code.
-
6 importantes bibliotecas para AWS Serverless TypeScript
Fonte: https://github.com/ThomasAribart/json-schema-to-ts
What are some alternatives?
json2dart - A CLI tool to help generate dart classes from json returned from API
aws-lambda-power-tuning - AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.
json_serializable.dart - Generates utilities to aid in serializing to/from JSON.
middy - 🛵 The stylish Node.js middleware engine for AWS Lambda 🛵
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
generate-runtypes - A code generator for Runtypes types. Perfect to create tooling to generate code for Runtypes!
zod-to-json-schema - Converts Zod schemas to Json schemas
papr - MongoDB TypeScript-aware Models
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
json-schema-to-typescript - Compile JSONSchema to TypeScript type declarations
lowdefy - The config web stack for business apps - build internal tools, client portals, web apps, admin panels, dashboards, web sites, and CRUD apps with YAML or JSON.
fastify-type-provider-typebox - A Type Provider for Typebox