Skip to content

Commit

Permalink
OAV 0.9.5 better error handling (Azure#4606)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar authored and jhendrixMSFT committed Nov 29, 2018
1 parent 5b76374 commit b7afaf2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@
"@microsoft.azure/async-io": "^1.0.21",
"@microsoft.azure/literate": "^1.0.21",
"@microsoft.azure/polyfill": "^1.0.17",
"@ts-common/local-install": "^0.0.7",
"fs-extra": "^3.0.1",
"glob": "^5.0.14",
"js-yaml": "^3.8.2",
"json-schema-ref-parser": "^3.1.2",
"mocha": "*",
"oad": "^0.1.11",
"oav": "^0.8.1",
"oav": "^0.9.5",
"request": "^2.61.0",
"request-promise-native": "^1.0.5",
"z-schema": "^3.16.1"
"z-schema": "^3.24.2"
},
"dependencies": {
"@octokit/rest": "^15.2.6"
Expand All @@ -36,6 +37,8 @@
"url": "http://github.com/azure/azure-rest-api-specs/issues"
},
"scripts": {
"test": "mocha -t 500000 --reporter min"
"test": "mocha -t 500000 --reporter min",
"oav": "oav",
"li": "local-install"
}
}
7 changes: 6 additions & 1 deletion scripts/semanticValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ async function main() {
// return (item.match(/.*Microsoft.Logic.*2016-06-01.*/ig) !== null);
// });
for (const swagger of swaggersToProcess) {
await oav.validateSpec(swagger, {consoleLogLevel: 'error', pretty: true});
try {
await oav.validateSpec(swagger, {consoleLogLevel: 'error', pretty: true});
} catch (e) {
console.error("error: ")
console.error(e)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"version": "2014-01-01",
"title": "ADHybridHealthService",
"description": "REST APIs for Azure Active Drectory Connect Health"
"description": "REST APIs for Azure Active Directory Connect Health"
},
"host": "management.azure.com",
"schemes": [ "https" ],
Expand Down

0 comments on commit b7afaf2

Please sign in to comment.