JSON-Schema Faker
typeconv
JSON-Schema Faker | typeconv | |
---|---|---|
8 | 3 | |
3,214 | 397 | |
0.4% | - | |
7.1 | 4.1 | |
2 months ago | 11 months ago | |
JavaScript | TypeScript | |
MIT License | 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.
JSON-Schema Faker
-
Show HN: Generate JSON mock data for testing/initial app development
There’s also json-schema-faker which is pretty cool.
https://github.com/json-schema-faker/json-schema-faker
-
How do you get realistic data in your staging databases?
I built a CSV generator which I then use as a test data source for a dsv library on that principle and another API generator based on schema. Something that might be additionally helpful is json-schema-faker, as you can probably convert you primary record (DB schema) to json-schema then just generate tons of data.
-
OpenAPI Examples
I only know https://github.com/json-schema-faker/json-schema-faker for JS, not Java though.
-
How Web Apps Became Decoys To Get You To Install Native Apps
Hell, i was using this one earlier today; just kills me that people think this is acceptable.
-
Intro to AWS Websockets Part Three: Documentation
The payload object contains a reference to a JSON Schema object that describes the properties of the event. This allows the consumer to know exactly how to define the event when publishing or how to write code that consumes a subscribed event. There are even tools online that generate examples from JSON Schema (and vice versa).
- The Faker.js Saga Continues
-
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.
-
JSON Data Generator
I've been using Fake your JSON-Schemas! (json-schema-faker.js.org), but it does not consider if-then-else rules in its generation process.
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?
Mock.js - A simulation data generator
suretype - Typesafe JSON (Schema) validator
Immer - Create the next immutable state by mutating the current one
class-transformer - Decorator-based transformation, serialization, and deserialization between objects and classes.
hashmap - HashMap JavaScript class for Node.js and the browser. The keys can be anything and won't be stringified
ts-json-schema-generator - Generate JSON schema from your Typescript sources
react-websocket - Easy-to-use React component for websocket communications.
spot - Spot is a concise, developer-friendly way to describe your API contract.
immutable-js - Immutable persistent data collections for Javascript which increase efficiency and simplicity.
sidewinder - Type Safe Micro Services for Node
datafaker - Generating fake data for the JVM (Java, Kotlin, Groovy) has never been easier!
joi - The most powerful data validation library for JS [Moved to: https://github.com/hapijs/joi]