Skip to content

Commit 77a7f07

Browse files
committed
APM-4217 Use openapi-generator
1 parent 4261964 commit 77a7f07

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

manifest_template.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ apigee:
4343
quota: {{ ENV.quota | default('300') }}
4444
quotaInterval: '1'
4545
quotaTimeUnit: minute
46-
specs: []
46+
specs:
47+
- name: {{ NAME }}
48+
path: {{ SERVICE_NAME }}.json
4749
api_catalog:
4850
- edgeAPIProductName: {{ NAME }}
4951
anonAllowed: true

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
"version": "0.0.1",
44
"description": "OAS (Swagger v3) API Definition for Template API",
55
"scripts": {
6-
"lint": "",
7-
"publish": "",
8-
"serve": "node_modules/.bin/speccy serve build/splunk-monitor.json",
6+
"lint": "node_modules/.bin/openapi-generator-cli validate -i specification/splunk-monitor.yaml",
7+
"publish": "./node_modules/.bin/openapi-generator-cli generate -i specification/splunk-monitor.yaml --generator-key v3.0 -g openapi -o build && rm openapitools.json && mv build/openapi.json build/splunk-monitor.json",
98
"check-licenses": "node_modules/.bin/license-checker --failOn GPL --failOn LGPL"
109
},
1110
"author": "NHS Digital",
@@ -16,6 +15,7 @@
1615
"speccy": "^0.11.0"
1716
},
1817
"devDependencies": {
18+
"@openapitools/openapi-generator-cli": "^2.5.1",
1919
"apigeetool": "^0.5.4",
2020
"license-checker": "^25.0.1",
2121
"minimist": "^1.2.2",

0 commit comments

Comments
 (0)