Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openapi-to-md

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-to-md - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

dist/index.js

@@ -139,3 +139,6 @@ #!/usr/bin/env node

Object.entries(apiObject.properties).forEach(([key, value]) => {
output += outputObject(apiDocument, key, value, undefined, setRef, nowLevel + 1);
var _a;
output += outputObject(apiDocument, key, value, Array.isArray(apiObject.required)
? (_a = apiObject.required) === null || _a === void 0 ? void 0 : _a.includes(key)
: apiObject.required, setRef, nowLevel + 1);
});

@@ -142,0 +145,0 @@ output += SP(nowLevel * 2) + "}\n";

11

package.json
{
"name": "openapi-to-md",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/index.js",

@@ -9,2 +9,3 @@ "bin": {

"scripts": {
"test": "ts-node dist/index.js test/test.yaml test/readme.md",
"build": "tsc -b",

@@ -36,3 +37,9 @@ "lint": "eslint src",

},
"keywords": ["openapi","swagger","yaml","json","markdown"],
"keywords": [
"openapi",
"swagger",
"yaml",
"json",
"markdown"
],
"author": "SoraKumo",

@@ -39,0 +46,0 @@ "bugs": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc