diff --git a/package-lock.json b/package-lock.json index 1e39b6c..e9acaab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@api-components/api-endpoint-documentation", - "version": "6.1.1", + "version": "6.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5913adb..1adda66 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@api-components/api-endpoint-documentation", "description": "A component to generate documentation for a resource from AMF model", - "version": "6.1.1", + "version": "6.1.2", "license": "Apache-2.0", "main": "index.js", "module": "index.js", diff --git a/src/ApiEndpointDocumentationElement.js b/src/ApiEndpointDocumentationElement.js index f3587a5..6af8f56 100644 --- a/src/ApiEndpointDocumentationElement.js +++ b/src/ApiEndpointDocumentationElement.js @@ -193,15 +193,7 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement) * Optional property to set * If true, the server selector custom base URI option is rendered */ - allowCustomBaseUri: { type: Boolean }, - /** - * Adds a servers to async API - * - * @param {string} url - The URL of the server. - * @param {object} [description] - An object containing a string `description` property. - */ - servers: {type:Array}, - _servers: {type:Array}, + allowCustomBaseUri: { type: Boolean } }; } @@ -307,20 +299,6 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement) this.requestUpdate('server', old); } - get servers() { - return this._servers; - } - - set servers(value) { - const old = this._servers; - /* istanbul ignore if */ - if (old === value) { - return; - } - this._servers = value; - this.requestUpdate('servers', old); - } - constructor() { super(); this._scrollHandler = this._scrollHandler.bind(this); @@ -983,7 +961,6 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement)