@api-components/api-annotation-document
Advanced tools
Comparing version 4.2.1 to 4.2.2
{ | ||
"name": "@api-components/api-annotation-document", | ||
"description": "An element to render RAML annotations based on AMF data model", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -134,4 +134,12 @@ /* eslint-disable class-methods-use-this */ | ||
} | ||
const keys = custom.map((item) => item['@id']); | ||
const properties = keys.map((k) => this.ensureObject(shape[k] || shape[`amf://id${k}`])); | ||
const idKey = this._getAmfKey('amf://id'); | ||
const properties = custom.map((item) => { | ||
const k = item['@id']; | ||
const name = this._computeName(item); | ||
const nameKey = this._getAmfKey(this.ns.aml.vocabularies.core.extensionName); | ||
const object = this.ensureObject(shape[k] || shape[`amf://id${k}`] || shape[`${idKey}:${k}`]) | ||
object[nameKey] = object[nameKey] || name; | ||
return object; | ||
}); | ||
this._customList = properties; | ||
@@ -138,0 +146,0 @@ } |
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
18193
433