@nestia/sdk 3.2.3 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/lib/NestiaSdkApplication.d.ts +0 -1
- package/lib/analyses/ConfigAnalyzer.d.ts +0 -1
- package/lib/analyses/ExceptionAnalyzer.d.ts +0 -1
- package/lib/analyses/GenericAnalyzer.d.ts +0 -1
- package/lib/analyses/ImportAnalyzer.d.ts +0 -1
- package/lib/analyses/TypedControllerAnalyzer.d.ts +0 -1
- package/lib/analyses/TypedHttpOperationAnalyzer.d.ts +0 -1
- package/lib/analyses/TypedWebSocketOperationAnalyzer.d.ts +0 -1
- package/lib/executable/internal/NestiaConfigLoader.d.ts +0 -1
- package/lib/executable/internal/NestiaConfigLoader.js +2 -564
- package/lib/executable/internal/NestiaConfigLoader.js.map +1 -1
- package/lib/generates/SwaggerGenerator.d.ts +0 -1
- package/lib/generates/SwaggerGenerator.js +6 -64
- package/lib/generates/SwaggerGenerator.js.map +1 -1
- package/lib/generates/internal/FilePrinter.d.ts +0 -1
- package/lib/generates/internal/FilePrinter.js +1 -1
- package/lib/generates/internal/ImportDictionary.d.ts +0 -1
- package/lib/generates/internal/SdkAliasCollection.d.ts +0 -1
- package/lib/generates/internal/SdkAliasCollection.js +1 -4
- package/lib/generates/internal/SdkAliasCollection.js.map +1 -1
- package/lib/generates/internal/SdkDistributionComposer.js +1 -32
- package/lib/generates/internal/SdkDistributionComposer.js.map +1 -1
- package/lib/generates/internal/SdkHttpCloneProgrammer.d.ts +0 -1
- package/lib/generates/internal/SdkHttpFunctionProgrammer.d.ts +0 -1
- package/lib/generates/internal/SdkHttpFunctionProgrammer.js +4 -8
- package/lib/generates/internal/SdkHttpFunctionProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpNamespaceProgrammer.d.ts +0 -1
- package/lib/generates/internal/SdkHttpNamespaceProgrammer.js +7 -11
- package/lib/generates/internal/SdkHttpNamespaceProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpRouteProgrammer.d.ts +0 -1
- package/lib/generates/internal/SdkHttpSimulationProgrammer.d.ts +0 -1
- package/lib/generates/internal/SdkTypeProgrammer.d.ts +0 -1
- package/lib/generates/internal/SdkTypeProgrammer.js +2 -1
- package/lib/generates/internal/SdkTypeProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.d.ts +0 -1
- package/lib/generates/internal/SdkWebSocketRouteProgrammer.d.ts +0 -1
- package/lib/generates/internal/SwaggerSchemaGenerator.d.ts +0 -1
- package/lib/structures/INestiaProject.d.ts +0 -1
- package/lib/structures/ITypeTuple.d.ts +0 -1
- package/lib/structures/ITypedHttpRoute.d.ts +0 -1
- package/lib/structures/ITypedWebSocketRoute.d.ts +0 -1
- package/lib/structures/TypeEntry.d.ts +0 -1
- package/package.json +3 -3
- package/src/generates/internal/SdkTypeProgrammer.ts +1 -1
|
@@ -79,572 +79,10 @@ var NestiaConfigLoader;
|
|
|
79
79
|
? loaded.default
|
|
80
80
|
: loaded;
|
|
81
81
|
try {
|
|
82
|
-
return (
|
|
83
|
-
const __is = input => {
|
|
84
|
-
const $io0 = input => null !== input.input && undefined !== input.input && ("function" === typeof input.input || "string" === typeof input.input || (Array.isArray(input.input) && input.input.every(elem => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $io1(input.input))) && (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $io2(input.swagger)) && (undefined === input.output || "string" === typeof input.output) && (undefined === input.distribute || "string" === typeof input.distribute) && (undefined === input.simulate || "boolean" === typeof input.simulate) && (undefined === input.e2e || "string" === typeof input.e2e) && (undefined === input.propagate || "boolean" === typeof input.propagate) && (undefined === input.clone || "boolean" === typeof input.clone) && (undefined === input.primitive || "boolean" === typeof input.primitive) && (undefined === input.assert || "boolean" === typeof input.assert) && (undefined === input.json || "boolean" === typeof input.json);
|
|
85
|
-
const $io1 = input => Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem));
|
|
86
|
-
const $io2 = input => "string" === typeof input.output && (undefined === input.beautify || "number" === typeof input.beautify || "boolean" === typeof input.beautify) && (undefined === input.additional || "boolean" === typeof input.additional) && (undefined === input.info || "object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) && $io3(input.info)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.security || "object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) && $io9(input.security)) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io20(elem))) && (undefined === input.decompose || "boolean" === typeof input.decompose);
|
|
87
|
-
const $io3 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io4(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io5(input.license)) && (undefined === input.version || "string" === typeof input.version);
|
|
88
|
-
const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
|
89
|
-
const $io5 = input => "string" === typeof input.name && (undefined === input.identifier || "string" === typeof input.identifier) && (undefined === input.url || "string" === typeof input.url);
|
|
90
|
-
const $io6 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io7(input.variables));
|
|
91
|
-
const $io7 = input => Object.keys(input).every(key => {
|
|
92
|
-
const value = input[key];
|
|
93
|
-
if (undefined === value)
|
|
94
|
-
return true;
|
|
95
|
-
return "object" === typeof value && null !== value && $io8(value);
|
|
96
|
-
});
|
|
97
|
-
const $io8 = input => "string" === typeof input["default"] && (undefined === input["enum"] || Array.isArray(input["enum"]) && (1 <= input["enum"].length && input["enum"].every(elem => "string" === typeof elem))) && (undefined === input.description || "string" === typeof input.description);
|
|
98
|
-
const $io9 = input => Object.keys(input).every(key => {
|
|
99
|
-
const value = input[key];
|
|
100
|
-
if (undefined === value)
|
|
101
|
-
return true;
|
|
102
|
-
return "object" === typeof value && null !== value && $iu0(value);
|
|
103
|
-
});
|
|
104
|
-
const $io10 = input => "apiKey" === input.type && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
|
105
|
-
const $io11 = input => "http" === input.type && "basic" === input.scheme && (undefined === input.description || "string" === typeof input.description);
|
|
106
|
-
const $io12 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat) && (undefined === input.description || "string" === typeof input.description);
|
|
107
|
-
const $io13 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io14(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
|
108
|
-
const $io14 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) && $io15(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) && $io17(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) && $io18(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) && $io18(input.clientCredentials));
|
|
109
|
-
const $io15 = input => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io16(input.scopes));
|
|
110
|
-
const $io16 = input => Object.keys(input).every(key => {
|
|
111
|
-
const value = input[key];
|
|
112
|
-
if (undefined === value)
|
|
113
|
-
return true;
|
|
114
|
-
return "string" === typeof value;
|
|
115
|
-
});
|
|
116
|
-
const $io17 = input => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io16(input.scopes));
|
|
117
|
-
const $io18 = input => (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io16(input.scopes));
|
|
118
|
-
const $io19 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl && (undefined === input.description || "string" === typeof input.description);
|
|
119
|
-
const $io20 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
|
120
|
-
const $iu0 = input => (() => {
|
|
121
|
-
if ("apiKey" === input.type)
|
|
122
|
-
return $io10(input);
|
|
123
|
-
else if ("basic" === input.scheme)
|
|
124
|
-
return $io11(input);
|
|
125
|
-
else if ("bearer" === input.scheme)
|
|
126
|
-
return $io12(input);
|
|
127
|
-
else if ("oauth2" === input.type)
|
|
128
|
-
return $io13(input);
|
|
129
|
-
else if ("openIdConnect" === input.type)
|
|
130
|
-
return $io19(input);
|
|
131
|
-
else
|
|
132
|
-
return false;
|
|
133
|
-
})();
|
|
134
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
135
|
-
};
|
|
136
|
-
if (false === __is(input))
|
|
137
|
-
((input, _path, _exceptionable = true) => {
|
|
138
|
-
const $guard = typia_1.default.assert.guard;
|
|
139
|
-
const $join = typia_1.default.assert.join;
|
|
140
|
-
const $ao0 = (input, _path, _exceptionable = true) => (null !== input.input || $guard(_exceptionable, {
|
|
141
|
-
path: _path + ".input",
|
|
142
|
-
expected: "(Array<string> | INestiaConfig.IInput | string)",
|
|
143
|
-
value: input.input
|
|
144
|
-
}, errorFactory)) && (undefined !== input.input || $guard(_exceptionable, {
|
|
145
|
-
path: _path + ".input",
|
|
146
|
-
expected: "(Array<string> | INestiaConfig.IInput | string)",
|
|
147
|
-
value: input.input
|
|
148
|
-
}, errorFactory)) && ("function" === typeof input.input || "string" === typeof input.input || (Array.isArray(input.input) && input.input.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
149
|
-
path: _path + ".input[" + _index1 + "]",
|
|
150
|
-
expected: "string",
|
|
151
|
-
value: elem
|
|
152
|
-
}, errorFactory)) || "object" === typeof input.input && null !== input.input && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
|
|
153
|
-
path: _path + ".input",
|
|
154
|
-
expected: "(Array<string> | INestiaConfig.IInput | string)",
|
|
155
|
-
value: input.input
|
|
156
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
157
|
-
path: _path + ".input",
|
|
158
|
-
expected: "(Array<string> | INestiaConfig.IInput | string)",
|
|
159
|
-
value: input.input
|
|
160
|
-
}, errorFactory)) && (undefined === input.swagger || ("object" === typeof input.swagger && null !== input.swagger || $guard(_exceptionable, {
|
|
161
|
-
path: _path + ".swagger",
|
|
162
|
-
expected: "(INestiaConfig.ISwaggerConfig | undefined)",
|
|
163
|
-
value: input.swagger
|
|
164
|
-
}, errorFactory)) && $ao2(input.swagger, _path + ".swagger", true && _exceptionable) || $guard(_exceptionable, {
|
|
165
|
-
path: _path + ".swagger",
|
|
166
|
-
expected: "(INestiaConfig.ISwaggerConfig | undefined)",
|
|
167
|
-
value: input.swagger
|
|
168
|
-
}, errorFactory)) && (undefined === input.output || "string" === typeof input.output || $guard(_exceptionable, {
|
|
169
|
-
path: _path + ".output",
|
|
170
|
-
expected: "(string | undefined)",
|
|
171
|
-
value: input.output
|
|
172
|
-
}, errorFactory)) && (undefined === input.distribute || "string" === typeof input.distribute || $guard(_exceptionable, {
|
|
173
|
-
path: _path + ".distribute",
|
|
174
|
-
expected: "(string | undefined)",
|
|
175
|
-
value: input.distribute
|
|
176
|
-
}, errorFactory)) && (undefined === input.simulate || "boolean" === typeof input.simulate || $guard(_exceptionable, {
|
|
177
|
-
path: _path + ".simulate",
|
|
178
|
-
expected: "(boolean | undefined)",
|
|
179
|
-
value: input.simulate
|
|
180
|
-
}, errorFactory)) && (undefined === input.e2e || "string" === typeof input.e2e || $guard(_exceptionable, {
|
|
181
|
-
path: _path + ".e2e",
|
|
182
|
-
expected: "(string | undefined)",
|
|
183
|
-
value: input.e2e
|
|
184
|
-
}, errorFactory)) && (undefined === input.propagate || "boolean" === typeof input.propagate || $guard(_exceptionable, {
|
|
185
|
-
path: _path + ".propagate",
|
|
186
|
-
expected: "(boolean | undefined)",
|
|
187
|
-
value: input.propagate
|
|
188
|
-
}, errorFactory)) && (undefined === input.clone || "boolean" === typeof input.clone || $guard(_exceptionable, {
|
|
189
|
-
path: _path + ".clone",
|
|
190
|
-
expected: "(boolean | undefined)",
|
|
191
|
-
value: input.clone
|
|
192
|
-
}, errorFactory)) && (undefined === input.primitive || "boolean" === typeof input.primitive || $guard(_exceptionable, {
|
|
193
|
-
path: _path + ".primitive",
|
|
194
|
-
expected: "(boolean | undefined)",
|
|
195
|
-
value: input.primitive
|
|
196
|
-
}, errorFactory)) && (undefined === input.assert || "boolean" === typeof input.assert || $guard(_exceptionable, {
|
|
197
|
-
path: _path + ".assert",
|
|
198
|
-
expected: "(boolean | undefined)",
|
|
199
|
-
value: input.assert
|
|
200
|
-
}, errorFactory)) && (undefined === input.json || "boolean" === typeof input.json || $guard(_exceptionable, {
|
|
201
|
-
path: _path + ".json",
|
|
202
|
-
expected: "(boolean | undefined)",
|
|
203
|
-
value: input.json
|
|
204
|
-
}, errorFactory));
|
|
205
|
-
const $ao1 = (input, _path, _exceptionable = true) => ((Array.isArray(input.include) || $guard(_exceptionable, {
|
|
206
|
-
path: _path + ".include",
|
|
207
|
-
expected: "Array<string>",
|
|
208
|
-
value: input.include
|
|
209
|
-
}, errorFactory)) && input.include.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
|
|
210
|
-
path: _path + ".include[" + _index2 + "]",
|
|
211
|
-
expected: "string",
|
|
212
|
-
value: elem
|
|
213
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
214
|
-
path: _path + ".include",
|
|
215
|
-
expected: "Array<string>",
|
|
216
|
-
value: input.include
|
|
217
|
-
}, errorFactory)) && (undefined === input.exclude || (Array.isArray(input.exclude) || $guard(_exceptionable, {
|
|
218
|
-
path: _path + ".exclude",
|
|
219
|
-
expected: "(Array<string> | undefined)",
|
|
220
|
-
value: input.exclude
|
|
221
|
-
}, errorFactory)) && input.exclude.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
222
|
-
path: _path + ".exclude[" + _index3 + "]",
|
|
223
|
-
expected: "string",
|
|
224
|
-
value: elem
|
|
225
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
226
|
-
path: _path + ".exclude",
|
|
227
|
-
expected: "(Array<string> | undefined)",
|
|
228
|
-
value: input.exclude
|
|
229
|
-
}, errorFactory));
|
|
230
|
-
const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.output || $guard(_exceptionable, {
|
|
231
|
-
path: _path + ".output",
|
|
232
|
-
expected: "string",
|
|
233
|
-
value: input.output
|
|
234
|
-
}, errorFactory)) && (undefined === input.beautify || "number" === typeof input.beautify || "boolean" === typeof input.beautify || $guard(_exceptionable, {
|
|
235
|
-
path: _path + ".beautify",
|
|
236
|
-
expected: "(boolean | number | undefined)",
|
|
237
|
-
value: input.beautify
|
|
238
|
-
}, errorFactory)) && (undefined === input.additional || "boolean" === typeof input.additional || $guard(_exceptionable, {
|
|
239
|
-
path: _path + ".additional",
|
|
240
|
-
expected: "(boolean | undefined)",
|
|
241
|
-
value: input.additional
|
|
242
|
-
}, errorFactory)) && (undefined === input.info || ("object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) || $guard(_exceptionable, {
|
|
243
|
-
path: _path + ".info",
|
|
244
|
-
expected: "(Partial<OpenApi.IDocument.IInfo> | undefined)",
|
|
245
|
-
value: input.info
|
|
246
|
-
}, errorFactory)) && $ao3(input.info, _path + ".info", true && _exceptionable) || $guard(_exceptionable, {
|
|
247
|
-
path: _path + ".info",
|
|
248
|
-
expected: "(Partial<OpenApi.IDocument.IInfo> | undefined)",
|
|
249
|
-
value: input.info
|
|
250
|
-
}, errorFactory)) && (undefined === input.servers || (Array.isArray(input.servers) || $guard(_exceptionable, {
|
|
251
|
-
path: _path + ".servers",
|
|
252
|
-
expected: "(Array<OpenApi.IServer> | undefined)",
|
|
253
|
-
value: input.servers
|
|
254
|
-
}, errorFactory)) && input.servers.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
255
|
-
path: _path + ".servers[" + _index4 + "]",
|
|
256
|
-
expected: "OpenApi.IServer",
|
|
257
|
-
value: elem
|
|
258
|
-
}, errorFactory)) && $ao6(elem, _path + ".servers[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
259
|
-
path: _path + ".servers[" + _index4 + "]",
|
|
260
|
-
expected: "OpenApi.IServer",
|
|
261
|
-
value: elem
|
|
262
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
263
|
-
path: _path + ".servers",
|
|
264
|
-
expected: "(Array<OpenApi.IServer> | undefined)",
|
|
265
|
-
value: input.servers
|
|
266
|
-
}, errorFactory)) && (undefined === input.security || ("object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) || $guard(_exceptionable, {
|
|
267
|
-
path: _path + ".security",
|
|
268
|
-
expected: "(Record<string, OpenApi.ISecurityScheme> | undefined)",
|
|
269
|
-
value: input.security
|
|
270
|
-
}, errorFactory)) && $ao9(input.security, _path + ".security", true && _exceptionable) || $guard(_exceptionable, {
|
|
271
|
-
path: _path + ".security",
|
|
272
|
-
expected: "(Record<string, OpenApi.ISecurityScheme> | undefined)",
|
|
273
|
-
value: input.security
|
|
274
|
-
}, errorFactory)) && (undefined === input.tags || (Array.isArray(input.tags) || $guard(_exceptionable, {
|
|
275
|
-
path: _path + ".tags",
|
|
276
|
-
expected: "(Array<OpenApi.IDocument.ITag> | undefined)",
|
|
277
|
-
value: input.tags
|
|
278
|
-
}, errorFactory)) && input.tags.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
279
|
-
path: _path + ".tags[" + _index5 + "]",
|
|
280
|
-
expected: "OpenApi.IDocument.ITag",
|
|
281
|
-
value: elem
|
|
282
|
-
}, errorFactory)) && $ao20(elem, _path + ".tags[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
283
|
-
path: _path + ".tags[" + _index5 + "]",
|
|
284
|
-
expected: "OpenApi.IDocument.ITag",
|
|
285
|
-
value: elem
|
|
286
|
-
}, errorFactory)) || $guard(_exceptionable, {
|
|
287
|
-
path: _path + ".tags",
|
|
288
|
-
expected: "(Array<OpenApi.IDocument.ITag> | undefined)",
|
|
289
|
-
value: input.tags
|
|
290
|
-
}, errorFactory)) && (undefined === input.decompose || "boolean" === typeof input.decompose || $guard(_exceptionable, {
|
|
291
|
-
path: _path + ".decompose",
|
|
292
|
-
expected: "(boolean | undefined)",
|
|
293
|
-
value: input.decompose
|
|
294
|
-
}, errorFactory));
|
|
295
|
-
const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
|
|
296
|
-
path: _path + ".title",
|
|
297
|
-
expected: "(string | undefined)",
|
|
298
|
-
value: input.title
|
|
299
|
-
}, errorFactory)) && (undefined === input.summary || "string" === typeof input.summary || $guard(_exceptionable, {
|
|
300
|
-
path: _path + ".summary",
|
|
301
|
-
expected: "(string | undefined)",
|
|
302
|
-
value: input.summary
|
|
303
|
-
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
304
|
-
path: _path + ".description",
|
|
305
|
-
expected: "(string | undefined)",
|
|
306
|
-
value: input.description
|
|
307
|
-
}, errorFactory)) && (undefined === input.termsOfService || "string" === typeof input.termsOfService || $guard(_exceptionable, {
|
|
308
|
-
path: _path + ".termsOfService",
|
|
309
|
-
expected: "(string | undefined)",
|
|
310
|
-
value: input.termsOfService
|
|
311
|
-
}, errorFactory)) && (undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $guard(_exceptionable, {
|
|
312
|
-
path: _path + ".contact",
|
|
313
|
-
expected: "(OpenApi.IDocument.IContact | undefined)",
|
|
314
|
-
value: input.contact
|
|
315
|
-
}, errorFactory)) && $ao4(input.contact, _path + ".contact", true && _exceptionable) || $guard(_exceptionable, {
|
|
316
|
-
path: _path + ".contact",
|
|
317
|
-
expected: "(OpenApi.IDocument.IContact | undefined)",
|
|
318
|
-
value: input.contact
|
|
319
|
-
}, errorFactory)) && (undefined === input.license || ("object" === typeof input.license && null !== input.license || $guard(_exceptionable, {
|
|
320
|
-
path: _path + ".license",
|
|
321
|
-
expected: "(OpenApi.IDocument.ILicense | undefined)",
|
|
322
|
-
value: input.license
|
|
323
|
-
}, errorFactory)) && $ao5(input.license, _path + ".license", true && _exceptionable) || $guard(_exceptionable, {
|
|
324
|
-
path: _path + ".license",
|
|
325
|
-
expected: "(OpenApi.IDocument.ILicense | undefined)",
|
|
326
|
-
value: input.license
|
|
327
|
-
}, errorFactory)) && (undefined === input.version || "string" === typeof input.version || $guard(_exceptionable, {
|
|
328
|
-
path: _path + ".version",
|
|
329
|
-
expected: "(string | undefined)",
|
|
330
|
-
value: input.version
|
|
331
|
-
}, errorFactory));
|
|
332
|
-
const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
333
|
-
path: _path + ".name",
|
|
334
|
-
expected: "(string | undefined)",
|
|
335
|
-
value: input.name
|
|
336
|
-
}, errorFactory)) && (undefined === input.url || "string" === typeof input.url || $guard(_exceptionable, {
|
|
337
|
-
path: _path + ".url",
|
|
338
|
-
expected: "(string | undefined)",
|
|
339
|
-
value: input.url
|
|
340
|
-
}, errorFactory)) && (undefined === input.email || "string" === typeof input.email || $guard(_exceptionable, {
|
|
341
|
-
path: _path + ".email",
|
|
342
|
-
expected: "(string | undefined)",
|
|
343
|
-
value: input.email
|
|
344
|
-
}, errorFactory));
|
|
345
|
-
const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
|
346
|
-
path: _path + ".name",
|
|
347
|
-
expected: "string",
|
|
348
|
-
value: input.name
|
|
349
|
-
}, errorFactory)) && (undefined === input.identifier || "string" === typeof input.identifier || $guard(_exceptionable, {
|
|
350
|
-
path: _path + ".identifier",
|
|
351
|
-
expected: "(string | undefined)",
|
|
352
|
-
value: input.identifier
|
|
353
|
-
}, errorFactory)) && (undefined === input.url || "string" === typeof input.url || $guard(_exceptionable, {
|
|
354
|
-
path: _path + ".url",
|
|
355
|
-
expected: "(string | undefined)",
|
|
356
|
-
value: input.url
|
|
357
|
-
}, errorFactory));
|
|
358
|
-
const $ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input.url || $guard(_exceptionable, {
|
|
359
|
-
path: _path + ".url",
|
|
360
|
-
expected: "string",
|
|
361
|
-
value: input.url
|
|
362
|
-
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
363
|
-
path: _path + ".description",
|
|
364
|
-
expected: "(string | undefined)",
|
|
365
|
-
value: input.description
|
|
366
|
-
}, errorFactory)) && (undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || $guard(_exceptionable, {
|
|
367
|
-
path: _path + ".variables",
|
|
368
|
-
expected: "(Record<string, OpenApi.IServer.IVariable> | undefined)",
|
|
369
|
-
value: input.variables
|
|
370
|
-
}, errorFactory)) && $ao7(input.variables, _path + ".variables", true && _exceptionable) || $guard(_exceptionable, {
|
|
371
|
-
path: _path + ".variables",
|
|
372
|
-
expected: "(Record<string, OpenApi.IServer.IVariable> | undefined)",
|
|
373
|
-
value: input.variables
|
|
374
|
-
}, errorFactory));
|
|
375
|
-
const $ao7 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
376
|
-
const value = input[key];
|
|
377
|
-
if (undefined === value)
|
|
378
|
-
return true;
|
|
379
|
-
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
380
|
-
path: _path + $join(key),
|
|
381
|
-
expected: "OpenApi.IServer.IVariable",
|
|
382
|
-
value: value
|
|
383
|
-
}, errorFactory)) && $ao8(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
384
|
-
path: _path + $join(key),
|
|
385
|
-
expected: "OpenApi.IServer.IVariable",
|
|
386
|
-
value: value
|
|
387
|
-
}, errorFactory);
|
|
388
|
-
});
|
|
389
|
-
const $ao8 = (input, _path, _exceptionable = true) => ("string" === typeof input["default"] || $guard(_exceptionable, {
|
|
390
|
-
path: _path + "[\"default\"]",
|
|
391
|
-
expected: "string",
|
|
392
|
-
value: input["default"]
|
|
393
|
-
}, errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || $guard(_exceptionable, {
|
|
394
|
-
path: _path + "[\"enum\"]",
|
|
395
|
-
expected: "((Array<string> & MinItems<1>) | undefined)",
|
|
396
|
-
value: input["enum"]
|
|
397
|
-
}, errorFactory)) && ((1 <= input["enum"].length || $guard(_exceptionable, {
|
|
398
|
-
path: _path + "[\"enum\"]",
|
|
399
|
-
expected: "Array<> & MinItems<1>",
|
|
400
|
-
value: input["enum"]
|
|
401
|
-
}, errorFactory)) && input["enum"].every((elem, _index6) => "string" === typeof elem || $guard(_exceptionable, {
|
|
402
|
-
path: _path + "[\"enum\"][" + _index6 + "]",
|
|
403
|
-
expected: "string",
|
|
404
|
-
value: elem
|
|
405
|
-
}, errorFactory))) || $guard(_exceptionable, {
|
|
406
|
-
path: _path + "[\"enum\"]",
|
|
407
|
-
expected: "((Array<string> & MinItems<1>) | undefined)",
|
|
408
|
-
value: input["enum"]
|
|
409
|
-
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
410
|
-
path: _path + ".description",
|
|
411
|
-
expected: "(string | undefined)",
|
|
412
|
-
value: input.description
|
|
413
|
-
}, errorFactory));
|
|
414
|
-
const $ao9 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
415
|
-
const value = input[key];
|
|
416
|
-
if (undefined === value)
|
|
417
|
-
return true;
|
|
418
|
-
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
419
|
-
path: _path + $join(key),
|
|
420
|
-
expected: "(OpenApi.ISecurityScheme.IApiKey | OpenApi.ISecurityScheme.IHttpBasic | OpenApi.ISecurityScheme.IHttpBearer | OpenApi.ISecurityScheme.IOAuth2 | OpenApi.ISecurityScheme.IOpenId)",
|
|
421
|
-
value: value
|
|
422
|
-
}, errorFactory)) && $au0(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
423
|
-
path: _path + $join(key),
|
|
424
|
-
expected: "(OpenApi.ISecurityScheme.IApiKey | OpenApi.ISecurityScheme.IHttpBasic | OpenApi.ISecurityScheme.IHttpBearer | OpenApi.ISecurityScheme.IOAuth2 | OpenApi.ISecurityScheme.IOpenId)",
|
|
425
|
-
value: value
|
|
426
|
-
}, errorFactory);
|
|
427
|
-
});
|
|
428
|
-
const $ao10 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || $guard(_exceptionable, {
|
|
429
|
-
path: _path + ".type",
|
|
430
|
-
expected: "\"apiKey\"",
|
|
431
|
-
value: input.type
|
|
432
|
-
}, errorFactory)) && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || $guard(_exceptionable, {
|
|
433
|
-
path: _path + "[\"in\"]",
|
|
434
|
-
expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
|
|
435
|
-
value: input["in"]
|
|
436
|
-
}, errorFactory)) && (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
437
|
-
path: _path + ".name",
|
|
438
|
-
expected: "(string | undefined)",
|
|
439
|
-
value: input.name
|
|
440
|
-
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
441
|
-
path: _path + ".description",
|
|
442
|
-
expected: "(string | undefined)",
|
|
443
|
-
value: input.description
|
|
444
|
-
}, errorFactory));
|
|
445
|
-
const $ao11 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
|
|
446
|
-
path: _path + ".type",
|
|
447
|
-
expected: "\"http\"",
|
|
448
|
-
value: input.type
|
|
449
|
-
}, errorFactory)) && ("basic" === input.scheme || $guard(_exceptionable, {
|
|
450
|
-
path: _path + ".scheme",
|
|
451
|
-
expected: "\"basic\"",
|
|
452
|
-
value: input.scheme
|
|
453
|
-
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
454
|
-
path: _path + ".description",
|
|
455
|
-
expected: "(string | undefined)",
|
|
456
|
-
value: input.description
|
|
457
|
-
}, errorFactory));
|
|
458
|
-
const $ao12 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
|
|
459
|
-
path: _path + ".type",
|
|
460
|
-
expected: "\"http\"",
|
|
461
|
-
value: input.type
|
|
462
|
-
}, errorFactory)) && ("bearer" === input.scheme || $guard(_exceptionable, {
|
|
463
|
-
path: _path + ".scheme",
|
|
464
|
-
expected: "\"bearer\"",
|
|
465
|
-
value: input.scheme
|
|
466
|
-
}, errorFactory)) && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat || $guard(_exceptionable, {
|
|
467
|
-
path: _path + ".bearerFormat",
|
|
468
|
-
expected: "(string | undefined)",
|
|
469
|
-
value: input.bearerFormat
|
|
470
|
-
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
471
|
-
path: _path + ".description",
|
|
472
|
-
expected: "(string | undefined)",
|
|
473
|
-
value: input.description
|
|
474
|
-
}, errorFactory));
|
|
475
|
-
const $ao13 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || $guard(_exceptionable, {
|
|
476
|
-
path: _path + ".type",
|
|
477
|
-
expected: "\"oauth2\"",
|
|
478
|
-
value: input.type
|
|
479
|
-
}, errorFactory)) && (("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || $guard(_exceptionable, {
|
|
480
|
-
path: _path + ".flows",
|
|
481
|
-
expected: "OpenApi.ISecurityScheme.IOAuth2.IFlowSet",
|
|
482
|
-
value: input.flows
|
|
483
|
-
}, errorFactory)) && $ao14(input.flows, _path + ".flows", true && _exceptionable) || $guard(_exceptionable, {
|
|
484
|
-
path: _path + ".flows",
|
|
485
|
-
expected: "OpenApi.ISecurityScheme.IOAuth2.IFlowSet",
|
|
486
|
-
value: input.flows
|
|
487
|
-
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
488
|
-
path: _path + ".description",
|
|
489
|
-
expected: "(string | undefined)",
|
|
490
|
-
value: input.description
|
|
491
|
-
}, errorFactory));
|
|
492
|
-
const $ao14 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) || $guard(_exceptionable, {
|
|
493
|
-
path: _path + ".authorizationCode",
|
|
494
|
-
expected: "(OpenApi.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
|
495
|
-
value: input.authorizationCode
|
|
496
|
-
}, errorFactory)) && $ao15(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $guard(_exceptionable, {
|
|
497
|
-
path: _path + ".authorizationCode",
|
|
498
|
-
expected: "(OpenApi.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
|
499
|
-
value: input.authorizationCode
|
|
500
|
-
}, errorFactory)) && (undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) || $guard(_exceptionable, {
|
|
501
|
-
path: _path + ".implicit",
|
|
502
|
-
expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
|
503
|
-
value: input.implicit
|
|
504
|
-
}, errorFactory)) && $ao17(input.implicit, _path + ".implicit", true && _exceptionable) || $guard(_exceptionable, {
|
|
505
|
-
path: _path + ".implicit",
|
|
506
|
-
expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
|
507
|
-
value: input.implicit
|
|
508
|
-
}, errorFactory)) && (undefined === input.password || ("object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) || $guard(_exceptionable, {
|
|
509
|
-
path: _path + ".password",
|
|
510
|
-
expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
|
511
|
-
value: input.password
|
|
512
|
-
}, errorFactory)) && $ao18(input.password, _path + ".password", true && _exceptionable) || $guard(_exceptionable, {
|
|
513
|
-
path: _path + ".password",
|
|
514
|
-
expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
|
515
|
-
value: input.password
|
|
516
|
-
}, errorFactory)) && (undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) || $guard(_exceptionable, {
|
|
517
|
-
path: _path + ".clientCredentials",
|
|
518
|
-
expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
|
519
|
-
value: input.clientCredentials
|
|
520
|
-
}, errorFactory)) && $ao18(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $guard(_exceptionable, {
|
|
521
|
-
path: _path + ".clientCredentials",
|
|
522
|
-
expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
|
523
|
-
value: input.clientCredentials
|
|
524
|
-
}, errorFactory));
|
|
525
|
-
const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $guard(_exceptionable, {
|
|
526
|
-
path: _path + ".authorizationUrl",
|
|
527
|
-
expected: "(string | undefined)",
|
|
528
|
-
value: input.authorizationUrl
|
|
529
|
-
}, errorFactory)) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $guard(_exceptionable, {
|
|
530
|
-
path: _path + ".tokenUrl",
|
|
531
|
-
expected: "(string | undefined)",
|
|
532
|
-
value: input.tokenUrl
|
|
533
|
-
}, errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $guard(_exceptionable, {
|
|
534
|
-
path: _path + ".refreshUrl",
|
|
535
|
-
expected: "(string | undefined)",
|
|
536
|
-
value: input.refreshUrl
|
|
537
|
-
}, errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
|
|
538
|
-
path: _path + ".scopes",
|
|
539
|
-
expected: "(Record<string, string> | undefined)",
|
|
540
|
-
value: input.scopes
|
|
541
|
-
}, errorFactory)) && $ao16(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
|
542
|
-
path: _path + ".scopes",
|
|
543
|
-
expected: "(Record<string, string> | undefined)",
|
|
544
|
-
value: input.scopes
|
|
545
|
-
}, errorFactory));
|
|
546
|
-
const $ao16 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
547
|
-
const value = input[key];
|
|
548
|
-
if (undefined === value)
|
|
549
|
-
return true;
|
|
550
|
-
return "string" === typeof value || $guard(_exceptionable, {
|
|
551
|
-
path: _path + $join(key),
|
|
552
|
-
expected: "string",
|
|
553
|
-
value: value
|
|
554
|
-
}, errorFactory);
|
|
555
|
-
});
|
|
556
|
-
const $ao17 = (input, _path, _exceptionable = true) => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $guard(_exceptionable, {
|
|
557
|
-
path: _path + ".authorizationUrl",
|
|
558
|
-
expected: "(string | undefined)",
|
|
559
|
-
value: input.authorizationUrl
|
|
560
|
-
}, errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $guard(_exceptionable, {
|
|
561
|
-
path: _path + ".refreshUrl",
|
|
562
|
-
expected: "(string | undefined)",
|
|
563
|
-
value: input.refreshUrl
|
|
564
|
-
}, errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
|
|
565
|
-
path: _path + ".scopes",
|
|
566
|
-
expected: "(Record<string, string> | undefined)",
|
|
567
|
-
value: input.scopes
|
|
568
|
-
}, errorFactory)) && $ao16(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
|
569
|
-
path: _path + ".scopes",
|
|
570
|
-
expected: "(Record<string, string> | undefined)",
|
|
571
|
-
value: input.scopes
|
|
572
|
-
}, errorFactory));
|
|
573
|
-
const $ao18 = (input, _path, _exceptionable = true) => (undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $guard(_exceptionable, {
|
|
574
|
-
path: _path + ".tokenUrl",
|
|
575
|
-
expected: "(string | undefined)",
|
|
576
|
-
value: input.tokenUrl
|
|
577
|
-
}, errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $guard(_exceptionable, {
|
|
578
|
-
path: _path + ".refreshUrl",
|
|
579
|
-
expected: "(string | undefined)",
|
|
580
|
-
value: input.refreshUrl
|
|
581
|
-
}, errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
|
|
582
|
-
path: _path + ".scopes",
|
|
583
|
-
expected: "(Record<string, string> | undefined)",
|
|
584
|
-
value: input.scopes
|
|
585
|
-
}, errorFactory)) && $ao16(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
|
586
|
-
path: _path + ".scopes",
|
|
587
|
-
expected: "(Record<string, string> | undefined)",
|
|
588
|
-
value: input.scopes
|
|
589
|
-
}, errorFactory));
|
|
590
|
-
const $ao19 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || $guard(_exceptionable, {
|
|
591
|
-
path: _path + ".type",
|
|
592
|
-
expected: "\"openIdConnect\"",
|
|
593
|
-
value: input.type
|
|
594
|
-
}, errorFactory)) && ("string" === typeof input.openIdConnectUrl || $guard(_exceptionable, {
|
|
595
|
-
path: _path + ".openIdConnectUrl",
|
|
596
|
-
expected: "string",
|
|
597
|
-
value: input.openIdConnectUrl
|
|
598
|
-
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
599
|
-
path: _path + ".description",
|
|
600
|
-
expected: "(string | undefined)",
|
|
601
|
-
value: input.description
|
|
602
|
-
}, errorFactory));
|
|
603
|
-
const $ao20 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
|
604
|
-
path: _path + ".name",
|
|
605
|
-
expected: "string",
|
|
606
|
-
value: input.name
|
|
607
|
-
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
608
|
-
path: _path + ".description",
|
|
609
|
-
expected: "(string | undefined)",
|
|
610
|
-
value: input.description
|
|
611
|
-
}, errorFactory));
|
|
612
|
-
const $au0 = (input, _path, _exceptionable = true) => (() => {
|
|
613
|
-
if ("apiKey" === input.type)
|
|
614
|
-
return $ao10(input, _path, true && _exceptionable);
|
|
615
|
-
else if ("basic" === input.scheme)
|
|
616
|
-
return $ao11(input, _path, true && _exceptionable);
|
|
617
|
-
else if ("bearer" === input.scheme)
|
|
618
|
-
return $ao12(input, _path, true && _exceptionable);
|
|
619
|
-
else if ("oauth2" === input.type)
|
|
620
|
-
return $ao13(input, _path, true && _exceptionable);
|
|
621
|
-
else if ("openIdConnect" === input.type)
|
|
622
|
-
return $ao19(input, _path, true && _exceptionable);
|
|
623
|
-
else
|
|
624
|
-
return $guard(_exceptionable, {
|
|
625
|
-
path: _path,
|
|
626
|
-
expected: "(OpenApi.ISecurityScheme.IApiKey | OpenApi.ISecurityScheme.IHttpBasic | OpenApi.ISecurityScheme.IHttpBearer | OpenApi.ISecurityScheme.IOAuth2 | OpenApi.ISecurityScheme.IOpenId)",
|
|
627
|
-
value: input
|
|
628
|
-
}, errorFactory);
|
|
629
|
-
})();
|
|
630
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
631
|
-
path: _path + "",
|
|
632
|
-
expected: "INestiaConfig",
|
|
633
|
-
value: input
|
|
634
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
635
|
-
path: _path + "",
|
|
636
|
-
expected: "INestiaConfig",
|
|
637
|
-
value: input
|
|
638
|
-
}, errorFactory);
|
|
639
|
-
})(input, "$input", true);
|
|
640
|
-
return input;
|
|
641
|
-
})(config);
|
|
82
|
+
return typia_1.default.assert(config);
|
|
642
83
|
}
|
|
643
84
|
catch (exp) {
|
|
644
|
-
if ((
|
|
645
|
-
const $io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack);
|
|
646
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
647
|
-
})(exp))
|
|
85
|
+
if (typia_1.default.is(exp))
|
|
648
86
|
exp.message = `invalid "${file}" data.`;
|
|
649
87
|
throw exp;
|
|
650
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestiaConfigLoader.js","sourceRoot":"","sources":["../../../src/executable/internal/NestiaConfigLoader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,qCAAmC;AACnC,uCAAuC;AACvC,4DAA4B;AAC5B,kDAA0B;AAI1B,IAAiB,kBAAkB,CAyDlC;AAzDD,WAAiB,kBAAkB;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