-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
53 lines (49 loc) · 1.54 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 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
} from "./lib/util/validationError"
// Classes
export { SpecValidator } from "./lib/validators/specValidator"
export {
LiveValidator,
RequestResponsePair,
LiveRequest,
LiveResponse,
LiveValidationIssue,
LiveValidatorOptions,
ApiOperationIdentifier,
RequestResponseLiveValidationResult,
LiveValidationResult,
ValidateOptions
} from "./lib/validators/liveValidator"
export { SpecResolver } from "./lib/validators/specResolver"
// Constants
export const Constants = C