This commit is contained in:
Sergey Shandar 2018-05-29 18:31:41 -07:00
Родитель 6d616105b7
Коммит 7aa1fb93d6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 1C1B75FAA0B9B3C8
7 изменённых файлов: 8 добавлений и 12 удалений

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

@ -11,7 +11,7 @@ import * as utils from './util/utils'
import SpecValidator = require('./validators/specValidator')
import WireFormatGenerator = require('./wireFormatGenerator')
import XMsExampleExtractor = require('./xMsExampleExtractor')
import SpecResolver = require('./validators/specResolver')
import { SpecResolver } from './validators/specResolver'
import UmlGenerator = require('./umlGenerator')
export let finalValidationResult: any = { validityStatus: true };

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

@ -20,7 +20,7 @@ import { PotentialOperationsResult } from '../models/potentialOperationsResult'
* @class
* Live Validator for Azure swagger APIs.
*/
class LiveValidator {
export class LiveValidator {
cache: any
/**
@ -522,5 +522,3 @@ class LiveValidator {
return validationResult
}
}
export = LiveValidator

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

@ -13,7 +13,7 @@ let ErrorCodes = Constants.ErrorCodes
* resolving the allof is present in any model definition and then setting additionalProperties
* to false if it is not previously set to true or an object in that definition.
*/
class SpecResolver {
export class SpecResolver {
specInJson: any
@ -888,7 +888,7 @@ class SpecResolver {
* @class
* Creates a tree by traversing the definitions where the parent model is the rootNode and child model is one of it's children.
*/
class PolymorphicTree {
export class PolymorphicTree {
name: string
children: Map<string, PolymorphicTree>
/**
@ -953,5 +953,3 @@ class PolymorphicTree {
return childObj
}
}
export = SpecResolver as any

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

@ -9,7 +9,7 @@ import msRest = require('ms-rest')
let HttpRequest = msRest.WebResource
import SpecResolver = require('./specResolver')
import { SpecResolver } from './specResolver'
import * as utils from '../util/utils'
import { Constants } from '../util/constants'
import { log } from '../util/logging'

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

@ -11,7 +11,7 @@ import msRest = require('ms-rest')
let HttpRequest = msRest.WebResource
import { log } from './util/logging'
import SpecResolver = require('./validators/specResolver')
import { SpecResolver } from './validators/specResolver'
import { ResponseWrapper } from './models/responseWrapper'
import { MarkdownHttpTemplate } from './templates/markdownHttpTemplate'
import { YamlHttpTemplate } from './templates/yamlHttpTemplate'

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

@ -5,7 +5,7 @@ import assert = require('assert')
import path = require('path')
import os = require('os')
import glob = require('glob')
import LiveValidator = require('../lib/validators/liveValidator.js')
import { LiveValidator } from '../lib/validators/liveValidator.js'
import { Constants } from '../lib/util/constants'
import * as utils from '../lib/util/utils'

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

@ -5,7 +5,7 @@
import assert = require('assert')
import path = require('path')
import os = require('os')
import LiveValidator = require('../lib/validators/liveValidator.js')
import { LiveValidator } from '../lib/validators/liveValidator.js'
import { Constants } from '../lib/util/constants'
let options = {