jsonschema
typeconv
jsonschema | typeconv | |
---|---|---|
1 | 3 | |
7 | 399 | |
- | - | |
4.0 | 4.1 | |
over 2 years ago | 12 months ago | |
TypeScript | TypeScript | |
- | 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.
jsonschema
-
Hey Come Help Out And Learn Some Stuff
We need to be able to generate json schema for our response types. This is done in jsonschema.
typeconv
-
Publishing Rust types to a TypeScript frontend
So I'm assuming you're talking about generating Rust types from TypeScript? If you can get your typescript definitions into OpenAPI (i.e, via typeconv) you can use the openapi generator cli to generate rust types. However this is geared towards web backends rather than pure IPC or cross-lang interop.
-
How do you "stitch & glue" types for all your needs?
The class-validator / class-transform looks really nice for formatting/validation but there is also joi. suretype is attractive since theoretically typeconv could generate jsonSchema for json-schema-faker and Open API docs.
-
Anyone using decorators, or some other form of inline documentation, to generate an openapi spec file based on a typescript library?
https://github.com/grantila/typeconv/ https://github.com/airtasker/spot https://github.com/vega/ts-json-schema-generator
What are some alternatives?
dropshot - expose REST APIs from a Rust program
suretype - Typesafe JSON (Schema) validator
hkts - Functional programming tools: option, either, task, state, optics, etc.
class-transformer - Decorator-based transformation, serialization, and deserialization between objects and classes.
JSON-Schema Faker - JSON-Schema + fake data generators
ts-json-schema-generator - Generate JSON schema from your Typescript sources
spot - Spot is a concise, developer-friendly way to describe your API contract.
sidewinder - Type Safe Micro Services for Node
joi - The most powerful data validation library for JS [Moved to: https://github.com/hapijs/joi]
sidewinder - Django starter kit that focuses on good defaults, developer experience, and deployment. Updated for Django 5.
ajv-ts - First-class ajv typescript JSON-schema builder inspired from Zod
openapi-generator-cli - A node package wrapper for https://github.com/OpenAPITools/openapi-generator