Contants.
This commit is contained in:
Родитель
12396a489d
Коммит
efd237cfe4
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче