-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy pathindex.ts
More file actions
169 lines (168 loc) · 4.04 KB
/
index.ts
File metadata and controls
169 lines (168 loc) · 4.04 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
export {
keysOf,
readFileFromUrl,
slash,
doesYamlFileExist,
isTruthy,
pause,
isPlainObject,
isString,
pluralize,
isEmptyObject,
isNotEmptyArray,
isNotEmptyObject,
type CollectFn,
type Exact,
} from './utils.js';
export { dequal } from './utils/dequal.js';
export { Oas2Types } from './types/oas2.js';
export { Oas3Types } from './types/oas3.js';
export { Oas3_1Types } from './types/oas3_1.js';
export { Oas3_2Types } from './types/oas3_2.js';
export { AsyncApi2Types } from './types/asyncapi2.js';
export { AsyncApi3Types } from './types/asyncapi3.js';
export { Arazzo1Types } from './types/arazzo.js';
export { Overlay1Types } from './types/overlay.js';
export { ConfigTypes, createConfigTypes } from './types/redocly-yaml.js';
export { normalizeTypes, type NormalizedNodeType, type NodeType } from './types/index.js';
export { Stats } from './rules/other/stats.js';
export {
loadConfig,
createConfig,
findConfig,
resolvePlugins,
ConfigValidationError,
Config, // FIXME: export it as a type
type RawUniversalConfig,
type RawUniversalApiConfig,
type ResolvedConfig,
type ResolvedApiConfig,
type Plugin,
type RuleConfig,
type RuleSeverity,
} from './config/index.js';
export * from './config/constants.js';
export {
Source,
BaseResolver,
Document,
ResolveError,
YamlParseError,
resolveDocument,
makeDocumentFromString,
type ResolvedRefMap,
} from './resolve.js';
export { parseYaml, stringifyYaml } from './js-yaml/index.js';
export {
unescapePointer,
isRef,
isAbsoluteUrl,
escapePointer,
type Location,
} from './ref-utils.js';
export {
detectSpec,
getMajorSpecVersion,
getTypes,
type SpecVersion,
type SpecMajorVersion,
} from './oas-types.js';
export {
normalizeVisitors,
type Oas3Visitor,
type Oas2Visitor,
type Async2Visitor,
type Async3Visitor,
type Arazzo1Visitor,
type Overlay1Visitor,
type Oas3Rule,
type Oas2Rule,
type Async2Rule,
type Async3Rule,
type Arazzo1Rule,
type Overlay1Rule,
type Oas3Decorator,
type Oas2Decorator,
type Async2Decorator,
type Async3Decorator,
type Arazzo1Decorator,
type Overlay1Decorator,
type Oas3Preprocessor,
type Oas2Preprocessor,
type Async2Preprocessor,
type Async3Preprocessor,
type Arazzo1Preprocessor,
type Overlay1Preprocessor,
} from './visitors.js';
export {
WalkContext,
NormalizedProblem,
ProblemSeverity,
LineColLocationObject,
LocationObject,
Loc,
walkDocument,
type UserContext,
} from './walk.js';
export { getAstNodeByPointer, getLineColLocation, getCodeframe } from './format/codeframes.js';
export { formatProblems, getTotals, type OutputFormat, type Totals } from './format/format.js';
export {
lint,
lint as validate,
lintDocument,
lintFromString,
lintConfig,
lintEntityFile,
} from './lint.js';
export {
bundle,
bundleDocument,
mapTypeToComponent,
bundleFromString,
type BundleResult,
} from './bundle.js';
export { type Assertions, type Assertion } from './rules/common/assertions/index.js';
export { logger, type LoggerInterface } from './logger.js';
export { HandledError } from './utils/error.js';
export { isBrowser } from './env.js';
export { EntityTypes, createEntityTypes } from './types/entity-yaml.js';
export type {
Oas3Definition,
Oas3_1Definition,
Oas3_2Definition,
Oas3Components,
Oas3_1Components,
Oas3PathItem,
Oas3Paths,
Oas3ComponentName,
Oas3Schema,
Oas3_1Schema,
Oas3Tag,
Oas3_2Tag,
Referenced,
OasRef,
Oas3Parameter,
Oas3Server,
Oas3Operation,
Oas3Responses,
ApiKeyAuth,
HttpAuth,
BasicAuth,
BearerAuth,
DigestAuth,
MutualTLSAuth,
OAuth2Auth,
OpenIDAuth,
Oas3SecurityScheme,
Oas3SecurityRequirement,
} from './typings/openapi.js';
export type { Oas2Definition } from './typings/swagger.js';
export type { Async3Definition } from './typings/asyncapi3.js';
export type { Async2Definition } from './typings/asyncapi.js';
export type {
ArazzoDefinition,
ExtendedOperation,
ExtendedSecurity,
ResolvedSecurity,
} from './typings/arazzo.js';
export type { StatsAccumulator, StatsName } from './typings/common.js';