@api-components/api-type-document
Advanced tools
Comparing version 4.2.26 to 4.2.27
{ | ||
"name": "@api-components/api-type-document", | ||
"description": "A documentation table for type (resource) properties. Works with AMF data model", | ||
"version": "4.2.26", | ||
"version": "4.2.27", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -393,2 +393,9 @@ import { LitElement, html } from 'lit-element'; | ||
_toBoolean(value) { | ||
if (typeof value === 'boolean') { | ||
return value | ||
} | ||
return value === 'true' | ||
} | ||
/** | ||
@@ -408,6 +415,7 @@ * Computes value for `isRequired` property. | ||
if (this._hasType(shape, this.ns.aml.vocabularies.apiContract.Parameter)) { | ||
return /** @type boolean */ Boolean(this._getValue( | ||
const required = this._getValue( | ||
shape, | ||
this.ns.aml.vocabularies.apiContract.required | ||
)); | ||
) | ||
return this._toBoolean(required); | ||
} | ||
@@ -414,0 +422,0 @@ const data = this._getValue(shape, this.ns.w3.shacl.minCount); |
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
143608
4296