diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a7a035f6..9d17c84a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.2.13 + +- Correct Swagger 2.0 Schema URL. + ## 0.2.12 - Use Avocado git checkout and diff algorithms in breaking-changes and linter-diff. \ No newline at end of file diff --git a/package.json b/package.json index 97155ab2b..f34e1d976 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@azure/rest-api-specs-scripts", - "version": "0.2.12", + "version": "0.2.13", "description": "Scripts for the Azure RestAPI specification repository 'azure-rest-api-specs'.", "types": "dist/index.d.ts", "main": "dist/index.js", @@ -27,13 +27,13 @@ "@types/fs-extra": "^5.0.5", "@types/glob": "^7.1.1", "@types/js-yaml": "^3.12.1", - "@types/node": "^11.13.4", + "@types/node": "^11.13.6", "@types/request": "^2.48.1", - "typescript": "^3.4.3" + "typescript": "^3.4.4" }, "dependencies": { "@azure/avocado": "^0.4.1", - "@azure/oad": "^0.5.1", + "@azure/oad": "^0.5.2", "@ts-common/string-map": "^0.3.0", "fs-extra": "^7.0.1", "glob": "^7.1.3", diff --git a/src/utils.ts b/src/utils.ts index 6f9fd8717..3a98ebda6 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -20,7 +20,7 @@ const asyncJsonRequest = (url: string) => new Promise((res, rej) => req export const extensionSwaggerSchemaUrl = "https://raw.githubusercontent.com/Azure/autorest/master/schema/swagger-extensions.json"; export const swaggerSchemaUrl = "http://json.schemastore.org/swagger-2.0"; -export const swaggerSchemaAltUrl = "http://swagger.io/v2/schema.json"; +export const swaggerSchemaAltUrl = "http://23.22.16.221/v2/schema.json"; export const schemaUrl = "http://json-schema.org/draft-04/schema"; export const exampleSchemaUrl = "https://raw.githubusercontent.com/Azure/autorest/master/schema/example-schema.json"; export const compositeSchemaUrl = "https://raw.githubusercontent.com/Azure/autorest/master/schema/composite-swagger.json";