ts2typebox
json-schema-spec
ts2typebox | json-schema-spec | |
---|---|---|
3 | 30 | |
35 | 3,237 | |
- | 3.4% | |
7.0 | 7.9 | |
9 months ago | 9 days ago | |
TypeScript | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
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.
ts2typebox
-
[AskTS] What do you think will be the future of runtime type checking?
This is my currently preferred way, you can check out the repo description of ts2typebox to see what I mean
- ts2typebox - typescript to typebox / JSON schema
json-schema-spec
- Python JSON schema
-
TypeSpec: A New Language for API-Centric Development
Yep and that comes from JSON Schema: https://json-schema.org/
I believe recent versions of OpenAPI are "compatible" with JSON Schema (at least they "wanted to be" last I checked as I was implementing some schema converters).
Even TypeScript is not enough to represent all of JSON Schema! But it gets close (perhaps if you remove validation rules and stuff like that it's a full match).
But even something like Java can represent most of it pretty well, specially since sealed interfaces were added. I know because I've done it :).
- JSON Schema Blog
-
Deploy a simple data storage API with very little code using Amazon API Gateway and DynamoDB
models.tf where I centralized all the Data model that API Gateway uses to perform input and output checks. Those use the JSON-schema specification. GitHub - psantus/serverless.api-gateway-dynamodb-integration.terraform
- Unlocking the frontend – a call for standardizing component APIs pt.2
- JSON Schema
-
How to Automatically Consume RESTful APIs in Your Frontend
In the meantime, we are going to expand our backend with two endpoints: one for fetching data and another one for creating data. Fastify provides out-of-the-box support for API serialization and validation through its schema-based approach built on top of JSON Schema. Through the schema option, we can attach a schema definition to each route.
-
A View on Functional Software Architecture
JSON-schema to define templates for request and response contents.
-
Learn serverless on AWS step-by-step: Strong Types!
The syntax used to define the output is called JSON Schema. It is a standard way to define the structure of a JSON object. If you know zod, the spirit is similar. Based on Swarmion's roadmap, it will be possible to use zod schemas to defined contracts in the future, which will be super cool!
- XML is better than YAML
What are some alternatives?
ttype-safe - TypeScript runtime type validator generator that creates validation functions from TypeScript types with custom validation rules defined using JSDoc comments.
outlines - Structured Text Generation
typebox - Json Schema Type Builder with Static Type Resolution for TypeScript
guidance - A guidance language for controlling large language models.
trpc-openapi - OpenAPI support for tRPC 🧩
uplaybook - A python-centric IT automation system.
typebox-workbench - Type Transform Tool for Runtime Type Systems
nix-configs - My Nix{OS} configuration files
proposal-pattern-matching - Pattern matching syntax for ECMAScript
OpenAPI-Specification - The OpenAPI Specification Repository
typia - Super-fast/easy runtime validations and serializations through transformation
torch-grammar