oav/index.ts

40 строки
1.3 KiB
TypeScript

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import * as C from "./lib/util/constants"
// Easy to use methods from validate.ts
export {
getDocumentsFromCompositeSwagger,
validateSpec,
validateCompositeSpec,
validateExamples,
validateExamplesInCompositeSpec,
resolveSpec,
resolveCompositeSpec,
} from "./lib/validate"
export { BaseValidationError } from "./lib/util/baseValidationError"
export { Severity } from "./lib/util/severity"
export { ModelValidationError } from "./lib/util/modelValidationError"
export { ValidationResultSource } from "./lib/util/validationResultSource"
export { getErrorsFromModelValidation } from "./lib/util/getErrorsFromModelValidation"
export {
errorConstants,
errorCodeToSeverity,
processValidationErrors,
serializeErrors,
ValidationError,
ValidationResult
} from "./lib/util/validationError"
export { executePromisesSequentially, clearCache } from "./lib/util/utils"
// Classes
export { SpecValidator } from "./lib/validators/specValidator"
export { LiveValidator } from "./lib/validators/liveValidator"
export { SpecResolver } from "./lib/validators/specResolver"
// Constants
export const Constants = C