Move to yasway
This commit is contained in:
Родитель
567c408e0b
Коммит
2e4a5ac0d5
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { LiveValidationError } from "./liveValidationError"
|
||||
import { Operation } from "sway"
|
||||
import { Operation } from "yasway"
|
||||
|
||||
/**
|
||||
* @class
|
||||
|
|
|
@ -15,7 +15,7 @@ import * as utils from "../util/utils"
|
|||
import * as models from "../models"
|
||||
import * as http from "http"
|
||||
import { PotentialOperationsResult } from "../models/potentialOperationsResult"
|
||||
import { Operation, PathObject } from "sway"
|
||||
import { Operation, PathObject } from "yasway"
|
||||
import { ParsedUrlQuery } from "querystring"
|
||||
import { Unknown } from "../util/unknown"
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
/* tslint:disable-next-line:no-reference */
|
||||
/// <reference path="./../../types/sway.d.ts" />
|
||||
/// <reference path="./../../types/yasway.d.ts" />
|
||||
|
||||
import * as util from "util"
|
||||
import * as path from "path"
|
||||
import * as Sway from "sway"
|
||||
import * as Sway from "yasway"
|
||||
import * as msRest from "ms-rest"
|
||||
|
||||
const HttpRequest = msRest.WebResource
|
||||
|
@ -20,7 +20,7 @@ import { validateResponse } from "../util/validationResponse"
|
|||
import { Error } from "../util/error"
|
||||
import { Unknown } from "../util/unknown"
|
||||
import * as C from "../util/constants"
|
||||
import { Operation } from "sway"
|
||||
import { Operation } from "yasway"
|
||||
|
||||
const ErrorCodes = C.ErrorCodes;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import * as JsonRefs from "json-refs"
|
|||
import * as fs from "fs"
|
||||
import * as path from "path"
|
||||
import * as utils from "./util/utils"
|
||||
import * as Sway from "sway"
|
||||
import * as Sway from "yasway"
|
||||
import * as msRest from "ms-rest"
|
||||
|
||||
const HttpRequest = msRest.WebResource
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
13
package.json
13
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oav",
|
||||
"version": "0.4.49",
|
||||
"version": "0.4.50",
|
||||
"author": {
|
||||
"name": "Microsoft Corporation",
|
||||
"email": "azsdkteam@microsoft.com",
|
||||
|
@ -9,10 +9,7 @@
|
|||
"description": "Validate Azure REST API Specifications",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@microsoft.azure/autorest-extension-base": "^1.0.13",
|
||||
"@types/lodash": "^4.14.109",
|
||||
"@types/request": "^2.47.1",
|
||||
"@types/winston": "^2.3.9",
|
||||
"@microsoft.azure/autorest-extension-base": "1.0.13",
|
||||
"azure-arm-resource": "^2.0.0-preview",
|
||||
"glob": "^5.0.14",
|
||||
"js-yaml": "^3.8.2",
|
||||
|
@ -27,14 +24,18 @@
|
|||
"request": "^2.85.0",
|
||||
"swagger-parser": "^3.4.1",
|
||||
"swagger-tools": "^0.10.1",
|
||||
"sway": "github:amarzavery/sway#validation",
|
||||
"uuid": "^3.0.1",
|
||||
"vscode-jsonrpc": "^3.6.1",
|
||||
"winston": "^2.4.2",
|
||||
"yargs": "^6.6.0",
|
||||
"yasway": "^1.0.0",
|
||||
"yuml2svg": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/uuid": "^3.4.3",
|
||||
"@types/lodash": "^4.14.109",
|
||||
"@types/request": "^2.47.1",
|
||||
"@types/winston": "^2.3.9",
|
||||
"@types/glob": "^5.0.35",
|
||||
"@types/js-yaml": "^3.11.1",
|
||||
"@types/json-pointer": "^1.0.30",
|
||||
|
|
|
@ -8,7 +8,7 @@ import * as glob from "glob"
|
|||
import { LiveValidator } from "../lib/validators/liveValidator"
|
||||
import * as Constants from "../lib/util/constants"
|
||||
import * as utils from "../lib/util/utils"
|
||||
import { Responses } from "sway"
|
||||
import { Responses } from "yasway"
|
||||
|
||||
const livePaths = glob.sync(path.join(__dirname, "liveValidation/swaggers/**/live/*.json"))
|
||||
describe("Live Validator", () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
declare module "sway" {
|
||||
declare module "yasway" {
|
||||
interface Options {
|
||||
readonly definition: any
|
||||
readonly jsonRefs: {
|
Загрузка…
Ссылка в новой задаче