From d78774b77da2754e80730b73831afe6b877bee1f Mon Sep 17 00:00:00 2001 From: Sergey Shandar Date: Fri, 19 Apr 2019 14:04:06 -0700 Subject: [PATCH 1/3] Swagger 2.0. Schema URL. --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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..d92cffd23 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", From b94e287a19f4c521f3bbef34e3478ef5108ebbc7 Mon Sep 17 00:00:00 2001 From: Sergey Shandar Date: Fri, 19 Apr 2019 14:05:02 -0700 Subject: [PATCH 2/3] update version 0.2.13 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d92cffd23..f34e1d976 100644 --- a/package.json +++ b/package.json @@ -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", From 9132b1f094a34ff5117011b10d946a76e42a26bf Mon Sep 17 00:00:00 2001 From: Sergey Shandar Date: Fri, 19 Apr 2019 15:04:41 -0700 Subject: [PATCH 3/3] correct URL --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";