File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3838 - run : npm install
3939 - name : Lint openapi specifications
4040 run : |
41- npm run lint:ibm --entrypoint=openapi/${{ matrix.api }}/openapi.yaml
41+ npm run lint --api=${{ matrix.api }}
42+ npm run validate --api=${{ matrix.api }}
4243
4344 build-and-publish :
4445 needs : [lint]
Original file line number Diff line number Diff line change 55 "ibm-openapi-validator" : " 0.34.1"
66 },
77 "scripts" : {
8- "start" : " openapi preview-docs $npm_config_entrypoint " ,
9- "build" : " openapi bundle -o openapi.yaml $npm_config_entrypoint " ,
10- "lint" : " openapi lint $npm_config_entrypoint " ,
8+ "start" : " openapi preview-docs ./openapi/${npm_config_api}/openapi.yaml " ,
9+ "build" : " openapi bundle -o openapi.yaml ./openapi/${npm_config_api}/openapi.yaml " ,
10+ "lint" : " openapi lint ./openapi/${npm_config_api}/openapi.yaml " ,
1111 "lint:all" : " openapi lint openapi/*/openapi.yaml" ,
12- "lint:ibm" : " openapi bundle -o openapi.yaml $npm_config_entrypoint && ./node_modules/.bin/lint-openapi openapi.yaml" ,
13- "validate:schemas" : " python tools/validate/validate.py validate --json_filepath test/json-samples/tool.json --schema_filepath json-schema/schemas/tool.json"
12+ "validate" : " npm run build --api=${npm_config_api} && ./node_modules/.bin/lint-openapi openapi.yaml"
1413 }
1514}
You can’t perform that action at this time.
0 commit comments