-
Notifications
You must be signed in to change notification settings - Fork 55
/
index.ts
85 lines (72 loc) · 2.5 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
// 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 {
validateSpec,
validateExamples,
validateTraffic as 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 {
NodeError,
ValidationErrorMetadata,
errorCodeToErrorMetadata,
ValidationResult,
ErrorCode,
ExtendedErrorCode,
WrapperErrorCode,
RuntimeErrorCode,
RuntimeException,
} from "./lib/util/validationError";
export { getResourceType, getProvider } from "./lib/util/utils";
// Classes
export {
LiveValidator,
RequestResponsePair,
LiveValidationIssue,
LiveValidatorOptions,
RequestResponseLiveValidationResult,
LiveValidationResult,
ValidateOptions,
LiveValidatorLoggingTypes,
legacyParseValidationRequest as parseValidationRequest,
} from "./lib/liveValidation/liveValidator";
export {
LiveRequest,
LiveResponse,
ValidationRequest,
} from "./lib/liveValidation/operationValidator";
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 { 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";
// Constants
export const Constants = C;