@agentica/core 0.19.0 → 0.20.0
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/lib/context/AgenticaOperation.d.ts +3 -4
- package/lib/context/internal/AgenticaOperationComposer.js +8 -1
- package/lib/context/internal/AgenticaOperationComposer.js.map +1 -1
- package/lib/context/internal/AgenticaOperationComposer.spec.js +39 -10
- package/lib/context/internal/AgenticaOperationComposer.spec.js.map +1 -1
- package/lib/functional/assertHttpLlmApplication.js +168 -168
- package/lib/functional/assertMcpController.d.ts +24 -0
- package/lib/functional/assertMcpController.js +1701 -0
- package/lib/functional/assertMcpController.js.map +1 -0
- package/lib/functional/validateHttpLlmApplication.js +148 -148
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +2013 -404
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/call.js +11 -1
- package/lib/orchestrate/call.js.map +1 -1
- package/lib/orchestrate/initialize.js +60 -60
- package/lib/structures/IAgenticaController.d.ts +8 -4
- package/lib/structures/mcp/index.d.ts +0 -2
- package/lib/structures/mcp/index.js +0 -2
- package/lib/structures/mcp/index.js.map +1 -1
- package/lib/utils/AsyncQueue.d.ts +10 -0
- package/lib/utils/AsyncQueue.js +33 -9
- package/lib/utils/AsyncQueue.js.map +1 -1
- package/lib/utils/AsyncQueue.spec.d.ts +1 -0
- package/lib/utils/AsyncQueue.spec.js +280 -0
- package/lib/utils/AsyncQueue.spec.js.map +1 -0
- package/lib/utils/MPSC.spec.d.ts +1 -0
- package/lib/utils/MPSC.spec.js +222 -0
- package/lib/utils/MPSC.spec.js.map +1 -0
- package/lib/utils/StreamUtil.spec.d.ts +1 -0
- package/lib/utils/StreamUtil.spec.js +471 -0
- package/lib/utils/StreamUtil.spec.js.map +1 -0
- package/package.json +3 -3
- package/src/context/AgenticaOperation.ts +5 -6
- package/src/context/internal/AgenticaOperationComposer.spec.ts +45 -14
- package/src/context/internal/AgenticaOperationComposer.ts +10 -2
- package/src/functional/assertMcpController.ts +49 -0
- package/src/index.ts +1 -1
- package/src/orchestrate/call.ts +14 -4
- package/src/structures/IAgenticaController.ts +9 -4
- package/src/structures/mcp/index.ts +0 -2
- package/src/utils/AsyncQueue.spec.ts +355 -0
- package/src/utils/AsyncQueue.ts +36 -8
- package/src/utils/MPSC.spec.ts +276 -0
- package/src/utils/StreamUtil.spec.ts +520 -0
- package/lib/functional/assertMcpLlmApplication.d.ts +0 -18
- package/lib/functional/assertMcpLlmApplication.js +0 -74
- package/lib/functional/assertMcpLlmApplication.js.map +0 -1
- package/lib/structures/mcp/IMcpLlmApplication.d.ts +0 -9
- package/lib/structures/mcp/IMcpLlmApplication.js +0 -3
- package/lib/structures/mcp/IMcpLlmApplication.js.map +0 -1
- package/lib/structures/mcp/IMcpLlmFunction.d.ts +0 -17
- package/lib/structures/mcp/IMcpLlmFunction.js +0 -3
- package/lib/structures/mcp/IMcpLlmFunction.js.map +0 -1
- package/src/functional/assertMcpLlmApplication.ts +0 -32
- package/src/structures/mcp/IMcpLlmApplication.ts +0 -10
- package/src/structures/mcp/IMcpLlmFunction.ts +0 -19
|
@@ -0,0 +1,1701 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.assertMcpController = assertMcpController;
|
|
49
|
+
const __typia_transform__assertGuard = __importStar(require("typia/lib/internal/_assertGuard.js"));
|
|
50
|
+
const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString.js"));
|
|
51
|
+
const openapi_1 = require("@samchon/openapi");
|
|
52
|
+
const typia_1 = __importDefault(require("typia"));
|
|
53
|
+
/**
|
|
54
|
+
* Create an MCP controller with type assertion.
|
|
55
|
+
*
|
|
56
|
+
* Create an {@link IAgenticaController.IMcp} instance which represents
|
|
57
|
+
* an MCP (Model Context Protocol) controller with LLM function calling
|
|
58
|
+
* schemas and client connection.
|
|
59
|
+
*
|
|
60
|
+
* @param props Properties to create the MCP controller
|
|
61
|
+
* @param props.name Name of the MCP implementation.
|
|
62
|
+
* @param props.client Client connection to the MCP implementation.
|
|
63
|
+
* @param props.model Model schema of the LLM function calling.
|
|
64
|
+
* @param props.options Options to create the MCP controller.
|
|
65
|
+
* @returns MCP LLM application instance
|
|
66
|
+
* @author Samchon
|
|
67
|
+
*/
|
|
68
|
+
function assertMcpController(props) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
// for peerDependencies
|
|
71
|
+
const { ListToolsResultSchema } = yield Promise.resolve().then(() => __importStar(require("@modelcontextprotocol/sdk/types.js")));
|
|
72
|
+
// get list of tools
|
|
73
|
+
const { tools } = yield props.client.request({ method: "tools/list" }, ListToolsResultSchema);
|
|
74
|
+
// eslint-disable-next-line ts/no-unsafe-assignment, ts/no-unsafe-call, ts/no-unsafe-member-access
|
|
75
|
+
const application = openapi_1.McpLlm.application({
|
|
76
|
+
model: props.model,
|
|
77
|
+
tools: (() => { const _io0 = input => "string" === typeof input.name && input.name.length <= 64 && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.inputSchema && null !== input.inputSchema && _iu1(input.inputSchema)); const _io1 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.$defs || "object" === typeof input.$defs && null !== input.$defs && false === Array.isArray(input.$defs) && _io2(input.$defs)); const _io2 = input => Object.keys(input).every(key => {
|
|
78
|
+
const value = input[key];
|
|
79
|
+
if (undefined === value)
|
|
80
|
+
return true;
|
|
81
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
82
|
+
}); const _io3 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))); const _io4 = input => Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu0(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu0(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io17(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem))) && (Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem))) && "string" === typeof input.$ref; const _io5 = input => Object.keys(input).every(key => {
|
|
83
|
+
const value = input[key];
|
|
84
|
+
if (undefined === value)
|
|
85
|
+
return true;
|
|
86
|
+
return true;
|
|
87
|
+
}); const _io6 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true; const _io7 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "boolean" === typeof elem)) && "boolean" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))); const _io8 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -9223372036854776000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 9223372036854776000) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -9223372036854776000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 9223372036854776000) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))); const _io9 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))); const _io10 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "string" === typeof elem)) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))); const _io11 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu0(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu0(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))); const _io12 = input => "string" === typeof input.$ref && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true; const _io13 = input => "string" === typeof input.$recursiveRef && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true; const _io14 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true; const _io15 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true; const _io16 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io17(input.discriminator)) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true; const _io17 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io18(input.mapping)); const _io18 = input => Object.keys(input).every(key => {
|
|
88
|
+
const value = input[key];
|
|
89
|
+
if (undefined === value)
|
|
90
|
+
return true;
|
|
91
|
+
return "string" === typeof value;
|
|
92
|
+
}); const _io19 = input => (null === input["default"] || undefined === input["default"]) && "null" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))); const _io20 = input => null !== input.type && undefined === input.type && true && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))); const _io21 = input => "string" === typeof input.$ref && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io5(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.$defs || "object" === typeof input.$defs && null !== input.$defs && false === Array.isArray(input.$defs) && _io2(input.$defs)); const _iu0 = input => (() => {
|
|
93
|
+
if ("object" === input.type)
|
|
94
|
+
return _io3(input);
|
|
95
|
+
else if (Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem))
|
|
96
|
+
return _io4(input);
|
|
97
|
+
else if ("boolean" === input.type)
|
|
98
|
+
return _io7(input);
|
|
99
|
+
else if ("number" === input.type)
|
|
100
|
+
return _io9(input);
|
|
101
|
+
else if ("integer" === input.type)
|
|
102
|
+
return _io8(input);
|
|
103
|
+
else if ("string" === input.type)
|
|
104
|
+
return _io10(input);
|
|
105
|
+
else if ("array" === input.type)
|
|
106
|
+
return _io11(input);
|
|
107
|
+
else if (undefined !== input.$recursiveRef)
|
|
108
|
+
return _io13(input);
|
|
109
|
+
else if ("null" === input.type)
|
|
110
|
+
return _io19(input);
|
|
111
|
+
else
|
|
112
|
+
return (() => {
|
|
113
|
+
if (undefined !== input["const"])
|
|
114
|
+
return _io6(input);
|
|
115
|
+
else if (undefined !== input.$ref)
|
|
116
|
+
return _io12(input);
|
|
117
|
+
else if (undefined !== input.allOf)
|
|
118
|
+
return _io14(input);
|
|
119
|
+
else if (undefined !== input.anyOf)
|
|
120
|
+
return _io15(input);
|
|
121
|
+
else if (undefined !== input.oneOf)
|
|
122
|
+
return _io16(input);
|
|
123
|
+
else
|
|
124
|
+
return _io20(input);
|
|
125
|
+
})();
|
|
126
|
+
})(); const _iu1 = input => (() => {
|
|
127
|
+
if (undefined !== input.type)
|
|
128
|
+
return _io1(input);
|
|
129
|
+
else if (undefined !== input.$ref)
|
|
130
|
+
return _io21(input);
|
|
131
|
+
else
|
|
132
|
+
return false;
|
|
133
|
+
})(); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name && (input.name.length <= 64 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
134
|
+
method: "typia.assert",
|
|
135
|
+
path: _path + ".name",
|
|
136
|
+
expected: "string & MaxLength<64>",
|
|
137
|
+
value: input.name
|
|
138
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
139
|
+
method: "typia.assert",
|
|
140
|
+
path: _path + ".name",
|
|
141
|
+
expected: "(string & MaxLength<64>)",
|
|
142
|
+
value: input.name
|
|
143
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
144
|
+
method: "typia.assert",
|
|
145
|
+
path: _path + ".description",
|
|
146
|
+
expected: "(string | undefined)",
|
|
147
|
+
value: input.description
|
|
148
|
+
}, _errorFactory)) && (("object" === typeof input.inputSchema && null !== input.inputSchema || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
149
|
+
method: "typia.assert",
|
|
150
|
+
path: _path + ".inputSchema",
|
|
151
|
+
expected: "(IObject & { $defs?: Record<string, IJsonSchema> | undefined; } | IReference<string> & { $defs?: Record<string, IJsonSchema> | undefined; })",
|
|
152
|
+
value: input.inputSchema
|
|
153
|
+
}, _errorFactory)) && _au1(input.inputSchema, _path + ".inputSchema", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
154
|
+
method: "typia.assert",
|
|
155
|
+
path: _path + ".inputSchema",
|
|
156
|
+
expected: "(IObject & { $defs?: Record<string, IJsonSchema> | undefined; } | IReference<string> & { $defs?: Record<string, IJsonSchema> | undefined; })",
|
|
157
|
+
value: input.inputSchema
|
|
158
|
+
}, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
159
|
+
method: "typia.assert",
|
|
160
|
+
path: _path + ".nullable",
|
|
161
|
+
expected: "(boolean | undefined)",
|
|
162
|
+
value: input.nullable
|
|
163
|
+
}, _errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
164
|
+
method: "typia.assert",
|
|
165
|
+
path: _path + ".properties",
|
|
166
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
167
|
+
value: input.properties
|
|
168
|
+
}, _errorFactory)) && _ao2(input.properties, _path + ".properties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
169
|
+
method: "typia.assert",
|
|
170
|
+
path: _path + ".properties",
|
|
171
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
172
|
+
value: input.properties
|
|
173
|
+
}, _errorFactory)) && (undefined === input.required || (Array.isArray(input.required) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
174
|
+
method: "typia.assert",
|
|
175
|
+
path: _path + ".required",
|
|
176
|
+
expected: "(Array<string> | undefined)",
|
|
177
|
+
value: input.required
|
|
178
|
+
}, _errorFactory)) && input.required.every((elem, _index22) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
179
|
+
method: "typia.assert",
|
|
180
|
+
path: _path + ".required[" + _index22 + "]",
|
|
181
|
+
expected: "string",
|
|
182
|
+
value: elem
|
|
183
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
184
|
+
method: "typia.assert",
|
|
185
|
+
path: _path + ".required",
|
|
186
|
+
expected: "(Array<string> | undefined)",
|
|
187
|
+
value: input.required
|
|
188
|
+
}, _errorFactory)) && ((null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
189
|
+
method: "typia.assert",
|
|
190
|
+
path: _path + ".additionalProperties",
|
|
191
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
192
|
+
value: input.additionalProperties
|
|
193
|
+
}, _errorFactory)) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
194
|
+
method: "typia.assert",
|
|
195
|
+
path: _path + ".additionalProperties",
|
|
196
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
197
|
+
value: input.additionalProperties
|
|
198
|
+
}, _errorFactory)) && _au0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
199
|
+
method: "typia.assert",
|
|
200
|
+
path: _path + ".additionalProperties",
|
|
201
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
202
|
+
value: input.additionalProperties
|
|
203
|
+
}, _errorFactory))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
204
|
+
method: "typia.assert",
|
|
205
|
+
path: _path + ".maxProperties",
|
|
206
|
+
expected: "(number | undefined)",
|
|
207
|
+
value: input.maxProperties
|
|
208
|
+
}, _errorFactory)) && (undefined === input.minProperties || "number" === typeof input.minProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
209
|
+
method: "typia.assert",
|
|
210
|
+
path: _path + ".minProperties",
|
|
211
|
+
expected: "(number | undefined)",
|
|
212
|
+
value: input.minProperties
|
|
213
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
214
|
+
method: "typia.assert",
|
|
215
|
+
path: _path + ".type",
|
|
216
|
+
expected: "\"object\"",
|
|
217
|
+
value: input.type
|
|
218
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
219
|
+
method: "typia.assert",
|
|
220
|
+
path: _path + ".title",
|
|
221
|
+
expected: "(string | undefined)",
|
|
222
|
+
value: input.title
|
|
223
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
224
|
+
method: "typia.assert",
|
|
225
|
+
path: _path + ".description",
|
|
226
|
+
expected: "(string | undefined)",
|
|
227
|
+
value: input.description
|
|
228
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
229
|
+
method: "typia.assert",
|
|
230
|
+
path: _path + ".deprecated",
|
|
231
|
+
expected: "(boolean | undefined)",
|
|
232
|
+
value: input.deprecated
|
|
233
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
234
|
+
method: "typia.assert",
|
|
235
|
+
path: _path + ".examples",
|
|
236
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
237
|
+
value: input.examples
|
|
238
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
239
|
+
method: "typia.assert",
|
|
240
|
+
path: _path + ".examples",
|
|
241
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
242
|
+
value: input.examples
|
|
243
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
244
|
+
method: "typia.assert",
|
|
245
|
+
path: _path + ".examples",
|
|
246
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
247
|
+
value: input.examples
|
|
248
|
+
}, _errorFactory))) && (undefined === input.$defs || ("object" === typeof input.$defs && null !== input.$defs && false === Array.isArray(input.$defs) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
249
|
+
method: "typia.assert",
|
|
250
|
+
path: _path + ".$defs",
|
|
251
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
252
|
+
value: input.$defs
|
|
253
|
+
}, _errorFactory)) && _ao2(input.$defs, _path + ".$defs", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
254
|
+
method: "typia.assert",
|
|
255
|
+
path: _path + ".$defs",
|
|
256
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
257
|
+
value: input.$defs
|
|
258
|
+
}, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
259
|
+
const value = input[key];
|
|
260
|
+
if (undefined === value)
|
|
261
|
+
return true;
|
|
262
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
263
|
+
method: "typia.assert",
|
|
264
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
265
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
266
|
+
value: value
|
|
267
|
+
}, _errorFactory)) && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
268
|
+
method: "typia.assert",
|
|
269
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
270
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
271
|
+
value: value
|
|
272
|
+
}, _errorFactory);
|
|
273
|
+
}); const _ao3 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
274
|
+
method: "typia.assert",
|
|
275
|
+
path: _path + ".nullable",
|
|
276
|
+
expected: "(boolean | undefined)",
|
|
277
|
+
value: input.nullable
|
|
278
|
+
}, _errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
279
|
+
method: "typia.assert",
|
|
280
|
+
path: _path + ".properties",
|
|
281
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
282
|
+
value: input.properties
|
|
283
|
+
}, _errorFactory)) && _ao2(input.properties, _path + ".properties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
284
|
+
method: "typia.assert",
|
|
285
|
+
path: _path + ".properties",
|
|
286
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
287
|
+
value: input.properties
|
|
288
|
+
}, _errorFactory)) && (undefined === input.required || (Array.isArray(input.required) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
289
|
+
method: "typia.assert",
|
|
290
|
+
path: _path + ".required",
|
|
291
|
+
expected: "(Array<string> | undefined)",
|
|
292
|
+
value: input.required
|
|
293
|
+
}, _errorFactory)) && input.required.every((elem, _index23) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
294
|
+
method: "typia.assert",
|
|
295
|
+
path: _path + ".required[" + _index23 + "]",
|
|
296
|
+
expected: "string",
|
|
297
|
+
value: elem
|
|
298
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
299
|
+
method: "typia.assert",
|
|
300
|
+
path: _path + ".required",
|
|
301
|
+
expected: "(Array<string> | undefined)",
|
|
302
|
+
value: input.required
|
|
303
|
+
}, _errorFactory)) && ((null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
304
|
+
method: "typia.assert",
|
|
305
|
+
path: _path + ".additionalProperties",
|
|
306
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
307
|
+
value: input.additionalProperties
|
|
308
|
+
}, _errorFactory)) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
309
|
+
method: "typia.assert",
|
|
310
|
+
path: _path + ".additionalProperties",
|
|
311
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
312
|
+
value: input.additionalProperties
|
|
313
|
+
}, _errorFactory)) && _au0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
314
|
+
method: "typia.assert",
|
|
315
|
+
path: _path + ".additionalProperties",
|
|
316
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
317
|
+
value: input.additionalProperties
|
|
318
|
+
}, _errorFactory))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
319
|
+
method: "typia.assert",
|
|
320
|
+
path: _path + ".maxProperties",
|
|
321
|
+
expected: "(number | undefined)",
|
|
322
|
+
value: input.maxProperties
|
|
323
|
+
}, _errorFactory)) && (undefined === input.minProperties || "number" === typeof input.minProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
324
|
+
method: "typia.assert",
|
|
325
|
+
path: _path + ".minProperties",
|
|
326
|
+
expected: "(number | undefined)",
|
|
327
|
+
value: input.minProperties
|
|
328
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
329
|
+
method: "typia.assert",
|
|
330
|
+
path: _path + ".type",
|
|
331
|
+
expected: "\"object\"",
|
|
332
|
+
value: input.type
|
|
333
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
334
|
+
method: "typia.assert",
|
|
335
|
+
path: _path + ".title",
|
|
336
|
+
expected: "(string | undefined)",
|
|
337
|
+
value: input.title
|
|
338
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
339
|
+
method: "typia.assert",
|
|
340
|
+
path: _path + ".description",
|
|
341
|
+
expected: "(string | undefined)",
|
|
342
|
+
value: input.description
|
|
343
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
344
|
+
method: "typia.assert",
|
|
345
|
+
path: _path + ".deprecated",
|
|
346
|
+
expected: "(boolean | undefined)",
|
|
347
|
+
value: input.deprecated
|
|
348
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
349
|
+
method: "typia.assert",
|
|
350
|
+
path: _path + ".examples",
|
|
351
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
352
|
+
value: input.examples
|
|
353
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
354
|
+
method: "typia.assert",
|
|
355
|
+
path: _path + ".examples",
|
|
356
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
357
|
+
value: input.examples
|
|
358
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
359
|
+
method: "typia.assert",
|
|
360
|
+
path: _path + ".examples",
|
|
361
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
362
|
+
value: input.examples
|
|
363
|
+
}, _errorFactory))); const _ao4 = (input, _path, _exceptionable = true) => ((Array.isArray(input.type) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
364
|
+
method: "typia.assert",
|
|
365
|
+
path: _path + ".type",
|
|
366
|
+
expected: "Array<\"string\" | \"number\" | \"boolean\" | \"object\" | \"integer\" | \"array\" | \"null\">",
|
|
367
|
+
value: input.type
|
|
368
|
+
}, _errorFactory)) && input.type.every((elem, _index24) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
369
|
+
method: "typia.assert",
|
|
370
|
+
path: _path + ".type[" + _index24 + "]",
|
|
371
|
+
expected: "(\"array\" | \"boolean\" | \"integer\" | \"null\" | \"number\" | \"object\" | \"string\")",
|
|
372
|
+
value: elem
|
|
373
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
374
|
+
method: "typia.assert",
|
|
375
|
+
path: _path + ".type",
|
|
376
|
+
expected: "Array<\"string\" | \"number\" | \"boolean\" | \"object\" | \"integer\" | \"array\" | \"null\">",
|
|
377
|
+
value: input.type
|
|
378
|
+
}, _errorFactory)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
379
|
+
method: "typia.assert",
|
|
380
|
+
path: _path + "[\"default\"]",
|
|
381
|
+
expected: "(Array<any> | null | undefined)",
|
|
382
|
+
value: input["default"]
|
|
383
|
+
}, _errorFactory)) && (undefined === input["enum"] || Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
384
|
+
method: "typia.assert",
|
|
385
|
+
path: _path + "[\"enum\"]",
|
|
386
|
+
expected: "(Array<any> | undefined)",
|
|
387
|
+
value: input["enum"]
|
|
388
|
+
}, _errorFactory)) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
389
|
+
method: "typia.assert",
|
|
390
|
+
path: _path + "[\"const\"]",
|
|
391
|
+
expected: "(boolean | number | string)",
|
|
392
|
+
value: input["const"]
|
|
393
|
+
}, _errorFactory)) && (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
394
|
+
method: "typia.assert",
|
|
395
|
+
path: _path + ".nullable",
|
|
396
|
+
expected: "(boolean | undefined)",
|
|
397
|
+
value: input.nullable
|
|
398
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
399
|
+
method: "typia.assert",
|
|
400
|
+
path: _path + ".examples",
|
|
401
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
402
|
+
value: input.examples
|
|
403
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
404
|
+
method: "typia.assert",
|
|
405
|
+
path: _path + ".examples",
|
|
406
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
407
|
+
value: input.examples
|
|
408
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
409
|
+
method: "typia.assert",
|
|
410
|
+
path: _path + ".examples",
|
|
411
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
412
|
+
value: input.examples
|
|
413
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
414
|
+
method: "typia.assert",
|
|
415
|
+
path: _path + ".title",
|
|
416
|
+
expected: "(string | undefined)",
|
|
417
|
+
value: input.title
|
|
418
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
419
|
+
method: "typia.assert",
|
|
420
|
+
path: _path + ".description",
|
|
421
|
+
expected: "(string | undefined)",
|
|
422
|
+
value: input.description
|
|
423
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
424
|
+
method: "typia.assert",
|
|
425
|
+
path: _path + ".deprecated",
|
|
426
|
+
expected: "(boolean | undefined)",
|
|
427
|
+
value: input.deprecated
|
|
428
|
+
}, _errorFactory)) && true && (undefined === input.minimum || "number" === typeof input.minimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
429
|
+
method: "typia.assert",
|
|
430
|
+
path: _path + ".minimum",
|
|
431
|
+
expected: "(number | undefined)",
|
|
432
|
+
value: input.minimum
|
|
433
|
+
}, _errorFactory)) && (undefined === input.maximum || "number" === typeof input.maximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
434
|
+
method: "typia.assert",
|
|
435
|
+
path: _path + ".maximum",
|
|
436
|
+
expected: "(number | undefined)",
|
|
437
|
+
value: input.maximum
|
|
438
|
+
}, _errorFactory)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
439
|
+
method: "typia.assert",
|
|
440
|
+
path: _path + ".multipleOf",
|
|
441
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
442
|
+
value: input.multipleOf
|
|
443
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
444
|
+
method: "typia.assert",
|
|
445
|
+
path: _path + ".multipleOf",
|
|
446
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
447
|
+
value: input.multipleOf
|
|
448
|
+
}, _errorFactory)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
449
|
+
method: "typia.assert",
|
|
450
|
+
path: _path + ".exclusiveMinimum",
|
|
451
|
+
expected: "(boolean | number | undefined)",
|
|
452
|
+
value: input.exclusiveMinimum
|
|
453
|
+
}, _errorFactory)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
454
|
+
method: "typia.assert",
|
|
455
|
+
path: _path + ".exclusiveMaximum",
|
|
456
|
+
expected: "(boolean | number | undefined)",
|
|
457
|
+
value: input.exclusiveMaximum
|
|
458
|
+
}, _errorFactory)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
459
|
+
method: "typia.assert",
|
|
460
|
+
path: _path + ".maxLength",
|
|
461
|
+
expected: "number & Type<\"uint64\">",
|
|
462
|
+
value: input.maxLength
|
|
463
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
464
|
+
method: "typia.assert",
|
|
465
|
+
path: _path + ".maxLength",
|
|
466
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
467
|
+
value: input.maxLength
|
|
468
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
469
|
+
method: "typia.assert",
|
|
470
|
+
path: _path + ".format",
|
|
471
|
+
expected: "(string | undefined)",
|
|
472
|
+
value: input.format
|
|
473
|
+
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
474
|
+
method: "typia.assert",
|
|
475
|
+
path: _path + ".pattern",
|
|
476
|
+
expected: "(string | undefined)",
|
|
477
|
+
value: input.pattern
|
|
478
|
+
}, _errorFactory)) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
479
|
+
method: "typia.assert",
|
|
480
|
+
path: _path + ".contentMediaType",
|
|
481
|
+
expected: "(string | undefined)",
|
|
482
|
+
value: input.contentMediaType
|
|
483
|
+
}, _errorFactory)) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
484
|
+
method: "typia.assert",
|
|
485
|
+
path: _path + ".minLength",
|
|
486
|
+
expected: "number & Type<\"uint64\">",
|
|
487
|
+
value: input.minLength
|
|
488
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
489
|
+
method: "typia.assert",
|
|
490
|
+
path: _path + ".minLength",
|
|
491
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
492
|
+
value: input.minLength
|
|
493
|
+
}, _errorFactory)) && ((null !== input.items || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
494
|
+
method: "typia.assert",
|
|
495
|
+
path: _path + ".items",
|
|
496
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
|
497
|
+
value: input.items
|
|
498
|
+
}, _errorFactory)) && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem, _index25) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
499
|
+
method: "typia.assert",
|
|
500
|
+
path: _path + ".items[" + _index25 + "]",
|
|
501
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
502
|
+
value: elem
|
|
503
|
+
}, _errorFactory)) && _au0(elem, _path + ".items[" + _index25 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
504
|
+
method: "typia.assert",
|
|
505
|
+
path: _path + ".items[" + _index25 + "]",
|
|
506
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
507
|
+
value: elem
|
|
508
|
+
}, _errorFactory)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _au0(input.items, _path + ".items", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
509
|
+
method: "typia.assert",
|
|
510
|
+
path: _path + ".items",
|
|
511
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
|
512
|
+
value: input.items
|
|
513
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
514
|
+
method: "typia.assert",
|
|
515
|
+
path: _path + ".items",
|
|
516
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
|
517
|
+
value: input.items
|
|
518
|
+
}, _errorFactory))) && (undefined === input.prefixItems || (Array.isArray(input.prefixItems) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
519
|
+
method: "typia.assert",
|
|
520
|
+
path: _path + ".prefixItems",
|
|
521
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
522
|
+
value: input.prefixItems
|
|
523
|
+
}, _errorFactory)) && input.prefixItems.every((elem, _index26) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
524
|
+
method: "typia.assert",
|
|
525
|
+
path: _path + ".prefixItems[" + _index26 + "]",
|
|
526
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
527
|
+
value: elem
|
|
528
|
+
}, _errorFactory)) && _au0(elem, _path + ".prefixItems[" + _index26 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
529
|
+
method: "typia.assert",
|
|
530
|
+
path: _path + ".prefixItems[" + _index26 + "]",
|
|
531
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
532
|
+
value: elem
|
|
533
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
534
|
+
method: "typia.assert",
|
|
535
|
+
path: _path + ".prefixItems",
|
|
536
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
537
|
+
value: input.prefixItems
|
|
538
|
+
}, _errorFactory)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
539
|
+
method: "typia.assert",
|
|
540
|
+
path: _path + ".uniqueItems",
|
|
541
|
+
expected: "(boolean | undefined)",
|
|
542
|
+
value: input.uniqueItems
|
|
543
|
+
}, _errorFactory)) && ((null !== input.additionalItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
544
|
+
method: "typia.assert",
|
|
545
|
+
path: _path + ".additionalItems",
|
|
546
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
547
|
+
value: input.additionalItems
|
|
548
|
+
}, _errorFactory)) && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || ("object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
549
|
+
method: "typia.assert",
|
|
550
|
+
path: _path + ".additionalItems",
|
|
551
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
552
|
+
value: input.additionalItems
|
|
553
|
+
}, _errorFactory)) && _au0(input.additionalItems, _path + ".additionalItems", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
554
|
+
method: "typia.assert",
|
|
555
|
+
path: _path + ".additionalItems",
|
|
556
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
557
|
+
value: input.additionalItems
|
|
558
|
+
}, _errorFactory))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
559
|
+
method: "typia.assert",
|
|
560
|
+
path: _path + ".minItems",
|
|
561
|
+
expected: "number & Type<\"uint64\">",
|
|
562
|
+
value: input.minItems
|
|
563
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
564
|
+
method: "typia.assert",
|
|
565
|
+
path: _path + ".minItems",
|
|
566
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
567
|
+
value: input.minItems
|
|
568
|
+
}, _errorFactory)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
569
|
+
method: "typia.assert",
|
|
570
|
+
path: _path + ".maxItems",
|
|
571
|
+
expected: "number & Type<\"uint64\">",
|
|
572
|
+
value: input.maxItems
|
|
573
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
574
|
+
method: "typia.assert",
|
|
575
|
+
path: _path + ".maxItems",
|
|
576
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
577
|
+
value: input.maxItems
|
|
578
|
+
}, _errorFactory)) && ((null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
579
|
+
method: "typia.assert",
|
|
580
|
+
path: _path + ".additionalProperties",
|
|
581
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
582
|
+
value: input.additionalProperties
|
|
583
|
+
}, _errorFactory)) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
584
|
+
method: "typia.assert",
|
|
585
|
+
path: _path + ".additionalProperties",
|
|
586
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
587
|
+
value: input.additionalProperties
|
|
588
|
+
}, _errorFactory)) && _au0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
589
|
+
method: "typia.assert",
|
|
590
|
+
path: _path + ".additionalProperties",
|
|
591
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
592
|
+
value: input.additionalProperties
|
|
593
|
+
}, _errorFactory))) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
594
|
+
method: "typia.assert",
|
|
595
|
+
path: _path + ".properties",
|
|
596
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
597
|
+
value: input.properties
|
|
598
|
+
}, _errorFactory)) && _ao2(input.properties, _path + ".properties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
599
|
+
method: "typia.assert",
|
|
600
|
+
path: _path + ".properties",
|
|
601
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
602
|
+
value: input.properties
|
|
603
|
+
}, _errorFactory)) && (undefined === input.required || (Array.isArray(input.required) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
604
|
+
method: "typia.assert",
|
|
605
|
+
path: _path + ".required",
|
|
606
|
+
expected: "(Array<string> | undefined)",
|
|
607
|
+
value: input.required
|
|
608
|
+
}, _errorFactory)) && input.required.every((elem, _index27) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
609
|
+
method: "typia.assert",
|
|
610
|
+
path: _path + ".required[" + _index27 + "]",
|
|
611
|
+
expected: "string",
|
|
612
|
+
value: elem
|
|
613
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
614
|
+
method: "typia.assert",
|
|
615
|
+
path: _path + ".required",
|
|
616
|
+
expected: "(Array<string> | undefined)",
|
|
617
|
+
value: input.required
|
|
618
|
+
}, _errorFactory)) && (undefined === input.maxProperties || "number" === typeof input.maxProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
619
|
+
method: "typia.assert",
|
|
620
|
+
path: _path + ".maxProperties",
|
|
621
|
+
expected: "(number | undefined)",
|
|
622
|
+
value: input.maxProperties
|
|
623
|
+
}, _errorFactory)) && (undefined === input.minProperties || "number" === typeof input.minProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
624
|
+
method: "typia.assert",
|
|
625
|
+
path: _path + ".minProperties",
|
|
626
|
+
expected: "(number | undefined)",
|
|
627
|
+
value: input.minProperties
|
|
628
|
+
}, _errorFactory)) && ((Array.isArray(input.oneOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
629
|
+
method: "typia.assert",
|
|
630
|
+
path: _path + ".oneOf",
|
|
631
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
632
|
+
value: input.oneOf
|
|
633
|
+
}, _errorFactory)) && input.oneOf.every((elem, _index28) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
634
|
+
method: "typia.assert",
|
|
635
|
+
path: _path + ".oneOf[" + _index28 + "]",
|
|
636
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
637
|
+
value: elem
|
|
638
|
+
}, _errorFactory)) && _au0(elem, _path + ".oneOf[" + _index28 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
639
|
+
method: "typia.assert",
|
|
640
|
+
path: _path + ".oneOf[" + _index28 + "]",
|
|
641
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
642
|
+
value: elem
|
|
643
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
644
|
+
method: "typia.assert",
|
|
645
|
+
path: _path + ".oneOf",
|
|
646
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
647
|
+
value: input.oneOf
|
|
648
|
+
}, _errorFactory)) && (undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
649
|
+
method: "typia.assert",
|
|
650
|
+
path: _path + ".discriminator",
|
|
651
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
652
|
+
value: input.discriminator
|
|
653
|
+
}, _errorFactory)) && _ao17(input.discriminator, _path + ".discriminator", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
654
|
+
method: "typia.assert",
|
|
655
|
+
path: _path + ".discriminator",
|
|
656
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
657
|
+
value: input.discriminator
|
|
658
|
+
}, _errorFactory)) && ((Array.isArray(input.anyOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
659
|
+
method: "typia.assert",
|
|
660
|
+
path: _path + ".anyOf",
|
|
661
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
662
|
+
value: input.anyOf
|
|
663
|
+
}, _errorFactory)) && input.anyOf.every((elem, _index29) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
664
|
+
method: "typia.assert",
|
|
665
|
+
path: _path + ".anyOf[" + _index29 + "]",
|
|
666
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
667
|
+
value: elem
|
|
668
|
+
}, _errorFactory)) && _au0(elem, _path + ".anyOf[" + _index29 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
669
|
+
method: "typia.assert",
|
|
670
|
+
path: _path + ".anyOf[" + _index29 + "]",
|
|
671
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
672
|
+
value: elem
|
|
673
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
674
|
+
method: "typia.assert",
|
|
675
|
+
path: _path + ".anyOf",
|
|
676
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
677
|
+
value: input.anyOf
|
|
678
|
+
}, _errorFactory)) && ((Array.isArray(input.allOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
679
|
+
method: "typia.assert",
|
|
680
|
+
path: _path + ".allOf",
|
|
681
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
682
|
+
value: input.allOf
|
|
683
|
+
}, _errorFactory)) && input.allOf.every((elem, _index30) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
684
|
+
method: "typia.assert",
|
|
685
|
+
path: _path + ".allOf[" + _index30 + "]",
|
|
686
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
687
|
+
value: elem
|
|
688
|
+
}, _errorFactory)) && _au0(elem, _path + ".allOf[" + _index30 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
689
|
+
method: "typia.assert",
|
|
690
|
+
path: _path + ".allOf[" + _index30 + "]",
|
|
691
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
692
|
+
value: elem
|
|
693
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
694
|
+
method: "typia.assert",
|
|
695
|
+
path: _path + ".allOf",
|
|
696
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
697
|
+
value: input.allOf
|
|
698
|
+
}, _errorFactory)) && ("string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
699
|
+
method: "typia.assert",
|
|
700
|
+
path: _path + ".$ref",
|
|
701
|
+
expected: "string",
|
|
702
|
+
value: input.$ref
|
|
703
|
+
}, _errorFactory)); const _ao5 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
704
|
+
const value = input[key];
|
|
705
|
+
if (undefined === value)
|
|
706
|
+
return true;
|
|
707
|
+
return true;
|
|
708
|
+
}); const _ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
709
|
+
method: "typia.assert",
|
|
710
|
+
path: _path + "[\"const\"]",
|
|
711
|
+
expected: "(boolean | number | string)",
|
|
712
|
+
value: input["const"]
|
|
713
|
+
}, _errorFactory)) && (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
714
|
+
method: "typia.assert",
|
|
715
|
+
path: _path + ".nullable",
|
|
716
|
+
expected: "(boolean | undefined)",
|
|
717
|
+
value: input.nullable
|
|
718
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
719
|
+
method: "typia.assert",
|
|
720
|
+
path: _path + ".examples",
|
|
721
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
722
|
+
value: input.examples
|
|
723
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
724
|
+
method: "typia.assert",
|
|
725
|
+
path: _path + ".examples",
|
|
726
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
727
|
+
value: input.examples
|
|
728
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
729
|
+
method: "typia.assert",
|
|
730
|
+
path: _path + ".examples",
|
|
731
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
732
|
+
value: input.examples
|
|
733
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
734
|
+
method: "typia.assert",
|
|
735
|
+
path: _path + ".title",
|
|
736
|
+
expected: "(string | undefined)",
|
|
737
|
+
value: input.title
|
|
738
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
739
|
+
method: "typia.assert",
|
|
740
|
+
path: _path + ".description",
|
|
741
|
+
expected: "(string | undefined)",
|
|
742
|
+
value: input.description
|
|
743
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
744
|
+
method: "typia.assert",
|
|
745
|
+
path: _path + ".deprecated",
|
|
746
|
+
expected: "(boolean | undefined)",
|
|
747
|
+
value: input.deprecated
|
|
748
|
+
}, _errorFactory)) && true; const _ao7 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
749
|
+
method: "typia.assert",
|
|
750
|
+
path: _path + ".nullable",
|
|
751
|
+
expected: "(boolean | undefined)",
|
|
752
|
+
value: input.nullable
|
|
753
|
+
}, _errorFactory)) && (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
754
|
+
method: "typia.assert",
|
|
755
|
+
path: _path + "[\"default\"]",
|
|
756
|
+
expected: "(boolean | null | undefined)",
|
|
757
|
+
value: input["default"]
|
|
758
|
+
}, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
759
|
+
method: "typia.assert",
|
|
760
|
+
path: _path + "[\"enum\"]",
|
|
761
|
+
expected: "(Array<boolean | null> | undefined)",
|
|
762
|
+
value: input["enum"]
|
|
763
|
+
}, _errorFactory)) && input["enum"].every((elem, _index31) => null === elem || "boolean" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
764
|
+
method: "typia.assert",
|
|
765
|
+
path: _path + "[\"enum\"][" + _index31 + "]",
|
|
766
|
+
expected: "(boolean | null)",
|
|
767
|
+
value: elem
|
|
768
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
769
|
+
method: "typia.assert",
|
|
770
|
+
path: _path + "[\"enum\"]",
|
|
771
|
+
expected: "(Array<boolean | null> | undefined)",
|
|
772
|
+
value: input["enum"]
|
|
773
|
+
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
774
|
+
method: "typia.assert",
|
|
775
|
+
path: _path + ".type",
|
|
776
|
+
expected: "\"boolean\"",
|
|
777
|
+
value: input.type
|
|
778
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
779
|
+
method: "typia.assert",
|
|
780
|
+
path: _path + ".title",
|
|
781
|
+
expected: "(string | undefined)",
|
|
782
|
+
value: input.title
|
|
783
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
784
|
+
method: "typia.assert",
|
|
785
|
+
path: _path + ".description",
|
|
786
|
+
expected: "(string | undefined)",
|
|
787
|
+
value: input.description
|
|
788
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
789
|
+
method: "typia.assert",
|
|
790
|
+
path: _path + ".deprecated",
|
|
791
|
+
expected: "(boolean | undefined)",
|
|
792
|
+
value: input.deprecated
|
|
793
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
794
|
+
method: "typia.assert",
|
|
795
|
+
path: _path + ".examples",
|
|
796
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
797
|
+
value: input.examples
|
|
798
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
799
|
+
method: "typia.assert",
|
|
800
|
+
path: _path + ".examples",
|
|
801
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
802
|
+
value: input.examples
|
|
803
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
804
|
+
method: "typia.assert",
|
|
805
|
+
path: _path + ".examples",
|
|
806
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
807
|
+
value: input.examples
|
|
808
|
+
}, _errorFactory))); const _ao8 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
809
|
+
method: "typia.assert",
|
|
810
|
+
path: _path + ".nullable",
|
|
811
|
+
expected: "(boolean | undefined)",
|
|
812
|
+
value: input.nullable
|
|
813
|
+
}, _errorFactory)) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
814
|
+
method: "typia.assert",
|
|
815
|
+
path: _path + "[\"default\"]",
|
|
816
|
+
expected: "number & Type<\"int64\">",
|
|
817
|
+
value: input["default"]
|
|
818
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
819
|
+
method: "typia.assert",
|
|
820
|
+
path: _path + "[\"default\"]",
|
|
821
|
+
expected: "((number & Type<\"int64\">) | null | undefined)",
|
|
822
|
+
value: input["default"]
|
|
823
|
+
}, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
824
|
+
method: "typia.assert",
|
|
825
|
+
path: _path + "[\"enum\"]",
|
|
826
|
+
expected: "(Array<number | null> | undefined)",
|
|
827
|
+
value: input["enum"]
|
|
828
|
+
}, _errorFactory)) && input["enum"].every((elem, _index32) => null === elem || "number" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
829
|
+
method: "typia.assert",
|
|
830
|
+
path: _path + "[\"enum\"][" + _index32 + "]",
|
|
831
|
+
expected: "(null | number)",
|
|
832
|
+
value: elem
|
|
833
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
834
|
+
method: "typia.assert",
|
|
835
|
+
path: _path + "[\"enum\"]",
|
|
836
|
+
expected: "(Array<number | null> | undefined)",
|
|
837
|
+
value: input["enum"]
|
|
838
|
+
}, _errorFactory)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
839
|
+
method: "typia.assert",
|
|
840
|
+
path: _path + ".minimum",
|
|
841
|
+
expected: "number & Type<\"int64\">",
|
|
842
|
+
value: input.minimum
|
|
843
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
844
|
+
method: "typia.assert",
|
|
845
|
+
path: _path + ".minimum",
|
|
846
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
847
|
+
value: input.minimum
|
|
848
|
+
}, _errorFactory)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
849
|
+
method: "typia.assert",
|
|
850
|
+
path: _path + ".maximum",
|
|
851
|
+
expected: "number & Type<\"int64\">",
|
|
852
|
+
value: input.maximum
|
|
853
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
854
|
+
method: "typia.assert",
|
|
855
|
+
path: _path + ".maximum",
|
|
856
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
857
|
+
value: input.maximum
|
|
858
|
+
}, _errorFactory)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -9223372036854776000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 9223372036854776000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
859
|
+
method: "typia.assert",
|
|
860
|
+
path: _path + ".exclusiveMinimum",
|
|
861
|
+
expected: "number & Type<\"int64\">",
|
|
862
|
+
value: input.exclusiveMinimum
|
|
863
|
+
}, _errorFactory)) || "boolean" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
864
|
+
method: "typia.assert",
|
|
865
|
+
path: _path + ".exclusiveMinimum",
|
|
866
|
+
expected: "((number & Type<\"int64\">) | boolean | undefined)",
|
|
867
|
+
value: input.exclusiveMinimum
|
|
868
|
+
}, _errorFactory)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -9223372036854776000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 9223372036854776000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
869
|
+
method: "typia.assert",
|
|
870
|
+
path: _path + ".exclusiveMaximum",
|
|
871
|
+
expected: "number & Type<\"int64\">",
|
|
872
|
+
value: input.exclusiveMaximum
|
|
873
|
+
}, _errorFactory)) || "boolean" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
874
|
+
method: "typia.assert",
|
|
875
|
+
path: _path + ".exclusiveMaximum",
|
|
876
|
+
expected: "((number & Type<\"int64\">) | boolean | undefined)",
|
|
877
|
+
value: input.exclusiveMaximum
|
|
878
|
+
}, _errorFactory)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
879
|
+
method: "typia.assert",
|
|
880
|
+
path: _path + ".multipleOf",
|
|
881
|
+
expected: "number & Type<\"uint64\">",
|
|
882
|
+
value: input.multipleOf
|
|
883
|
+
}, _errorFactory)) && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
884
|
+
method: "typia.assert",
|
|
885
|
+
path: _path + ".multipleOf",
|
|
886
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
887
|
+
value: input.multipleOf
|
|
888
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
889
|
+
method: "typia.assert",
|
|
890
|
+
path: _path + ".multipleOf",
|
|
891
|
+
expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
|
|
892
|
+
value: input.multipleOf
|
|
893
|
+
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
894
|
+
method: "typia.assert",
|
|
895
|
+
path: _path + ".type",
|
|
896
|
+
expected: "\"integer\"",
|
|
897
|
+
value: input.type
|
|
898
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
899
|
+
method: "typia.assert",
|
|
900
|
+
path: _path + ".title",
|
|
901
|
+
expected: "(string | undefined)",
|
|
902
|
+
value: input.title
|
|
903
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
904
|
+
method: "typia.assert",
|
|
905
|
+
path: _path + ".description",
|
|
906
|
+
expected: "(string | undefined)",
|
|
907
|
+
value: input.description
|
|
908
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
909
|
+
method: "typia.assert",
|
|
910
|
+
path: _path + ".deprecated",
|
|
911
|
+
expected: "(boolean | undefined)",
|
|
912
|
+
value: input.deprecated
|
|
913
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
914
|
+
method: "typia.assert",
|
|
915
|
+
path: _path + ".examples",
|
|
916
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
917
|
+
value: input.examples
|
|
918
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
919
|
+
method: "typia.assert",
|
|
920
|
+
path: _path + ".examples",
|
|
921
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
922
|
+
value: input.examples
|
|
923
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
924
|
+
method: "typia.assert",
|
|
925
|
+
path: _path + ".examples",
|
|
926
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
927
|
+
value: input.examples
|
|
928
|
+
}, _errorFactory))); const _ao9 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
929
|
+
method: "typia.assert",
|
|
930
|
+
path: _path + ".nullable",
|
|
931
|
+
expected: "(boolean | undefined)",
|
|
932
|
+
value: input.nullable
|
|
933
|
+
}, _errorFactory)) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
934
|
+
method: "typia.assert",
|
|
935
|
+
path: _path + "[\"default\"]",
|
|
936
|
+
expected: "(null | number | undefined)",
|
|
937
|
+
value: input["default"]
|
|
938
|
+
}, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
939
|
+
method: "typia.assert",
|
|
940
|
+
path: _path + "[\"enum\"]",
|
|
941
|
+
expected: "(Array<number | null> | undefined)",
|
|
942
|
+
value: input["enum"]
|
|
943
|
+
}, _errorFactory)) && input["enum"].every((elem, _index33) => null === elem || "number" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
944
|
+
method: "typia.assert",
|
|
945
|
+
path: _path + "[\"enum\"][" + _index33 + "]",
|
|
946
|
+
expected: "(null | number)",
|
|
947
|
+
value: elem
|
|
948
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
949
|
+
method: "typia.assert",
|
|
950
|
+
path: _path + "[\"enum\"]",
|
|
951
|
+
expected: "(Array<number | null> | undefined)",
|
|
952
|
+
value: input["enum"]
|
|
953
|
+
}, _errorFactory)) && (undefined === input.minimum || "number" === typeof input.minimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
954
|
+
method: "typia.assert",
|
|
955
|
+
path: _path + ".minimum",
|
|
956
|
+
expected: "(number | undefined)",
|
|
957
|
+
value: input.minimum
|
|
958
|
+
}, _errorFactory)) && (undefined === input.maximum || "number" === typeof input.maximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
959
|
+
method: "typia.assert",
|
|
960
|
+
path: _path + ".maximum",
|
|
961
|
+
expected: "(number | undefined)",
|
|
962
|
+
value: input.maximum
|
|
963
|
+
}, _errorFactory)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
964
|
+
method: "typia.assert",
|
|
965
|
+
path: _path + ".exclusiveMinimum",
|
|
966
|
+
expected: "(boolean | number | undefined)",
|
|
967
|
+
value: input.exclusiveMinimum
|
|
968
|
+
}, _errorFactory)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
969
|
+
method: "typia.assert",
|
|
970
|
+
path: _path + ".exclusiveMaximum",
|
|
971
|
+
expected: "(boolean | number | undefined)",
|
|
972
|
+
value: input.exclusiveMaximum
|
|
973
|
+
}, _errorFactory)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
974
|
+
method: "typia.assert",
|
|
975
|
+
path: _path + ".multipleOf",
|
|
976
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
977
|
+
value: input.multipleOf
|
|
978
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
979
|
+
method: "typia.assert",
|
|
980
|
+
path: _path + ".multipleOf",
|
|
981
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
982
|
+
value: input.multipleOf
|
|
983
|
+
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
984
|
+
method: "typia.assert",
|
|
985
|
+
path: _path + ".type",
|
|
986
|
+
expected: "\"number\"",
|
|
987
|
+
value: input.type
|
|
988
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
989
|
+
method: "typia.assert",
|
|
990
|
+
path: _path + ".title",
|
|
991
|
+
expected: "(string | undefined)",
|
|
992
|
+
value: input.title
|
|
993
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
994
|
+
method: "typia.assert",
|
|
995
|
+
path: _path + ".description",
|
|
996
|
+
expected: "(string | undefined)",
|
|
997
|
+
value: input.description
|
|
998
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
999
|
+
method: "typia.assert",
|
|
1000
|
+
path: _path + ".deprecated",
|
|
1001
|
+
expected: "(boolean | undefined)",
|
|
1002
|
+
value: input.deprecated
|
|
1003
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1004
|
+
method: "typia.assert",
|
|
1005
|
+
path: _path + ".examples",
|
|
1006
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1007
|
+
value: input.examples
|
|
1008
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1009
|
+
method: "typia.assert",
|
|
1010
|
+
path: _path + ".examples",
|
|
1011
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1012
|
+
value: input.examples
|
|
1013
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1014
|
+
method: "typia.assert",
|
|
1015
|
+
path: _path + ".examples",
|
|
1016
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1017
|
+
value: input.examples
|
|
1018
|
+
}, _errorFactory))); const _ao10 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1019
|
+
method: "typia.assert",
|
|
1020
|
+
path: _path + ".nullable",
|
|
1021
|
+
expected: "(boolean | undefined)",
|
|
1022
|
+
value: input.nullable
|
|
1023
|
+
}, _errorFactory)) && (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1024
|
+
method: "typia.assert",
|
|
1025
|
+
path: _path + "[\"default\"]",
|
|
1026
|
+
expected: "(null | string | undefined)",
|
|
1027
|
+
value: input["default"]
|
|
1028
|
+
}, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1029
|
+
method: "typia.assert",
|
|
1030
|
+
path: _path + "[\"enum\"]",
|
|
1031
|
+
expected: "(Array<string | null> | undefined)",
|
|
1032
|
+
value: input["enum"]
|
|
1033
|
+
}, _errorFactory)) && input["enum"].every((elem, _index34) => null === elem || "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1034
|
+
method: "typia.assert",
|
|
1035
|
+
path: _path + "[\"enum\"][" + _index34 + "]",
|
|
1036
|
+
expected: "(null | string)",
|
|
1037
|
+
value: elem
|
|
1038
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1039
|
+
method: "typia.assert",
|
|
1040
|
+
path: _path + "[\"enum\"]",
|
|
1041
|
+
expected: "(Array<string | null> | undefined)",
|
|
1042
|
+
value: input["enum"]
|
|
1043
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1044
|
+
method: "typia.assert",
|
|
1045
|
+
path: _path + ".format",
|
|
1046
|
+
expected: "(string | undefined)",
|
|
1047
|
+
value: input.format
|
|
1048
|
+
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1049
|
+
method: "typia.assert",
|
|
1050
|
+
path: _path + ".pattern",
|
|
1051
|
+
expected: "(string | undefined)",
|
|
1052
|
+
value: input.pattern
|
|
1053
|
+
}, _errorFactory)) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1054
|
+
method: "typia.assert",
|
|
1055
|
+
path: _path + ".contentMediaType",
|
|
1056
|
+
expected: "(string | undefined)",
|
|
1057
|
+
value: input.contentMediaType
|
|
1058
|
+
}, _errorFactory)) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1059
|
+
method: "typia.assert",
|
|
1060
|
+
path: _path + ".minLength",
|
|
1061
|
+
expected: "number & Type<\"uint64\">",
|
|
1062
|
+
value: input.minLength
|
|
1063
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1064
|
+
method: "typia.assert",
|
|
1065
|
+
path: _path + ".minLength",
|
|
1066
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
1067
|
+
value: input.minLength
|
|
1068
|
+
}, _errorFactory)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1069
|
+
method: "typia.assert",
|
|
1070
|
+
path: _path + ".maxLength",
|
|
1071
|
+
expected: "number & Type<\"uint64\">",
|
|
1072
|
+
value: input.maxLength
|
|
1073
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1074
|
+
method: "typia.assert",
|
|
1075
|
+
path: _path + ".maxLength",
|
|
1076
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
1077
|
+
value: input.maxLength
|
|
1078
|
+
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1079
|
+
method: "typia.assert",
|
|
1080
|
+
path: _path + ".type",
|
|
1081
|
+
expected: "\"string\"",
|
|
1082
|
+
value: input.type
|
|
1083
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1084
|
+
method: "typia.assert",
|
|
1085
|
+
path: _path + ".title",
|
|
1086
|
+
expected: "(string | undefined)",
|
|
1087
|
+
value: input.title
|
|
1088
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1089
|
+
method: "typia.assert",
|
|
1090
|
+
path: _path + ".description",
|
|
1091
|
+
expected: "(string | undefined)",
|
|
1092
|
+
value: input.description
|
|
1093
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1094
|
+
method: "typia.assert",
|
|
1095
|
+
path: _path + ".deprecated",
|
|
1096
|
+
expected: "(boolean | undefined)",
|
|
1097
|
+
value: input.deprecated
|
|
1098
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1099
|
+
method: "typia.assert",
|
|
1100
|
+
path: _path + ".examples",
|
|
1101
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1102
|
+
value: input.examples
|
|
1103
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1104
|
+
method: "typia.assert",
|
|
1105
|
+
path: _path + ".examples",
|
|
1106
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1107
|
+
value: input.examples
|
|
1108
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1109
|
+
method: "typia.assert",
|
|
1110
|
+
path: _path + ".examples",
|
|
1111
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1112
|
+
value: input.examples
|
|
1113
|
+
}, _errorFactory))); const _ao11 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1114
|
+
method: "typia.assert",
|
|
1115
|
+
path: _path + ".nullable",
|
|
1116
|
+
expected: "(boolean | undefined)",
|
|
1117
|
+
value: input.nullable
|
|
1118
|
+
}, _errorFactory)) && ((null !== input.items || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1119
|
+
method: "typia.assert",
|
|
1120
|
+
path: _path + ".items",
|
|
1121
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
|
1122
|
+
value: input.items
|
|
1123
|
+
}, _errorFactory)) && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem, _index35) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1124
|
+
method: "typia.assert",
|
|
1125
|
+
path: _path + ".items[" + _index35 + "]",
|
|
1126
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1127
|
+
value: elem
|
|
1128
|
+
}, _errorFactory)) && _au0(elem, _path + ".items[" + _index35 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1129
|
+
method: "typia.assert",
|
|
1130
|
+
path: _path + ".items[" + _index35 + "]",
|
|
1131
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1132
|
+
value: elem
|
|
1133
|
+
}, _errorFactory)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _au0(input.items, _path + ".items", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1134
|
+
method: "typia.assert",
|
|
1135
|
+
path: _path + ".items",
|
|
1136
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
|
1137
|
+
value: input.items
|
|
1138
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1139
|
+
method: "typia.assert",
|
|
1140
|
+
path: _path + ".items",
|
|
1141
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
|
1142
|
+
value: input.items
|
|
1143
|
+
}, _errorFactory))) && (undefined === input.prefixItems || (Array.isArray(input.prefixItems) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1144
|
+
method: "typia.assert",
|
|
1145
|
+
path: _path + ".prefixItems",
|
|
1146
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1147
|
+
value: input.prefixItems
|
|
1148
|
+
}, _errorFactory)) && input.prefixItems.every((elem, _index36) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1149
|
+
method: "typia.assert",
|
|
1150
|
+
path: _path + ".prefixItems[" + _index36 + "]",
|
|
1151
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1152
|
+
value: elem
|
|
1153
|
+
}, _errorFactory)) && _au0(elem, _path + ".prefixItems[" + _index36 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1154
|
+
method: "typia.assert",
|
|
1155
|
+
path: _path + ".prefixItems[" + _index36 + "]",
|
|
1156
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1157
|
+
value: elem
|
|
1158
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1159
|
+
method: "typia.assert",
|
|
1160
|
+
path: _path + ".prefixItems",
|
|
1161
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1162
|
+
value: input.prefixItems
|
|
1163
|
+
}, _errorFactory)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1164
|
+
method: "typia.assert",
|
|
1165
|
+
path: _path + ".uniqueItems",
|
|
1166
|
+
expected: "(boolean | undefined)",
|
|
1167
|
+
value: input.uniqueItems
|
|
1168
|
+
}, _errorFactory)) && ((null !== input.additionalItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1169
|
+
method: "typia.assert",
|
|
1170
|
+
path: _path + ".additionalItems",
|
|
1171
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
1172
|
+
value: input.additionalItems
|
|
1173
|
+
}, _errorFactory)) && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || ("object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1174
|
+
method: "typia.assert",
|
|
1175
|
+
path: _path + ".additionalItems",
|
|
1176
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
1177
|
+
value: input.additionalItems
|
|
1178
|
+
}, _errorFactory)) && _au0(input.additionalItems, _path + ".additionalItems", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1179
|
+
method: "typia.assert",
|
|
1180
|
+
path: _path + ".additionalItems",
|
|
1181
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
|
1182
|
+
value: input.additionalItems
|
|
1183
|
+
}, _errorFactory))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1184
|
+
method: "typia.assert",
|
|
1185
|
+
path: _path + ".minItems",
|
|
1186
|
+
expected: "number & Type<\"uint64\">",
|
|
1187
|
+
value: input.minItems
|
|
1188
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1189
|
+
method: "typia.assert",
|
|
1190
|
+
path: _path + ".minItems",
|
|
1191
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
1192
|
+
value: input.minItems
|
|
1193
|
+
}, _errorFactory)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1194
|
+
method: "typia.assert",
|
|
1195
|
+
path: _path + ".maxItems",
|
|
1196
|
+
expected: "number & Type<\"uint64\">",
|
|
1197
|
+
value: input.maxItems
|
|
1198
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1199
|
+
method: "typia.assert",
|
|
1200
|
+
path: _path + ".maxItems",
|
|
1201
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
1202
|
+
value: input.maxItems
|
|
1203
|
+
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1204
|
+
method: "typia.assert",
|
|
1205
|
+
path: _path + ".type",
|
|
1206
|
+
expected: "\"array\"",
|
|
1207
|
+
value: input.type
|
|
1208
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1209
|
+
method: "typia.assert",
|
|
1210
|
+
path: _path + ".title",
|
|
1211
|
+
expected: "(string | undefined)",
|
|
1212
|
+
value: input.title
|
|
1213
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1214
|
+
method: "typia.assert",
|
|
1215
|
+
path: _path + ".description",
|
|
1216
|
+
expected: "(string | undefined)",
|
|
1217
|
+
value: input.description
|
|
1218
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1219
|
+
method: "typia.assert",
|
|
1220
|
+
path: _path + ".deprecated",
|
|
1221
|
+
expected: "(boolean | undefined)",
|
|
1222
|
+
value: input.deprecated
|
|
1223
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1224
|
+
method: "typia.assert",
|
|
1225
|
+
path: _path + ".examples",
|
|
1226
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1227
|
+
value: input.examples
|
|
1228
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1229
|
+
method: "typia.assert",
|
|
1230
|
+
path: _path + ".examples",
|
|
1231
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1232
|
+
value: input.examples
|
|
1233
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1234
|
+
method: "typia.assert",
|
|
1235
|
+
path: _path + ".examples",
|
|
1236
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1237
|
+
value: input.examples
|
|
1238
|
+
}, _errorFactory))); const _ao12 = (input, _path, _exceptionable = true) => ("string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1239
|
+
method: "typia.assert",
|
|
1240
|
+
path: _path + ".$ref",
|
|
1241
|
+
expected: "string",
|
|
1242
|
+
value: input.$ref
|
|
1243
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1244
|
+
method: "typia.assert",
|
|
1245
|
+
path: _path + ".examples",
|
|
1246
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1247
|
+
value: input.examples
|
|
1248
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1249
|
+
method: "typia.assert",
|
|
1250
|
+
path: _path + ".examples",
|
|
1251
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1252
|
+
value: input.examples
|
|
1253
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1254
|
+
method: "typia.assert",
|
|
1255
|
+
path: _path + ".examples",
|
|
1256
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1257
|
+
value: input.examples
|
|
1258
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1259
|
+
method: "typia.assert",
|
|
1260
|
+
path: _path + ".title",
|
|
1261
|
+
expected: "(string | undefined)",
|
|
1262
|
+
value: input.title
|
|
1263
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1264
|
+
method: "typia.assert",
|
|
1265
|
+
path: _path + ".description",
|
|
1266
|
+
expected: "(string | undefined)",
|
|
1267
|
+
value: input.description
|
|
1268
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1269
|
+
method: "typia.assert",
|
|
1270
|
+
path: _path + ".deprecated",
|
|
1271
|
+
expected: "(boolean | undefined)",
|
|
1272
|
+
value: input.deprecated
|
|
1273
|
+
}, _errorFactory)) && true; const _ao13 = (input, _path, _exceptionable = true) => ("string" === typeof input.$recursiveRef || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1274
|
+
method: "typia.assert",
|
|
1275
|
+
path: _path + ".$recursiveRef",
|
|
1276
|
+
expected: "string",
|
|
1277
|
+
value: input.$recursiveRef
|
|
1278
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1279
|
+
method: "typia.assert",
|
|
1280
|
+
path: _path + ".examples",
|
|
1281
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1282
|
+
value: input.examples
|
|
1283
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1284
|
+
method: "typia.assert",
|
|
1285
|
+
path: _path + ".examples",
|
|
1286
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1287
|
+
value: input.examples
|
|
1288
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1289
|
+
method: "typia.assert",
|
|
1290
|
+
path: _path + ".examples",
|
|
1291
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1292
|
+
value: input.examples
|
|
1293
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1294
|
+
method: "typia.assert",
|
|
1295
|
+
path: _path + ".title",
|
|
1296
|
+
expected: "(string | undefined)",
|
|
1297
|
+
value: input.title
|
|
1298
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1299
|
+
method: "typia.assert",
|
|
1300
|
+
path: _path + ".description",
|
|
1301
|
+
expected: "(string | undefined)",
|
|
1302
|
+
value: input.description
|
|
1303
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1304
|
+
method: "typia.assert",
|
|
1305
|
+
path: _path + ".deprecated",
|
|
1306
|
+
expected: "(boolean | undefined)",
|
|
1307
|
+
value: input.deprecated
|
|
1308
|
+
}, _errorFactory)) && true; const _ao14 = (input, _path, _exceptionable = true) => ((Array.isArray(input.allOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1309
|
+
method: "typia.assert",
|
|
1310
|
+
path: _path + ".allOf",
|
|
1311
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1312
|
+
value: input.allOf
|
|
1313
|
+
}, _errorFactory)) && input.allOf.every((elem, _index37) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1314
|
+
method: "typia.assert",
|
|
1315
|
+
path: _path + ".allOf[" + _index37 + "]",
|
|
1316
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1317
|
+
value: elem
|
|
1318
|
+
}, _errorFactory)) && _au0(elem, _path + ".allOf[" + _index37 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1319
|
+
method: "typia.assert",
|
|
1320
|
+
path: _path + ".allOf[" + _index37 + "]",
|
|
1321
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1322
|
+
value: elem
|
|
1323
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1324
|
+
method: "typia.assert",
|
|
1325
|
+
path: _path + ".allOf",
|
|
1326
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1327
|
+
value: input.allOf
|
|
1328
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1329
|
+
method: "typia.assert",
|
|
1330
|
+
path: _path + ".examples",
|
|
1331
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1332
|
+
value: input.examples
|
|
1333
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1334
|
+
method: "typia.assert",
|
|
1335
|
+
path: _path + ".examples",
|
|
1336
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1337
|
+
value: input.examples
|
|
1338
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1339
|
+
method: "typia.assert",
|
|
1340
|
+
path: _path + ".examples",
|
|
1341
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1342
|
+
value: input.examples
|
|
1343
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1344
|
+
method: "typia.assert",
|
|
1345
|
+
path: _path + ".title",
|
|
1346
|
+
expected: "(string | undefined)",
|
|
1347
|
+
value: input.title
|
|
1348
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1349
|
+
method: "typia.assert",
|
|
1350
|
+
path: _path + ".description",
|
|
1351
|
+
expected: "(string | undefined)",
|
|
1352
|
+
value: input.description
|
|
1353
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1354
|
+
method: "typia.assert",
|
|
1355
|
+
path: _path + ".deprecated",
|
|
1356
|
+
expected: "(boolean | undefined)",
|
|
1357
|
+
value: input.deprecated
|
|
1358
|
+
}, _errorFactory)) && true; const _ao15 = (input, _path, _exceptionable = true) => ((Array.isArray(input.anyOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1359
|
+
method: "typia.assert",
|
|
1360
|
+
path: _path + ".anyOf",
|
|
1361
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1362
|
+
value: input.anyOf
|
|
1363
|
+
}, _errorFactory)) && input.anyOf.every((elem, _index38) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1364
|
+
method: "typia.assert",
|
|
1365
|
+
path: _path + ".anyOf[" + _index38 + "]",
|
|
1366
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1367
|
+
value: elem
|
|
1368
|
+
}, _errorFactory)) && _au0(elem, _path + ".anyOf[" + _index38 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1369
|
+
method: "typia.assert",
|
|
1370
|
+
path: _path + ".anyOf[" + _index38 + "]",
|
|
1371
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1372
|
+
value: elem
|
|
1373
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1374
|
+
method: "typia.assert",
|
|
1375
|
+
path: _path + ".anyOf",
|
|
1376
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1377
|
+
value: input.anyOf
|
|
1378
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1379
|
+
method: "typia.assert",
|
|
1380
|
+
path: _path + ".examples",
|
|
1381
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1382
|
+
value: input.examples
|
|
1383
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1384
|
+
method: "typia.assert",
|
|
1385
|
+
path: _path + ".examples",
|
|
1386
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1387
|
+
value: input.examples
|
|
1388
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1389
|
+
method: "typia.assert",
|
|
1390
|
+
path: _path + ".examples",
|
|
1391
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1392
|
+
value: input.examples
|
|
1393
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1394
|
+
method: "typia.assert",
|
|
1395
|
+
path: _path + ".title",
|
|
1396
|
+
expected: "(string | undefined)",
|
|
1397
|
+
value: input.title
|
|
1398
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1399
|
+
method: "typia.assert",
|
|
1400
|
+
path: _path + ".description",
|
|
1401
|
+
expected: "(string | undefined)",
|
|
1402
|
+
value: input.description
|
|
1403
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1404
|
+
method: "typia.assert",
|
|
1405
|
+
path: _path + ".deprecated",
|
|
1406
|
+
expected: "(boolean | undefined)",
|
|
1407
|
+
value: input.deprecated
|
|
1408
|
+
}, _errorFactory)) && true; const _ao16 = (input, _path, _exceptionable = true) => ((Array.isArray(input.oneOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1409
|
+
method: "typia.assert",
|
|
1410
|
+
path: _path + ".oneOf",
|
|
1411
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1412
|
+
value: input.oneOf
|
|
1413
|
+
}, _errorFactory)) && input.oneOf.every((elem, _index39) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1414
|
+
method: "typia.assert",
|
|
1415
|
+
path: _path + ".oneOf[" + _index39 + "]",
|
|
1416
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1417
|
+
value: elem
|
|
1418
|
+
}, _errorFactory)) && _au0(elem, _path + ".oneOf[" + _index39 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1419
|
+
method: "typia.assert",
|
|
1420
|
+
path: _path + ".oneOf[" + _index39 + "]",
|
|
1421
|
+
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
|
1422
|
+
value: elem
|
|
1423
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1424
|
+
method: "typia.assert",
|
|
1425
|
+
path: _path + ".oneOf",
|
|
1426
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1427
|
+
value: input.oneOf
|
|
1428
|
+
}, _errorFactory)) && (undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1429
|
+
method: "typia.assert",
|
|
1430
|
+
path: _path + ".discriminator",
|
|
1431
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
1432
|
+
value: input.discriminator
|
|
1433
|
+
}, _errorFactory)) && _ao17(input.discriminator, _path + ".discriminator", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1434
|
+
method: "typia.assert",
|
|
1435
|
+
path: _path + ".discriminator",
|
|
1436
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
1437
|
+
value: input.discriminator
|
|
1438
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1439
|
+
method: "typia.assert",
|
|
1440
|
+
path: _path + ".examples",
|
|
1441
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1442
|
+
value: input.examples
|
|
1443
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1444
|
+
method: "typia.assert",
|
|
1445
|
+
path: _path + ".examples",
|
|
1446
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1447
|
+
value: input.examples
|
|
1448
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1449
|
+
method: "typia.assert",
|
|
1450
|
+
path: _path + ".examples",
|
|
1451
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1452
|
+
value: input.examples
|
|
1453
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1454
|
+
method: "typia.assert",
|
|
1455
|
+
path: _path + ".title",
|
|
1456
|
+
expected: "(string | undefined)",
|
|
1457
|
+
value: input.title
|
|
1458
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1459
|
+
method: "typia.assert",
|
|
1460
|
+
path: _path + ".description",
|
|
1461
|
+
expected: "(string | undefined)",
|
|
1462
|
+
value: input.description
|
|
1463
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1464
|
+
method: "typia.assert",
|
|
1465
|
+
path: _path + ".deprecated",
|
|
1466
|
+
expected: "(boolean | undefined)",
|
|
1467
|
+
value: input.deprecated
|
|
1468
|
+
}, _errorFactory)) && true; const _ao17 = (input, _path, _exceptionable = true) => ("string" === typeof input.propertyName || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1469
|
+
method: "typia.assert",
|
|
1470
|
+
path: _path + ".propertyName",
|
|
1471
|
+
expected: "string",
|
|
1472
|
+
value: input.propertyName
|
|
1473
|
+
}, _errorFactory)) && (undefined === input.mapping || ("object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1474
|
+
method: "typia.assert",
|
|
1475
|
+
path: _path + ".mapping",
|
|
1476
|
+
expected: "(Record<string, string> | undefined)",
|
|
1477
|
+
value: input.mapping
|
|
1478
|
+
}, _errorFactory)) && _ao18(input.mapping, _path + ".mapping", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1479
|
+
method: "typia.assert",
|
|
1480
|
+
path: _path + ".mapping",
|
|
1481
|
+
expected: "(Record<string, string> | undefined)",
|
|
1482
|
+
value: input.mapping
|
|
1483
|
+
}, _errorFactory)); const _ao18 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1484
|
+
const value = input[key];
|
|
1485
|
+
if (undefined === value)
|
|
1486
|
+
return true;
|
|
1487
|
+
return "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1488
|
+
method: "typia.assert",
|
|
1489
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1490
|
+
expected: "string",
|
|
1491
|
+
value: value
|
|
1492
|
+
}, _errorFactory);
|
|
1493
|
+
}); const _ao19 = (input, _path, _exceptionable = true) => (null === input["default"] || undefined === input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1494
|
+
method: "typia.assert",
|
|
1495
|
+
path: _path + "[\"default\"]",
|
|
1496
|
+
expected: "(null | undefined)",
|
|
1497
|
+
value: input["default"]
|
|
1498
|
+
}, _errorFactory)) && ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1499
|
+
method: "typia.assert",
|
|
1500
|
+
path: _path + ".type",
|
|
1501
|
+
expected: "\"null\"",
|
|
1502
|
+
value: input.type
|
|
1503
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1504
|
+
method: "typia.assert",
|
|
1505
|
+
path: _path + ".title",
|
|
1506
|
+
expected: "(string | undefined)",
|
|
1507
|
+
value: input.title
|
|
1508
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1509
|
+
method: "typia.assert",
|
|
1510
|
+
path: _path + ".description",
|
|
1511
|
+
expected: "(string | undefined)",
|
|
1512
|
+
value: input.description
|
|
1513
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1514
|
+
method: "typia.assert",
|
|
1515
|
+
path: _path + ".deprecated",
|
|
1516
|
+
expected: "(boolean | undefined)",
|
|
1517
|
+
value: input.deprecated
|
|
1518
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1519
|
+
method: "typia.assert",
|
|
1520
|
+
path: _path + ".examples",
|
|
1521
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1522
|
+
value: input.examples
|
|
1523
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1524
|
+
method: "typia.assert",
|
|
1525
|
+
path: _path + ".examples",
|
|
1526
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1527
|
+
value: input.examples
|
|
1528
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1529
|
+
method: "typia.assert",
|
|
1530
|
+
path: _path + ".examples",
|
|
1531
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1532
|
+
value: input.examples
|
|
1533
|
+
}, _errorFactory))); const _ao20 = (input, _path, _exceptionable = true) => (null !== input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1534
|
+
method: "typia.assert",
|
|
1535
|
+
path: _path + ".type",
|
|
1536
|
+
expected: "undefined",
|
|
1537
|
+
value: input.type
|
|
1538
|
+
}, _errorFactory)) && (undefined === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1539
|
+
method: "typia.assert",
|
|
1540
|
+
path: _path + ".type",
|
|
1541
|
+
expected: "undefined",
|
|
1542
|
+
value: input.type
|
|
1543
|
+
}, _errorFactory)) && true && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1544
|
+
method: "typia.assert",
|
|
1545
|
+
path: _path + ".title",
|
|
1546
|
+
expected: "(string | undefined)",
|
|
1547
|
+
value: input.title
|
|
1548
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1549
|
+
method: "typia.assert",
|
|
1550
|
+
path: _path + ".description",
|
|
1551
|
+
expected: "(string | undefined)",
|
|
1552
|
+
value: input.description
|
|
1553
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1554
|
+
method: "typia.assert",
|
|
1555
|
+
path: _path + ".deprecated",
|
|
1556
|
+
expected: "(boolean | undefined)",
|
|
1557
|
+
value: input.deprecated
|
|
1558
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1559
|
+
method: "typia.assert",
|
|
1560
|
+
path: _path + ".examples",
|
|
1561
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1562
|
+
value: input.examples
|
|
1563
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1564
|
+
method: "typia.assert",
|
|
1565
|
+
path: _path + ".examples",
|
|
1566
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1567
|
+
value: input.examples
|
|
1568
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1569
|
+
method: "typia.assert",
|
|
1570
|
+
path: _path + ".examples",
|
|
1571
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1572
|
+
value: input.examples
|
|
1573
|
+
}, _errorFactory))); const _ao21 = (input, _path, _exceptionable = true) => ("string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1574
|
+
method: "typia.assert",
|
|
1575
|
+
path: _path + ".$ref",
|
|
1576
|
+
expected: "string",
|
|
1577
|
+
value: input.$ref
|
|
1578
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1579
|
+
method: "typia.assert",
|
|
1580
|
+
path: _path + ".examples",
|
|
1581
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1582
|
+
value: input.examples
|
|
1583
|
+
}, _errorFactory)) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _ao5(input.examples, _path + ".examples", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1584
|
+
method: "typia.assert",
|
|
1585
|
+
path: _path + ".examples",
|
|
1586
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1587
|
+
value: input.examples
|
|
1588
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1589
|
+
method: "typia.assert",
|
|
1590
|
+
path: _path + ".examples",
|
|
1591
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1592
|
+
value: input.examples
|
|
1593
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1594
|
+
method: "typia.assert",
|
|
1595
|
+
path: _path + ".title",
|
|
1596
|
+
expected: "(string | undefined)",
|
|
1597
|
+
value: input.title
|
|
1598
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1599
|
+
method: "typia.assert",
|
|
1600
|
+
path: _path + ".description",
|
|
1601
|
+
expected: "(string | undefined)",
|
|
1602
|
+
value: input.description
|
|
1603
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1604
|
+
method: "typia.assert",
|
|
1605
|
+
path: _path + ".deprecated",
|
|
1606
|
+
expected: "(boolean | undefined)",
|
|
1607
|
+
value: input.deprecated
|
|
1608
|
+
}, _errorFactory)) && true && (undefined === input.$defs || ("object" === typeof input.$defs && null !== input.$defs && false === Array.isArray(input.$defs) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1609
|
+
method: "typia.assert",
|
|
1610
|
+
path: _path + ".$defs",
|
|
1611
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1612
|
+
value: input.$defs
|
|
1613
|
+
}, _errorFactory)) && _ao2(input.$defs, _path + ".$defs", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1614
|
+
method: "typia.assert",
|
|
1615
|
+
path: _path + ".$defs",
|
|
1616
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1617
|
+
value: input.$defs
|
|
1618
|
+
}, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
|
|
1619
|
+
if ("object" === input.type)
|
|
1620
|
+
return _ao3(input, _path, true && _exceptionable);
|
|
1621
|
+
else if (Array.isArray(input.type) && input.type.every((elem, _index40) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem))
|
|
1622
|
+
return _ao4(input, _path, true && _exceptionable);
|
|
1623
|
+
else if ("boolean" === input.type)
|
|
1624
|
+
return _ao7(input, _path, true && _exceptionable);
|
|
1625
|
+
else if ("number" === input.type)
|
|
1626
|
+
return _ao9(input, _path, true && _exceptionable);
|
|
1627
|
+
else if ("integer" === input.type)
|
|
1628
|
+
return _ao8(input, _path, true && _exceptionable);
|
|
1629
|
+
else if ("string" === input.type)
|
|
1630
|
+
return _ao10(input, _path, true && _exceptionable);
|
|
1631
|
+
else if ("array" === input.type)
|
|
1632
|
+
return _ao11(input, _path, true && _exceptionable);
|
|
1633
|
+
else if (undefined !== input.$recursiveRef)
|
|
1634
|
+
return _ao13(input, _path, true && _exceptionable);
|
|
1635
|
+
else if ("null" === input.type)
|
|
1636
|
+
return _ao19(input, _path, true && _exceptionable);
|
|
1637
|
+
else
|
|
1638
|
+
return (() => {
|
|
1639
|
+
if (undefined !== input["const"])
|
|
1640
|
+
return _ao6(input, _path, true && _exceptionable);
|
|
1641
|
+
else if (undefined !== input.$ref)
|
|
1642
|
+
return _ao12(input, _path, true && _exceptionable);
|
|
1643
|
+
else if (undefined !== input.allOf)
|
|
1644
|
+
return _ao14(input, _path, true && _exceptionable);
|
|
1645
|
+
else if (undefined !== input.anyOf)
|
|
1646
|
+
return _ao15(input, _path, true && _exceptionable);
|
|
1647
|
+
else if (undefined !== input.oneOf)
|
|
1648
|
+
return _ao16(input, _path, true && _exceptionable);
|
|
1649
|
+
else
|
|
1650
|
+
return _ao20(input, _path, true && _exceptionable);
|
|
1651
|
+
})();
|
|
1652
|
+
})(); const _au1 = (input, _path, _exceptionable = true) => (() => {
|
|
1653
|
+
if (undefined !== input.type)
|
|
1654
|
+
return _ao1(input, _path, true && _exceptionable);
|
|
1655
|
+
else if (undefined !== input.$ref)
|
|
1656
|
+
return _ao21(input, _path, true && _exceptionable);
|
|
1657
|
+
else
|
|
1658
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1659
|
+
method: "typia.assert",
|
|
1660
|
+
path: _path,
|
|
1661
|
+
expected: "(IObject & { $defs?: Record<string, IJsonSchema> | undefined; } | IReference<string> & { $defs?: Record<string, IJsonSchema> | undefined; })",
|
|
1662
|
+
value: input
|
|
1663
|
+
}, _errorFactory);
|
|
1664
|
+
})(); const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && _io0(elem)); let _errorFactory; return (input, errorFactory) => {
|
|
1665
|
+
if (false === __is(input)) {
|
|
1666
|
+
_errorFactory = errorFactory;
|
|
1667
|
+
((input, _path, _exceptionable = true) => (Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
1668
|
+
method: "typia.assert",
|
|
1669
|
+
path: _path + "",
|
|
1670
|
+
expected: "Array<IMcpTool>",
|
|
1671
|
+
value: input
|
|
1672
|
+
}, _errorFactory)) && input.every((elem, _index21) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(true, {
|
|
1673
|
+
method: "typia.assert",
|
|
1674
|
+
path: _path + "[" + _index21 + "]",
|
|
1675
|
+
expected: "IMcpTool",
|
|
1676
|
+
value: elem
|
|
1677
|
+
}, _errorFactory)) && _ao0(elem, _path + "[" + _index21 + "]", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
1678
|
+
method: "typia.assert",
|
|
1679
|
+
path: _path + "[" + _index21 + "]",
|
|
1680
|
+
expected: "IMcpTool",
|
|
1681
|
+
value: elem
|
|
1682
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(true, {
|
|
1683
|
+
method: "typia.assert",
|
|
1684
|
+
path: _path + "",
|
|
1685
|
+
expected: "Array<IMcpTool>",
|
|
1686
|
+
value: input
|
|
1687
|
+
}, _errorFactory))(input, "$input", true);
|
|
1688
|
+
}
|
|
1689
|
+
return input;
|
|
1690
|
+
}; })()(tools),
|
|
1691
|
+
});
|
|
1692
|
+
return {
|
|
1693
|
+
protocol: "mcp",
|
|
1694
|
+
name: props.name,
|
|
1695
|
+
client: props.client,
|
|
1696
|
+
// eslint-disable-next-line ts/no-unsafe-assignment
|
|
1697
|
+
application,
|
|
1698
|
+
};
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
//# sourceMappingURL=assertMcpController.js.map
|