Skip to content

Commit abf822c

Browse files
Merge pull request #41 from advanced-rest-client/fix/reverse-changes
Fix/reverse changes
2 parents a1498c7 + 271e752 commit abf822c

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/api-endpoint-documentation",
33
"description": "A component to generate documentation for a resource from AMF model",
4-
"version": "6.1.1",
4+
"version": "6.1.2",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/ApiEndpointDocumentationElement.js

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,7 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement)
193193
* Optional property to set
194194
* If true, the server selector custom base URI option is rendered
195195
*/
196-
allowCustomBaseUri: { type: Boolean },
197-
/**
198-
* Adds a servers to async API
199-
*
200-
* @param {string} url - The URL of the server.
201-
* @param {object} [description] - An object containing a string `description` property.
202-
*/
203-
servers: {type:Array},
204-
_servers: {type:Array},
196+
allowCustomBaseUri: { type: Boolean }
205197
};
206198
}
207199

@@ -307,20 +299,6 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement)
307299
this.requestUpdate('server', old);
308300
}
309301

310-
get servers() {
311-
return this._servers;
312-
}
313-
314-
set servers(value) {
315-
const old = this._servers;
316-
/* istanbul ignore if */
317-
if (old === value) {
318-
return;
319-
}
320-
this._servers = value;
321-
this.requestUpdate('servers', old);
322-
}
323-
324302
constructor() {
325303
super();
326304
this._scrollHandler = this._scrollHandler.bind(this);
@@ -983,7 +961,6 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement)
983961
<api-url
984962
.amf="${this.amf}"
985963
.server="${this.server}"
986-
.servers="${this.servers}"
987964
.endpoint="${this.endpoint}"
988965
.apiVersion="${this.apiVersion}"
989966
.baseUri="${this.baseUri}"
@@ -1045,7 +1022,6 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement)
10451022
data-operation-id="${item['@id']}"
10461023
.amf="${amf}"
10471024
.server="${server}"
1048-
.servers="${this.servers}"
10491025
.endpoint="${endpoint}"
10501026
.method="${item}"
10511027
.narrow="${narrow}"

0 commit comments

Comments
 (0)