This commit is contained in:
Sergey Shandar 2018-05-29 18:04:11 -07:00
Родитель 12396a489d
Коммит efd237cfe4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 1C1B75FAA0B9B3C8
8 изменённых файлов: 8 добавлений и 10 удалений

Просмотреть файл

@ -5,7 +5,7 @@ import util = require('util')
import JsonRefs = require('json-refs')
import yuml2svg = require('yuml2svg')
import utils = require('./util/utils')
import Constants = require('./util/constants')
import { Constants } from './util/constants'
import log = require('./util/logging')
let ErrorCodes = Constants.ErrorCodes;

Просмотреть файл

@ -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.
let Constants = {
export let Constants = {
constraints: ['minLength', 'maxLength', 'minimum', 'maximum', 'enum', 'maxItems', 'minItems', 'uniqueItems', 'multipleOf', 'pattern'],
xmsExamples: 'x-ms-examples',
exampleInSpec: 'example-in-spec',
@ -56,5 +56,3 @@ let Constants = {
'ResourceManagementClient': 'Microsoft.Resources'
}
}
export = Constants

Просмотреть файл

@ -9,7 +9,7 @@ import _ = require('lodash')
import glob = require('glob')
import msRest = require('ms-rest')
import SpecValidator = require('./specValidator')
import Constants = require('../util/constants')
import { Constants } from '../util/constants'
import log = require('../util/logging')
import utils = require('../util/utils')
import models = require('../models')

Просмотреть файл

@ -2,7 +2,7 @@ import _ = require('lodash')
import path = require('path')
import JsonRefs = require('json-refs')
import utils = require('../util/utils')
import Constants = require('../util/constants')
import { Constants } from '../util/constants'
import log = require('../util/logging')
let ErrorCodes = Constants.ErrorCodes

Просмотреть файл

@ -11,7 +11,7 @@ let HttpRequest = msRest.WebResource
import SpecResolver = require('./specResolver')
import utils = require('../util/utils')
import Constants = require('../util/constants')
import { Constants } from '../util/constants'
import log = require('../util/logging')
import { ResponseWrapper } from '../models/responseWrapper'
import ValidationResponse = require('../util/validationResponse')

Просмотреть файл

@ -15,7 +15,7 @@ import SpecResolver = require('./validators/specResolver')
import { ResponseWrapper } from './models/responseWrapper'
import { MarkdownHttpTemplate } from './templates/markdownHttpTemplate'
import { YamlHttpTemplate } from './templates/yamlHttpTemplate'
import Constants = require('./util/constants')
import { Constants } from './util/constants'
const ErrorCodes = Constants.ErrorCodes

Просмотреть файл

@ -6,7 +6,7 @@ import path = require('path')
import os = require('os')
import glob = require('glob')
import LiveValidator = require('../lib/validators/liveValidator.js')
import Constants = require('../lib/util/constants')
import { Constants } from '../lib/util/constants'
import utils = require('../lib/util/utils');
const livePaths = glob.sync(path.join(__dirname, 'liveValidation/swaggers/**/live/*.json'))

Просмотреть файл

@ -6,7 +6,7 @@ import assert = require('assert')
import path = require('path')
import os = require('os')
import LiveValidator = require('../lib/validators/liveValidator.js')
import Constants = require('../lib/util/constants');
import { Constants } from '../lib/util/constants'
let options = {
"directory": "./test/swaggers/arm-storage"