
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
mock-to-openapi
Advanced tools
Cli tool (and library) for converting JSON mock objects to Open API schemas
Cli tool (and library) for converting JSON mock objects to OpenAPI schemas.
npm install --global mock-to-openapi
Following command will convert all *.json
files from directory ./examples
to
YAML OpenAPI schemas.
mock-to-openapi ./examples
You can use the online web interface to convert JSON mock objects to OpenAPI schemas directly in your browser:
https://ozzyczech.github.io/mock-to-openapi/
Let's have, for example, json
object with:
{
"title": "This is title",
"author": "Roman Ožana",
"content": "This is just an example",
"date": "2020-05-12T23:50:21.817Z"
}
Tool mock-to-openapi
converts JSON
to the OpenAPI specification as follows:
type: object
properties:
title:
type: string
example: This is title
author:
type: string
example: Roman Ožana
content:
type: string
example: This is just an example
date:
type: string
format: date-time
example: 2020-05-12T23:50:21.817Z
FAQs
Cli tool (and library) for converting JSON mock objects to Open API schemas
The npm package mock-to-openapi receives a total of 77 weekly downloads. As such, mock-to-openapi popularity was classified as not popular.
We found that mock-to-openapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.