oav/index.ts

53 строки
1.6 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 {
getErrorsFromSemanticValidation,
SemanticValidationError,
} from "./lib/util/getErrorsFromSemanticValidation";
export {
NodeError,
ValidationErrorMetadata,
errorCodeToErrorMetadata,
ValidationResult,
ErrorCode,
ExtendedErrorCode,
WrapperErrorCode,
RuntimeErrorCode,
RuntimeException,
} from "./lib/util/validationError";
// Classes
export { SpecValidator } from "./lib/validators/specValidator";
export {
LiveValidator,
RequestResponsePair,
LiveValidationIssue,
LiveValidatorOptions,
RequestResponseLiveValidationResult,
LiveValidationResult,
ValidateOptions,
} from "./lib/liveValidation/liveValidator";
export { LiveRequest, LiveResponse } from "./lib/liveValidation/operationValidator";
export { SpecResolver } from "./lib/validators/specResolver";
// Constants
export const Constants = C;