JSON-Schema Faker
prism
JSON-Schema Faker | prism | |
---|---|---|
8 | 25 | |
3,214 | 4,017 | |
0.4% | 1.5% | |
7.1 | 8.3 | |
2 months ago | 3 days ago | |
JavaScript | TypeScript | |
MIT License | Apache License 2.0 |
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.
prism
-
How to Automatically Consume RESTful APIs in Your Frontend
Since the OpenAPI can effectively describe our resources, we can reuse it to generate a dummy server that can be later used for development and testing purposes without bootstrapping any actual services. There some tools available that can help us with this task, such as Prism, OpenAPI Mock, OpenAPI Backend and the MSW library we have already seen.
- The most effective Schema-Driven Development using OpenAPI for Logistic Engineer
-
Show HN: Generate JSON mock data for testing/initial app development
I use https://stoplight.io/open-source/prism with x-faker properties in my OpenAPI specs to mock APIs with dynamic content.
-
Please recommend a good API Mocking tool
Haven't tried it yet, but discovered https://microcks.io/ yesterday. Otherwise https://stoplight.io/open-source/prism is pretty good
-
Prism: a useful developer tool for OpenAPI specs
Prism does more than mocking; You can also use it to inspect any discrepancies between your API implementation and the API spec. You can find out more on their GitHub page:https://github.com/stoplightio/prism
-
How do people deal with mocking CRUD operations for the purposes of testing?
use a mock API server that can read openapi spec (e.g. Prism)
-
Faster time-to-market with API-first
prism
-
install db locally or go with docker image for development?
What about skipping the DB all together and using OpenAPI w/ a Mock Server for local development https://openapi.tools/#mock personally like https://stoplight.io/open-source/prism
- Resurse utile pentru crearea unui REST API?
-
Mock REST APIs with just OpenAPI YAML/JSON
Pretty simple to run [prism](https://github.com/stoplightio/prism) locally for free.
What are some alternatives?
Mock.js - A simulation data generator
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
Immer - Create the next immutable state by mutating the current one
msw - Seamless REST/GraphQL API mocking library for browser and Node.js.
hashmap - HashMap JavaScript class for Node.js and the browser. The keys can be anything and won't be stringified
dredd - Language-agnostic HTTP API Testing Tool
react-websocket - Easy-to-use React component for websocket communications.
backstage - Backstage is an open platform for building developer portals
immutable-js - Immutable persistent data collections for Javascript which increase efficiency and simplicity.
cli - Mockoon's official CLI. Deploy your mock APIs anywhere.
datafaker - Generating fake data for the JVM (Java, Kotlin, Groovy) has never been easier!
redoc - 📘 OpenAPI/Swagger-generated API Reference Documentation