openapi-to-md
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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"; |
{ | ||
"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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12415
309