diff --git a/package.json b/package.json index 8d7a15738c6d..5f928209156c 100644 --- a/package.json +++ b/package.json @@ -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" @@ -38,7 +37,6 @@ }, "scripts": { "test": "mocha -t 500000 --reporter min", - "oav": "oav", - "li": "local-install" + "oav": "oav" } } diff --git a/scripts/modelValidation.js b/scripts/modelValidation.js index 7cc0dc62611d..6f46505fe92a 100644 --- a/scripts/modelValidation.js +++ b/scripts/modelValidation.js @@ -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) + } } }