Skip to content

Commit f65f439

Browse files
authored
[W-15520293] server tags (#44)
* server tags template * 4.6.6 * _getValue and _getAmfKey, asyncApi condition * amf-helper-mixin version updated
1 parent 2b5e3bf commit f65f439

File tree

7 files changed

+391
-321
lines changed

7 files changed

+391
-321
lines changed

demo/apis.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"async-api/async-api.yaml": "ASYNC 2.0",
1313
"W-10881270/W-10881270.json": "ASYNC 2.0",
1414
"exchange-experience-api/exchange-experience-api.raml": "RAML 0.8",
15-
"multiple-servers/multiple-servers.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
15+
"multiple-servers/multiple-servers.yaml": {
16+
"type": "OAS 3.0",
17+
"mime": "application/yaml"
18+
},
1619
"APIC-641/APIC-641.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
1720
"APIC-711/APIC-711.raml": "RAML 1.0"
1821
}

demo/index.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,21 @@ class ApiDemo extends ApiDemoPage {
1313

1414
_apiListTemplate() {
1515
return [
16-
['google-drive-api', 'Google Drive'],
17-
['exchange-experience-api', 'Exchange xAPI'],
18-
['demo-api', 'Demo API'],
19-
['appian-api', 'Applian API'],
20-
['nexmo-sms-api', 'Nexmo SMS API'],
21-
['loan-microservice', 'Loan microservice (OAS)'],
22-
['prevent-xss', 'Prevent XSS'],
23-
['mocking-service', 'Lots of methods'],
24-
['no-endpoints', 'No endpoints!'],
25-
['no-server', 'No server!'],
26-
['multiple-servers', 'Multiple servers'],
27-
['async-api', 'AsyncAPI'],
28-
['APIC-641', 'APIC-641'],
29-
['W-10881270', 'W-10881270'],
16+
["google-drive-api", "Google Drive"],
17+
["exchange-experience-api", "Exchange xAPI"],
18+
["demo-api", "Demo API"],
19+
["appian-api", "Applian API"],
20+
["nexmo-sms-api", "Nexmo SMS API"],
21+
["loan-microservice", "Loan microservice (OAS)"],
22+
["prevent-xss", "Prevent XSS"],
23+
["mocking-service", "Lots of methods"],
24+
["no-endpoints", "No endpoints!"],
25+
["no-server", "No server!"],
26+
["multiple-servers", "Multiple servers"],
27+
["async-api", "AsyncAPI"],
28+
["APIC-641", "APIC-641"],
29+
["W-10881270", "W-10881270"],
30+
["async-api26", "AsyncAPI26"],
3031
].map(
3132
([file, label]) => html`
3233
<anypoint-item data-src="${file}-compact.json">${label}</anypoint-item>

demo/model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const generator = require('@api-components/api-model-generator');
2+
23
generator('./demo/apis.json')
34
.then(() => console.log('Models created'))
45
.catch((cause) => console.error(cause));

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/api-summary",
33
"description": "A summary view for an API base on AMF data model",
4-
"version": "4.6.5",
4+
"version": "4.6.6",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",
@@ -27,7 +27,7 @@
2727
"dependencies": {
2828
"@advanced-rest-client/arc-marked": "^1.1.2",
2929
"@advanced-rest-client/markdown-styles": "^3.1.5",
30-
"@api-components/amf-helper-mixin": "^4.5.14",
30+
"@api-components/amf-helper-mixin": "4.5.25",
3131
"@api-components/api-method-documentation": "^5.2.5",
3232
"@api-components/http-method-label": "^3.1.4",
3333
"@api-components/raml-aware": "^3.0.0",

0 commit comments

Comments
 (0)