@nestia/sdk 4.0.3 → 4.0.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.
@@ -46,6 +46,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.NestiaConfigLoader = void 0;
49
+ const __typia_transform__assertGuard = __importStar(require("typia/lib/internal/_assertGuard.js"));
50
+ const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString.js"));
49
51
  const NoTransformConfigurationError_1 = require("@nestia/core/lib/decorators/NoTransformConfigurationError");
50
52
  const fs_1 = __importDefault(require("fs"));
51
53
  const path_1 = __importDefault(require("path"));
@@ -70,9 +72,33 @@ var NestiaConfigLoader;
70
72
  throw new Error(`Unable to find "${file}" file.`);
71
73
  NoTransformConfigurationError_1.NoTransformConfigurationError.throws = false;
72
74
  const plugins = [
73
- ...typia_1.default
74
- .assert((_a = compilerOptions.plugins) !== null && _a !== void 0 ? _a : [])
75
- .filter((x) => x.transform !== "@nestia/sdk/lib/transform"),
75
+ ...(() => { const _io0 = input => true; const _ao0 = (input, _path, _exceptionable = true) => true; const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io0(elem)); let _errorFactory; return (input, errorFactory) => {
76
+ if (false === __is(input)) {
77
+ _errorFactory = errorFactory;
78
+ ((input, _path, _exceptionable = true) => (Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
79
+ method: "typia\r\n .assert",
80
+ path: _path + "",
81
+ expected: "Array<object>",
82
+ value: input
83
+ }, _errorFactory)) && input.every((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(true, {
84
+ method: "typia\r\n .assert",
85
+ path: _path + "[" + _index2 + "]",
86
+ expected: "object",
87
+ value: elem
88
+ }, _errorFactory)) && _ao0(elem, _path + "[" + _index2 + "]", true) || __typia_transform__assertGuard._assertGuard(true, {
89
+ method: "typia\r\n .assert",
90
+ path: _path + "[" + _index2 + "]",
91
+ expected: "object",
92
+ value: elem
93
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(true, {
94
+ method: "typia\r\n .assert",
95
+ path: _path + "",
96
+ expected: "Array<object>",
97
+ value: input
98
+ }, _errorFactory))(input, "$input", true);
99
+ }
100
+ return input;
101
+ }; })()((_a = compilerOptions.plugins) !== null && _a !== void 0 ? _a : []).filter((x) => x.transform !== "@nestia/sdk/lib/transform"),
76
102
  { transform: "@nestia/sdk/lib/transform" },
77
103
  ];
78
104
  (0, ts_node_1.register)({
@@ -90,10 +116,647 @@ var NestiaConfigLoader;
90
116
  ? instance
91
117
  : [instance];
92
118
  try {
93
- return typia_1.default.assert(configurations);
119
+ return (() => { 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); 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)); const _io2 = input => "string" === typeof input.output && (undefined === input.openapi || "2.0" === input.openapi || "3.0" === input.openapi || "3.1" === input.openapi) && (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); 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); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email && /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email)); const _io5 = input => "string" === typeof input.name && (undefined === input.identifier || "string" === typeof input.identifier) && (undefined === input.url || "string" === typeof input.url); 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)); const _io7 = input => Object.keys(input).every(key => {
120
+ const value = input[key];
121
+ if (undefined === value)
122
+ return true;
123
+ return "object" === typeof value && null !== value && _io8(value);
124
+ }); const _io8 = input => "string" === typeof input["default"] && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.description || "string" === typeof input.description); const _io9 = input => Object.keys(input).every(key => {
125
+ const value = input[key];
126
+ if (undefined === value)
127
+ return true;
128
+ return "object" === typeof value && null !== value && _iu0(value);
129
+ }); 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); const _io11 = input => "http" === input.type && "basic" === input.scheme && (undefined === input.description || "string" === typeof input.description); const _io12 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat) && (undefined === input.description || "string" === typeof input.description); 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); 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)); 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)); const _io16 = input => Object.keys(input).every(key => {
130
+ const value = input[key];
131
+ if (undefined === value)
132
+ return true;
133
+ return "string" === typeof value;
134
+ }); 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)); 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)); const _io19 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl && (undefined === input.description || "string" === typeof input.description); const _io20 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _iu0 = input => (() => {
135
+ if ("apiKey" === input.type)
136
+ return _io10(input);
137
+ else if ("basic" === input.scheme)
138
+ return _io11(input);
139
+ else if ("bearer" === input.scheme)
140
+ return _io12(input);
141
+ else if ("oauth2" === input.type)
142
+ return _io13(input);
143
+ else if ("openIdConnect" === input.type)
144
+ return _io19(input);
145
+ else
146
+ return false;
147
+ })(); const _ao0 = (input, _path, _exceptionable = true) => (null !== input.input || __typia_transform__assertGuard._assertGuard(_exceptionable, {
148
+ method: "typia.assert",
149
+ path: _path + ".input",
150
+ expected: "(Array<string> | INestiaConfig.IInput | string)",
151
+ value: input.input
152
+ }, _errorFactory)) && (undefined !== input.input || __typia_transform__assertGuard._assertGuard(_exceptionable, {
153
+ method: "typia.assert",
154
+ path: _path + ".input",
155
+ expected: "(Array<string> | INestiaConfig.IInput | string)",
156
+ value: input.input
157
+ }, _errorFactory)) && ("function" === typeof input.input || "string" === typeof input.input || (Array.isArray(input.input) && input.input.every((elem, _index9) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
158
+ method: "typia.assert",
159
+ path: _path + ".input[" + _index9 + "]",
160
+ expected: "string",
161
+ value: elem
162
+ }, _errorFactory)) || "object" === typeof input.input && null !== input.input && _ao1(input.input, _path + ".input", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
163
+ method: "typia.assert",
164
+ path: _path + ".input",
165
+ expected: "(Array<string> | INestiaConfig.IInput | string)",
166
+ value: input.input
167
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
168
+ method: "typia.assert",
169
+ path: _path + ".input",
170
+ expected: "(Array<string> | INestiaConfig.IInput | string)",
171
+ value: input.input
172
+ }, _errorFactory)) && (undefined === input.swagger || ("object" === typeof input.swagger && null !== input.swagger || __typia_transform__assertGuard._assertGuard(_exceptionable, {
173
+ method: "typia.assert",
174
+ path: _path + ".swagger",
175
+ expected: "(INestiaConfig.ISwaggerConfig | undefined)",
176
+ value: input.swagger
177
+ }, _errorFactory)) && _ao2(input.swagger, _path + ".swagger", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
178
+ method: "typia.assert",
179
+ path: _path + ".swagger",
180
+ expected: "(INestiaConfig.ISwaggerConfig | undefined)",
181
+ value: input.swagger
182
+ }, _errorFactory)) && (undefined === input.output || "string" === typeof input.output || __typia_transform__assertGuard._assertGuard(_exceptionable, {
183
+ method: "typia.assert",
184
+ path: _path + ".output",
185
+ expected: "(string | undefined)",
186
+ value: input.output
187
+ }, _errorFactory)) && (undefined === input.distribute || "string" === typeof input.distribute || __typia_transform__assertGuard._assertGuard(_exceptionable, {
188
+ method: "typia.assert",
189
+ path: _path + ".distribute",
190
+ expected: "(string | undefined)",
191
+ value: input.distribute
192
+ }, _errorFactory)) && (undefined === input.simulate || "boolean" === typeof input.simulate || __typia_transform__assertGuard._assertGuard(_exceptionable, {
193
+ method: "typia.assert",
194
+ path: _path + ".simulate",
195
+ expected: "(boolean | undefined)",
196
+ value: input.simulate
197
+ }, _errorFactory)) && (undefined === input.e2e || "string" === typeof input.e2e || __typia_transform__assertGuard._assertGuard(_exceptionable, {
198
+ method: "typia.assert",
199
+ path: _path + ".e2e",
200
+ expected: "(string | undefined)",
201
+ value: input.e2e
202
+ }, _errorFactory)) && (undefined === input.propagate || "boolean" === typeof input.propagate || __typia_transform__assertGuard._assertGuard(_exceptionable, {
203
+ method: "typia.assert",
204
+ path: _path + ".propagate",
205
+ expected: "(boolean | undefined)",
206
+ value: input.propagate
207
+ }, _errorFactory)) && (undefined === input.clone || "boolean" === typeof input.clone || __typia_transform__assertGuard._assertGuard(_exceptionable, {
208
+ method: "typia.assert",
209
+ path: _path + ".clone",
210
+ expected: "(boolean | undefined)",
211
+ value: input.clone
212
+ }, _errorFactory)) && (undefined === input.primitive || "boolean" === typeof input.primitive || __typia_transform__assertGuard._assertGuard(_exceptionable, {
213
+ method: "typia.assert",
214
+ path: _path + ".primitive",
215
+ expected: "(boolean | undefined)",
216
+ value: input.primitive
217
+ }, _errorFactory)) && (undefined === input.assert || "boolean" === typeof input.assert || __typia_transform__assertGuard._assertGuard(_exceptionable, {
218
+ method: "typia.assert",
219
+ path: _path + ".assert",
220
+ expected: "(boolean | undefined)",
221
+ value: input.assert
222
+ }, _errorFactory)) && (undefined === input.json || "boolean" === typeof input.json || __typia_transform__assertGuard._assertGuard(_exceptionable, {
223
+ method: "typia.assert",
224
+ path: _path + ".json",
225
+ expected: "(boolean | undefined)",
226
+ value: input.json
227
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => ((Array.isArray(input.include) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
228
+ method: "typia.assert",
229
+ path: _path + ".include",
230
+ expected: "Array<string>",
231
+ value: input.include
232
+ }, _errorFactory)) && input.include.every((elem, _index10) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
233
+ method: "typia.assert",
234
+ path: _path + ".include[" + _index10 + "]",
235
+ expected: "string",
236
+ value: elem
237
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
238
+ method: "typia.assert",
239
+ path: _path + ".include",
240
+ expected: "Array<string>",
241
+ value: input.include
242
+ }, _errorFactory)) && (undefined === input.exclude || (Array.isArray(input.exclude) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
243
+ method: "typia.assert",
244
+ path: _path + ".exclude",
245
+ expected: "(Array<string> | undefined)",
246
+ value: input.exclude
247
+ }, _errorFactory)) && input.exclude.every((elem, _index11) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
248
+ method: "typia.assert",
249
+ path: _path + ".exclude[" + _index11 + "]",
250
+ expected: "string",
251
+ value: elem
252
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
253
+ method: "typia.assert",
254
+ path: _path + ".exclude",
255
+ expected: "(Array<string> | undefined)",
256
+ value: input.exclude
257
+ }, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.output || __typia_transform__assertGuard._assertGuard(_exceptionable, {
258
+ method: "typia.assert",
259
+ path: _path + ".output",
260
+ expected: "string",
261
+ value: input.output
262
+ }, _errorFactory)) && (undefined === input.openapi || "2.0" === input.openapi || "3.0" === input.openapi || "3.1" === input.openapi || __typia_transform__assertGuard._assertGuard(_exceptionable, {
263
+ method: "typia.assert",
264
+ path: _path + ".openapi",
265
+ expected: "(\"2.0\" | \"3.0\" | \"3.1\" | undefined)",
266
+ value: input.openapi
267
+ }, _errorFactory)) && (undefined === input.beautify || "number" === typeof input.beautify || "boolean" === typeof input.beautify || __typia_transform__assertGuard._assertGuard(_exceptionable, {
268
+ method: "typia.assert",
269
+ path: _path + ".beautify",
270
+ expected: "(boolean | number | undefined)",
271
+ value: input.beautify
272
+ }, _errorFactory)) && (undefined === input.additional || "boolean" === typeof input.additional || __typia_transform__assertGuard._assertGuard(_exceptionable, {
273
+ method: "typia.assert",
274
+ path: _path + ".additional",
275
+ expected: "(boolean | undefined)",
276
+ value: input.additional
277
+ }, _errorFactory)) && (undefined === input.info || ("object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
278
+ method: "typia.assert",
279
+ path: _path + ".info",
280
+ expected: "(Partial<OpenApi.IDocument.IInfo> | undefined)",
281
+ value: input.info
282
+ }, _errorFactory)) && _ao3(input.info, _path + ".info", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
283
+ method: "typia.assert",
284
+ path: _path + ".info",
285
+ expected: "(Partial<OpenApi.IDocument.IInfo> | undefined)",
286
+ value: input.info
287
+ }, _errorFactory)) && (undefined === input.servers || (Array.isArray(input.servers) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
288
+ method: "typia.assert",
289
+ path: _path + ".servers",
290
+ expected: "(Array<OpenApi.IServer> | undefined)",
291
+ value: input.servers
292
+ }, _errorFactory)) && input.servers.every((elem, _index12) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
293
+ method: "typia.assert",
294
+ path: _path + ".servers[" + _index12 + "]",
295
+ expected: "OpenApi.IServer",
296
+ value: elem
297
+ }, _errorFactory)) && _ao6(elem, _path + ".servers[" + _index12 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
298
+ method: "typia.assert",
299
+ path: _path + ".servers[" + _index12 + "]",
300
+ expected: "OpenApi.IServer",
301
+ value: elem
302
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
303
+ method: "typia.assert",
304
+ path: _path + ".servers",
305
+ expected: "(Array<OpenApi.IServer> | undefined)",
306
+ value: input.servers
307
+ }, _errorFactory)) && (undefined === input.security || ("object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
308
+ method: "typia.assert",
309
+ path: _path + ".security",
310
+ expected: "(Record<string, OpenApi.ISecurityScheme> | undefined)",
311
+ value: input.security
312
+ }, _errorFactory)) && _ao9(input.security, _path + ".security", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
313
+ method: "typia.assert",
314
+ path: _path + ".security",
315
+ expected: "(Record<string, OpenApi.ISecurityScheme> | undefined)",
316
+ value: input.security
317
+ }, _errorFactory)) && (undefined === input.tags || (Array.isArray(input.tags) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
318
+ method: "typia.assert",
319
+ path: _path + ".tags",
320
+ expected: "(Array<OpenApi.IDocument.ITag> | undefined)",
321
+ value: input.tags
322
+ }, _errorFactory)) && input.tags.every((elem, _index13) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
323
+ method: "typia.assert",
324
+ path: _path + ".tags[" + _index13 + "]",
325
+ expected: "OpenApi.IDocument.ITag",
326
+ value: elem
327
+ }, _errorFactory)) && _ao20(elem, _path + ".tags[" + _index13 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
328
+ method: "typia.assert",
329
+ path: _path + ".tags[" + _index13 + "]",
330
+ expected: "OpenApi.IDocument.ITag",
331
+ value: elem
332
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
333
+ method: "typia.assert",
334
+ path: _path + ".tags",
335
+ expected: "(Array<OpenApi.IDocument.ITag> | undefined)",
336
+ value: input.tags
337
+ }, _errorFactory)) && (undefined === input.decompose || "boolean" === typeof input.decompose || __typia_transform__assertGuard._assertGuard(_exceptionable, {
338
+ method: "typia.assert",
339
+ path: _path + ".decompose",
340
+ expected: "(boolean | undefined)",
341
+ value: input.decompose
342
+ }, _errorFactory)); const _ao3 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
343
+ method: "typia.assert",
344
+ path: _path + ".title",
345
+ expected: "(string | undefined)",
346
+ value: input.title
347
+ }, _errorFactory)) && (undefined === input.summary || "string" === typeof input.summary || __typia_transform__assertGuard._assertGuard(_exceptionable, {
348
+ method: "typia.assert",
349
+ path: _path + ".summary",
350
+ expected: "(string | undefined)",
351
+ value: input.summary
352
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
353
+ method: "typia.assert",
354
+ path: _path + ".description",
355
+ expected: "(string | undefined)",
356
+ value: input.description
357
+ }, _errorFactory)) && (undefined === input.termsOfService || "string" === typeof input.termsOfService || __typia_transform__assertGuard._assertGuard(_exceptionable, {
358
+ method: "typia.assert",
359
+ path: _path + ".termsOfService",
360
+ expected: "(string | undefined)",
361
+ value: input.termsOfService
362
+ }, _errorFactory)) && (undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
363
+ method: "typia.assert",
364
+ path: _path + ".contact",
365
+ expected: "(OpenApi.IDocument.IContact | undefined)",
366
+ value: input.contact
367
+ }, _errorFactory)) && _ao4(input.contact, _path + ".contact", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
368
+ method: "typia.assert",
369
+ path: _path + ".contact",
370
+ expected: "(OpenApi.IDocument.IContact | undefined)",
371
+ value: input.contact
372
+ }, _errorFactory)) && (undefined === input.license || ("object" === typeof input.license && null !== input.license || __typia_transform__assertGuard._assertGuard(_exceptionable, {
373
+ method: "typia.assert",
374
+ path: _path + ".license",
375
+ expected: "(OpenApi.IDocument.ILicense | undefined)",
376
+ value: input.license
377
+ }, _errorFactory)) && _ao5(input.license, _path + ".license", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
378
+ method: "typia.assert",
379
+ path: _path + ".license",
380
+ expected: "(OpenApi.IDocument.ILicense | undefined)",
381
+ value: input.license
382
+ }, _errorFactory)) && (undefined === input.version || "string" === typeof input.version || __typia_transform__assertGuard._assertGuard(_exceptionable, {
383
+ method: "typia.assert",
384
+ path: _path + ".version",
385
+ expected: "(string | undefined)",
386
+ value: input.version
387
+ }, _errorFactory)); const _ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
388
+ method: "typia.assert",
389
+ path: _path + ".name",
390
+ expected: "(string | undefined)",
391
+ value: input.name
392
+ }, _errorFactory)) && (undefined === input.url || "string" === typeof input.url || __typia_transform__assertGuard._assertGuard(_exceptionable, {
393
+ method: "typia.assert",
394
+ path: _path + ".url",
395
+ expected: "(string | undefined)",
396
+ value: input.url
397
+ }, _errorFactory)) && (undefined === input.email || "string" === typeof input.email && (/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
398
+ method: "typia.assert",
399
+ path: _path + ".email",
400
+ expected: "string & Format<\"email\">",
401
+ value: input.email
402
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
403
+ method: "typia.assert",
404
+ path: _path + ".email",
405
+ expected: "((string & Format<\"email\">) | undefined)",
406
+ value: input.email
407
+ }, _errorFactory)); const _ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
408
+ method: "typia.assert",
409
+ path: _path + ".name",
410
+ expected: "string",
411
+ value: input.name
412
+ }, _errorFactory)) && (undefined === input.identifier || "string" === typeof input.identifier || __typia_transform__assertGuard._assertGuard(_exceptionable, {
413
+ method: "typia.assert",
414
+ path: _path + ".identifier",
415
+ expected: "(string | undefined)",
416
+ value: input.identifier
417
+ }, _errorFactory)) && (undefined === input.url || "string" === typeof input.url || __typia_transform__assertGuard._assertGuard(_exceptionable, {
418
+ method: "typia.assert",
419
+ path: _path + ".url",
420
+ expected: "(string | undefined)",
421
+ value: input.url
422
+ }, _errorFactory)); const _ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input.url || __typia_transform__assertGuard._assertGuard(_exceptionable, {
423
+ method: "typia.assert",
424
+ path: _path + ".url",
425
+ expected: "string",
426
+ value: input.url
427
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
428
+ method: "typia.assert",
429
+ path: _path + ".description",
430
+ expected: "(string | undefined)",
431
+ value: input.description
432
+ }, _errorFactory)) && (undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
433
+ method: "typia.assert",
434
+ path: _path + ".variables",
435
+ expected: "(Record<string, OpenApi.IServer.IVariable> | undefined)",
436
+ value: input.variables
437
+ }, _errorFactory)) && _ao7(input.variables, _path + ".variables", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
438
+ method: "typia.assert",
439
+ path: _path + ".variables",
440
+ expected: "(Record<string, OpenApi.IServer.IVariable> | undefined)",
441
+ value: input.variables
442
+ }, _errorFactory)); const _ao7 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
443
+ const value = input[key];
444
+ if (undefined === value)
445
+ return true;
446
+ return ("object" === typeof value && null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
447
+ method: "typia.assert",
448
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
449
+ expected: "OpenApi.IServer.IVariable",
450
+ value: value
451
+ }, _errorFactory)) && _ao8(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
452
+ method: "typia.assert",
453
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
454
+ expected: "OpenApi.IServer.IVariable",
455
+ value: value
456
+ }, _errorFactory);
457
+ }); const _ao8 = (input, _path, _exceptionable = true) => ("string" === typeof input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
458
+ method: "typia.assert",
459
+ path: _path + "[\"default\"]",
460
+ expected: "string",
461
+ value: input["default"]
462
+ }, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
463
+ method: "typia.assert",
464
+ path: _path + "[\"enum\"]",
465
+ expected: "(Array<string> | undefined)",
466
+ value: input["enum"]
467
+ }, _errorFactory)) && input["enum"].every((elem, _index14) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
468
+ method: "typia.assert",
469
+ path: _path + "[\"enum\"][" + _index14 + "]",
470
+ expected: "string",
471
+ value: elem
472
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
473
+ method: "typia.assert",
474
+ path: _path + "[\"enum\"]",
475
+ expected: "(Array<string> | undefined)",
476
+ value: input["enum"]
477
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
478
+ method: "typia.assert",
479
+ path: _path + ".description",
480
+ expected: "(string | undefined)",
481
+ value: input.description
482
+ }, _errorFactory)); const _ao9 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
483
+ const value = input[key];
484
+ if (undefined === value)
485
+ return true;
486
+ return ("object" === typeof value && null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
487
+ method: "typia.assert",
488
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
489
+ expected: "(OpenApi.ISecurityScheme.IApiKey | OpenApi.ISecurityScheme.IHttpBasic | OpenApi.ISecurityScheme.IHttpBearer | OpenApi.ISecurityScheme.IOAuth2 | OpenApi.ISecurityScheme.IOpenId)",
490
+ value: value
491
+ }, _errorFactory)) && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
492
+ method: "typia.assert",
493
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
494
+ expected: "(OpenApi.ISecurityScheme.IApiKey | OpenApi.ISecurityScheme.IHttpBasic | OpenApi.ISecurityScheme.IHttpBearer | OpenApi.ISecurityScheme.IOAuth2 | OpenApi.ISecurityScheme.IOpenId)",
495
+ value: value
496
+ }, _errorFactory);
497
+ }); const _ao10 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
498
+ method: "typia.assert",
499
+ path: _path + ".type",
500
+ expected: "\"apiKey\"",
501
+ value: input.type
502
+ }, _errorFactory)) && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
503
+ method: "typia.assert",
504
+ path: _path + "[\"in\"]",
505
+ expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
506
+ value: input["in"]
507
+ }, _errorFactory)) && (undefined === input.name || "string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
508
+ method: "typia.assert",
509
+ path: _path + ".name",
510
+ expected: "(string | undefined)",
511
+ value: input.name
512
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
513
+ method: "typia.assert",
514
+ path: _path + ".description",
515
+ expected: "(string | undefined)",
516
+ value: input.description
517
+ }, _errorFactory)); const _ao11 = (input, _path, _exceptionable = true) => ("http" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
518
+ method: "typia.assert",
519
+ path: _path + ".type",
520
+ expected: "\"http\"",
521
+ value: input.type
522
+ }, _errorFactory)) && ("basic" === input.scheme || __typia_transform__assertGuard._assertGuard(_exceptionable, {
523
+ method: "typia.assert",
524
+ path: _path + ".scheme",
525
+ expected: "\"basic\"",
526
+ value: input.scheme
527
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
528
+ method: "typia.assert",
529
+ path: _path + ".description",
530
+ expected: "(string | undefined)",
531
+ value: input.description
532
+ }, _errorFactory)); const _ao12 = (input, _path, _exceptionable = true) => ("http" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
533
+ method: "typia.assert",
534
+ path: _path + ".type",
535
+ expected: "\"http\"",
536
+ value: input.type
537
+ }, _errorFactory)) && ("bearer" === input.scheme || __typia_transform__assertGuard._assertGuard(_exceptionable, {
538
+ method: "typia.assert",
539
+ path: _path + ".scheme",
540
+ expected: "\"bearer\"",
541
+ value: input.scheme
542
+ }, _errorFactory)) && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat || __typia_transform__assertGuard._assertGuard(_exceptionable, {
543
+ method: "typia.assert",
544
+ path: _path + ".bearerFormat",
545
+ expected: "(string | undefined)",
546
+ value: input.bearerFormat
547
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
548
+ method: "typia.assert",
549
+ path: _path + ".description",
550
+ expected: "(string | undefined)",
551
+ value: input.description
552
+ }, _errorFactory)); const _ao13 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
553
+ method: "typia.assert",
554
+ path: _path + ".type",
555
+ expected: "\"oauth2\"",
556
+ value: input.type
557
+ }, _errorFactory)) && (("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
558
+ method: "typia.assert",
559
+ path: _path + ".flows",
560
+ expected: "OpenApi.ISecurityScheme.IOAuth2.IFlowSet",
561
+ value: input.flows
562
+ }, _errorFactory)) && _ao14(input.flows, _path + ".flows", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
563
+ method: "typia.assert",
564
+ path: _path + ".flows",
565
+ expected: "OpenApi.ISecurityScheme.IOAuth2.IFlowSet",
566
+ value: input.flows
567
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
568
+ method: "typia.assert",
569
+ path: _path + ".description",
570
+ expected: "(string | undefined)",
571
+ value: input.description
572
+ }, _errorFactory)); const _ao14 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
573
+ method: "typia.assert",
574
+ path: _path + ".authorizationCode",
575
+ expected: "(OpenApi.ISecurityScheme.IOAuth2.IFlow | undefined)",
576
+ value: input.authorizationCode
577
+ }, _errorFactory)) && _ao15(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
578
+ method: "typia.assert",
579
+ path: _path + ".authorizationCode",
580
+ expected: "(OpenApi.ISecurityScheme.IOAuth2.IFlow | undefined)",
581
+ value: input.authorizationCode
582
+ }, _errorFactory)) && (undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
583
+ method: "typia.assert",
584
+ path: _path + ".implicit",
585
+ expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
586
+ value: input.implicit
587
+ }, _errorFactory)) && _ao17(input.implicit, _path + ".implicit", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
588
+ method: "typia.assert",
589
+ path: _path + ".implicit",
590
+ expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
591
+ value: input.implicit
592
+ }, _errorFactory)) && (undefined === input.password || ("object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
593
+ method: "typia.assert",
594
+ path: _path + ".password",
595
+ expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
596
+ value: input.password
597
+ }, _errorFactory)) && _ao18(input.password, _path + ".password", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
598
+ method: "typia.assert",
599
+ path: _path + ".password",
600
+ expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
601
+ value: input.password
602
+ }, _errorFactory)) && (undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
603
+ method: "typia.assert",
604
+ path: _path + ".clientCredentials",
605
+ expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
606
+ value: input.clientCredentials
607
+ }, _errorFactory)) && _ao18(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
608
+ method: "typia.assert",
609
+ path: _path + ".clientCredentials",
610
+ expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
611
+ value: input.clientCredentials
612
+ }, _errorFactory)); const _ao15 = (input, _path, _exceptionable = true) => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || __typia_transform__assertGuard._assertGuard(_exceptionable, {
613
+ method: "typia.assert",
614
+ path: _path + ".authorizationUrl",
615
+ expected: "(string | undefined)",
616
+ value: input.authorizationUrl
617
+ }, _errorFactory)) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl || __typia_transform__assertGuard._assertGuard(_exceptionable, {
618
+ method: "typia.assert",
619
+ path: _path + ".tokenUrl",
620
+ expected: "(string | undefined)",
621
+ value: input.tokenUrl
622
+ }, _errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || __typia_transform__assertGuard._assertGuard(_exceptionable, {
623
+ method: "typia.assert",
624
+ path: _path + ".refreshUrl",
625
+ expected: "(string | undefined)",
626
+ value: input.refreshUrl
627
+ }, _errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
628
+ method: "typia.assert",
629
+ path: _path + ".scopes",
630
+ expected: "(Record<string, string> | undefined)",
631
+ value: input.scopes
632
+ }, _errorFactory)) && _ao16(input.scopes, _path + ".scopes", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
633
+ method: "typia.assert",
634
+ path: _path + ".scopes",
635
+ expected: "(Record<string, string> | undefined)",
636
+ value: input.scopes
637
+ }, _errorFactory)); const _ao16 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
638
+ const value = input[key];
639
+ if (undefined === value)
640
+ return true;
641
+ return "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
642
+ method: "typia.assert",
643
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
644
+ expected: "string",
645
+ value: value
646
+ }, _errorFactory);
647
+ }); const _ao17 = (input, _path, _exceptionable = true) => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || __typia_transform__assertGuard._assertGuard(_exceptionable, {
648
+ method: "typia.assert",
649
+ path: _path + ".authorizationUrl",
650
+ expected: "(string | undefined)",
651
+ value: input.authorizationUrl
652
+ }, _errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || __typia_transform__assertGuard._assertGuard(_exceptionable, {
653
+ method: "typia.assert",
654
+ path: _path + ".refreshUrl",
655
+ expected: "(string | undefined)",
656
+ value: input.refreshUrl
657
+ }, _errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
658
+ method: "typia.assert",
659
+ path: _path + ".scopes",
660
+ expected: "(Record<string, string> | undefined)",
661
+ value: input.scopes
662
+ }, _errorFactory)) && _ao16(input.scopes, _path + ".scopes", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
663
+ method: "typia.assert",
664
+ path: _path + ".scopes",
665
+ expected: "(Record<string, string> | undefined)",
666
+ value: input.scopes
667
+ }, _errorFactory)); const _ao18 = (input, _path, _exceptionable = true) => (undefined === input.tokenUrl || "string" === typeof input.tokenUrl || __typia_transform__assertGuard._assertGuard(_exceptionable, {
668
+ method: "typia.assert",
669
+ path: _path + ".tokenUrl",
670
+ expected: "(string | undefined)",
671
+ value: input.tokenUrl
672
+ }, _errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || __typia_transform__assertGuard._assertGuard(_exceptionable, {
673
+ method: "typia.assert",
674
+ path: _path + ".refreshUrl",
675
+ expected: "(string | undefined)",
676
+ value: input.refreshUrl
677
+ }, _errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
678
+ method: "typia.assert",
679
+ path: _path + ".scopes",
680
+ expected: "(Record<string, string> | undefined)",
681
+ value: input.scopes
682
+ }, _errorFactory)) && _ao16(input.scopes, _path + ".scopes", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
683
+ method: "typia.assert",
684
+ path: _path + ".scopes",
685
+ expected: "(Record<string, string> | undefined)",
686
+ value: input.scopes
687
+ }, _errorFactory)); const _ao19 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
688
+ method: "typia.assert",
689
+ path: _path + ".type",
690
+ expected: "\"openIdConnect\"",
691
+ value: input.type
692
+ }, _errorFactory)) && ("string" === typeof input.openIdConnectUrl || __typia_transform__assertGuard._assertGuard(_exceptionable, {
693
+ method: "typia.assert",
694
+ path: _path + ".openIdConnectUrl",
695
+ expected: "string",
696
+ value: input.openIdConnectUrl
697
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
698
+ method: "typia.assert",
699
+ path: _path + ".description",
700
+ expected: "(string | undefined)",
701
+ value: input.description
702
+ }, _errorFactory)); const _ao20 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
703
+ method: "typia.assert",
704
+ path: _path + ".name",
705
+ expected: "string",
706
+ value: input.name
707
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
708
+ method: "typia.assert",
709
+ path: _path + ".description",
710
+ expected: "(string | undefined)",
711
+ value: input.description
712
+ }, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
713
+ if ("apiKey" === input.type)
714
+ return _ao10(input, _path, true && _exceptionable);
715
+ else if ("basic" === input.scheme)
716
+ return _ao11(input, _path, true && _exceptionable);
717
+ else if ("bearer" === input.scheme)
718
+ return _ao12(input, _path, true && _exceptionable);
719
+ else if ("oauth2" === input.type)
720
+ return _ao13(input, _path, true && _exceptionable);
721
+ else if ("openIdConnect" === input.type)
722
+ return _ao19(input, _path, true && _exceptionable);
723
+ else
724
+ return __typia_transform__assertGuard._assertGuard(_exceptionable, {
725
+ method: "typia.assert",
726
+ path: _path,
727
+ expected: "(OpenApi.ISecurityScheme.IApiKey | OpenApi.ISecurityScheme.IHttpBasic | OpenApi.ISecurityScheme.IHttpBearer | OpenApi.ISecurityScheme.IOAuth2 | OpenApi.ISecurityScheme.IOpenId)",
728
+ value: input
729
+ }, _errorFactory);
730
+ })(); const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && _io0(elem)); let _errorFactory; return (input, errorFactory) => {
731
+ if (false === __is(input)) {
732
+ _errorFactory = errorFactory;
733
+ ((input, _path, _exceptionable = true) => (Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
734
+ method: "typia.assert",
735
+ path: _path + "",
736
+ expected: "Array<INestiaConfig>",
737
+ value: input
738
+ }, _errorFactory)) && input.every((elem, _index8) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(true, {
739
+ method: "typia.assert",
740
+ path: _path + "[" + _index8 + "]",
741
+ expected: "INestiaConfig",
742
+ value: elem
743
+ }, _errorFactory)) && _ao0(elem, _path + "[" + _index8 + "]", true) || __typia_transform__assertGuard._assertGuard(true, {
744
+ method: "typia.assert",
745
+ path: _path + "[" + _index8 + "]",
746
+ expected: "INestiaConfig",
747
+ value: elem
748
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(true, {
749
+ method: "typia.assert",
750
+ path: _path + "",
751
+ expected: "Array<INestiaConfig>",
752
+ value: input
753
+ }, _errorFactory))(input, "$input", true);
754
+ }
755
+ return input;
756
+ }; })()(configurations);
94
757
  }
95
758
  catch (exp) {
96
- if (typia_1.default.is(exp))
759
+ if ((() => { const _io0 = input => "string" === typeof input.method && (undefined === input.path || "string" === typeof input.path) && "string" === typeof input.expected && true && true && "string" === typeof input.name && "string" === typeof input.message && (undefined === input.stack || "string" === typeof input.stack); return input => "object" === typeof input && null !== input && _io0(input); })()(exp))
97
760
  exp.message = `invalid "${file}" data.`;
98
761
  throw exp;
99
762
  }