specResolver
This commit is contained in:
Родитель
6d616105b7
Коммит
7aa1fb93d6
|
@ -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 = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче