You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

apidoc-plugin-schema

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apidoc-plugin-schema - npm Package Compare versions

Comparing version

to
0.0.8

2

package.json
{
"name":"apidoc-plugin-schema",
"version":"0.0.7",
"version":"0.0.8",
"description": "Schema Plugin for apidoc.",

@@ -5,0 +5,0 @@ "copyright": "Copyright (c) 2016 will Farrell. All rights reserved.",

@@ -14,3 +14,3 @@

function makeType(param) {
//console.log(param);
//console.log('makeType',param);
var strarr = [];

@@ -29,3 +29,3 @@ if (param.format) {

if (str === 'array') {
str = param.items.type+'[]';
str = makeType(param.items)+'[]';
}

@@ -38,3 +38,3 @@ strarr.push(formatType(str));

if (str === 'array') {
str = param.items.type+'[]';
str = makeType(param.items)+'[]';
}

@@ -95,2 +95,11 @@ return formatType(str);

// convert null to string
if ( Array.isArray(param.enum) ) {
var index = param.enum.indexOf(null);
if (index !== -1) {
param.enum[index] = 'null';
}
}
return (Array.isArray(param.enum)) ? '='+param.enum.join(',') : '';

@@ -97,0 +106,0 @@ }