-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
111 lines (97 loc) · 3.35 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import "reflect-metadata";
import * as C from "./lib/util/constants";
// Easy to use methods from validate.ts
export {
getDocumentsFromCompositeSwagger,
validateSpec,
validateCompositeSpec,
validateExamples,
validateExamplesInCompositeSpec,
resolveSpec,
resolveCompositeSpec,
validateTrafficAgainstSpec,
} 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";
export { getResourceType, getProvider } from "./lib/util/utils";
// Classes
export { SpecValidator } from "./lib/validators/specValidator";
export {
LiveValidator,
RequestResponsePair,
LiveValidationIssue,
LiveValidatorOptions,
RequestResponseLiveValidationResult,
LiveValidationResult,
ValidateOptions,
LiveValidatorLoggingTypes,
parseValidationRequest,
} from "./lib/liveValidation/liveValidator";
export {
LiveRequest,
LiveResponse,
ValidationRequest,
} from "./lib/liveValidation/operationValidator";
export { SpecResolver } from "./lib/validators/specResolver";
export { ApiScenarioLoader } from "./lib/apiScenario/apiScenarioLoader";
export {
ScenarioDefinition,
Scenario,
Step,
StepArmTemplate,
StepRestCall,
} from "./lib/apiScenario/apiScenarioTypes";
export { VariableEnv } from "./lib/apiScenario/variableEnv";
export { ApiScenarioRunner, ApiScenarioRunnerClient } from "./lib/apiScenario/apiScenarioRunner";
export { PostmanCollectionRunnerClient } from "./lib/apiScenario/postmanCollectionRunnerClient";
export {
PostmanCollectionGenerator,
PostmanCollectionGeneratorOption,
} from "./lib/apiScenario/postmanCollectionGenerator";
export {
SwaggerAnalyzer,
SwaggerAnalyzerOption,
ExampleDependency,
DependencyResult,
normalizeDependency,
} from "./lib/apiScenario/swaggerAnalyzer";
export { FileLoaderOption, FileLoader } from "./lib/swagger/fileLoader";
export { SwaggerLoaderOption, SwaggerLoader } from "./lib/swagger/swaggerLoader";
export { SuppressionLoaderOption, SuppressionLoader } from "./lib/swagger/suppressionLoader";
export { JsonLoader, JsonLoaderOption, JsonLoaderRefError } from "./lib/swagger/jsonLoader";
export {
SwaggerExampleErrorDetail,
SwaggerExampleValidator,
NewModelValidator,
ExampleValidationOption,
} from "./lib/swaggerValidator/modelValidator";
export {
SemanticErrorDetail,
SwaggerSemanticValidator,
SemanticValidationOption,
SemanticValidator,
} from "./lib/swaggerValidator/semanticValidator";
export { TrafficValidationIssue, TrafficValidator } from "./lib/swaggerValidator/trafficValidator";
export { getAutorestConfig } from "./lib/util/getAutorestConfig";
// Constants
export const Constants = C;