openapi-mock
json-schema-spec
openapi-mock | json-schema-spec | |
---|---|---|
2 | 54 | |
505 | 4,396 | |
0.2% | 1.9% | |
0.0 | 9.0 | |
about 1 year ago | 24 days ago | |
Go | 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.
openapi-mock
-
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.
- Eskimo is a supercharged mocking server for developers and testers, that aims to abstract the complexities of coding a mock server into simple JSON configurations.
json-schema-spec
-
Using GPT for natural language querying
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://upsidelab.io/recipe.schema.json", "title": "Recipe", "description": "A recipe definition", "type": "object", "properties": { "ingredients": { "description": "The list of ingredients required to prepare the recipe", "type": "array", "items": { "$ref": "#Ingredient" } }, "steps": { "description": "The list of steps required to prepare the recipe", "type": "array", "items": { "$ref": "#Step" } } }, "$defs": { "ingredient": { "$anchor": "Ingredient", "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" }, "quantity": { "type": "string" } } }, "step": { "$anchor": "Step", "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" }, "description": { "type": "string" }, "dependsOnSteps": { "type": "array", "items": { "type": "number" } }, "dependsOnIngredients": { "type": "array", "items": { "type": "number" } } } } } }
-
Tools and Demo Based on Existing .NET JSON Schema Components
While there are variety of JSON schema tools since the introduction of JSON schema, this project is focused on the following:
- JSON Schema
-
How API Schema Validation Boosts Effective Contract Testing
JSON Schema: The industry standard for defining and validating JSON data structures.
-
How to use FastAPI for microservices in Python
The framework's official website mentions a number of pros of FastAPI. In my opinion, the most useful features from a microservice perspective are: the simplicity of code (easy to use and avoid boilerplate), high operational capacity thanks to Starlette and Pydantic and compatibility with industry standards - OpenAPI and JSON Schema.
-
Show HN: ParserPete – Make every website a JSON API
2. schema ⇾ (optional) you can provide it a JSON schema (https://json-schema.org/) in which you define the wanted output.
I needed it myself and thought it might be fun to create a little tool out of it.
Best
-
Mastering API Definitions: A Comprehensive Guide
As of OpenAPI 3.1, you can additionally embed JSON Schema directly into your definition, which tooling takes advantage of to generate documentation and perform contract testing.
-
Show HN: Convert your LinkedIn profile to a resume
For our data model we started with https://jsonresume.org/ but needed to adapt a bit.
Ideally there would be something on https://json-schema.org/ (as there are for industry job posting standards)
- Nobody Gets Fired for Picking JSON, but Maybe They Should?
-
JSON5 – JSON for Humans
Or maybe extend this with types for the timestamp, `@ms:1623132000` or `@unix:1623132000`, so in a value: `{"now":@unix:1623132000}`
Mongo types the field name, `{"$date":1623132000}`, if I'm not mistaken. Rust style would be `1623132000_unix`.
Or with anticipation of a more full typing system, where the time is explicitly named:
`{"now": unix:1623132000}`
For now, when I need typing, I use https://json-schema.org
What are some alternatives?
typed-openapi - Generate a headless Typescript API client from an OpenAPI spec - optionally with a @tanstack/react-query client using queryOptions
nix-configs - My Nix{OS} configuration files
swagmock - Mock data generator for swagger api
outlines - Structured Outputs
gnostic - A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.
uplaybook - A python-centric IT automation system.