Skip to content

Commit

Permalink
Update OAV (Azure#5004)
Browse files Browse the repository at this point in the history
* Update OAV

* clear cache
  • Loading branch information
sergey-shandar authored and AnuTalluri committed Feb 6, 2019
1 parent 92e4ffb commit 247d169
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
"@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.8",
"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.9.6",
"oav": "^0.10.3",
"request": "^2.61.0",
"request-promise-native": "^1.0.5",
"z-schema": "^3.24.2"
Expand All @@ -38,7 +37,6 @@
},
"scripts": {
"test": "mocha -t 500000 --reporter min",
"oav": "oav",
"li": "local-install"
"oav": "oav"
}
}
8 changes: 7 additions & 1 deletion scripts/modelValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ async function main() {
// return (item.match(/.*Microsoft.Logic.*2016-06-01.*/ig) !== null);
// });
for (const swagger of swaggersToProcess) {
await oav.validateExamples(swagger, null, {consoleLogLevel: 'error', pretty: true});
try {
await oav.validateExamples(swagger, null, {consoleLogLevel: 'error', pretty: true});
oav.clearCache();
} catch (e) {
console.error("error: ")
console.error(e)
}
}
}

Expand Down

0 comments on commit 247d169

Please sign in to comment.