hapi-swagger
Advanced tools
Comparing version 13.0.1 to 13.0.2
@@ -150,5 +150,7 @@ const Hoek = require('@hapi/hoek'); | ||
let objectPattern = joiObj.$_terms.patterns[0]; | ||
let patternSchema = objectPattern.schema; | ||
let patternName = patternSchema.$_terms.examples | ||
&& patternSchema.$_terms.examples[0] ? patternSchema.$_terms.examples[0] : patternSchema.type; | ||
let patternName = 'string'; | ||
if (objectPattern.schema) { | ||
patternName = objectPattern.schema.$_terms.examples | ||
&& objectPattern.schema.$_terms.examples[0] ? objectPattern.schema.$_terms.examples[0] : objectPattern.schema.type; | ||
} | ||
property.name = name; | ||
@@ -155,0 +157,0 @@ property.properties = { |
{ | ||
"name": "hapi-swagger", | ||
"description": "A swagger documentation UI generator plugin for hapi", | ||
"version": "13.0.1", | ||
"version": "13.0.2", | ||
"author": "Glenn Jones", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
106175
2944