@agentica/core 0.21.0 → 0.23.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/README.md +10 -11
- package/lib/Agentica.d.ts +2 -1
- package/lib/Agentica.js +15 -13
- package/lib/Agentica.js.map +1 -1
- package/lib/MicroAgentica.d.ts +12 -1
- package/lib/MicroAgentica.js +23 -10
- package/lib/MicroAgentica.js.map +1 -1
- package/lib/context/AgenticaContext.d.ts +4 -4
- package/lib/context/MicroAgenticaContext.d.ts +2 -2
- package/lib/events/AgenticaEvent.d.ts +3 -1
- package/lib/events/AgenticaTextEvent.d.ts +2 -2
- package/lib/events/AgenticaUserInputEvent.d.ts +10 -0
- package/lib/events/AgenticaUserInputEvent.js +3 -0
- package/lib/events/AgenticaUserInputEvent.js.map +1 -0
- package/lib/events/MicroAgenticaEvent.d.ts +3 -1
- package/lib/factory/events.d.ts +7 -3
- package/lib/factory/events.js +29 -4
- package/lib/factory/events.js.map +1 -1
- package/lib/factory/histories.d.ts +6 -3
- package/lib/factory/histories.js +59 -32
- package/lib/factory/histories.js.map +1 -1
- package/lib/functional/assertHttpController.d.ts +75 -0
- package/lib/functional/assertHttpController.js +9622 -0
- package/lib/functional/assertHttpController.js.map +1 -0
- package/lib/functional/assertHttpLlmApplication.d.ts +1 -0
- package/lib/functional/assertHttpLlmApplication.js +1 -0
- package/lib/functional/assertHttpLlmApplication.js.map +1 -1
- package/lib/functional/assertMcpController.d.ts +1 -1
- package/lib/functional/assertMcpController.js +1 -1
- package/lib/functional/assertMcpController.js.map +1 -1
- package/lib/functional/validateHttpController.d.ts +75 -0
- package/lib/functional/validateHttpController.js +7952 -0
- package/lib/functional/validateHttpController.js.map +1 -0
- package/lib/functional/validateHttpLlmApplication.d.ts +1 -0
- package/lib/functional/validateHttpLlmApplication.js +1 -0
- package/lib/functional/validateHttpLlmApplication.js.map +1 -1
- package/lib/functional/validateMcpController.d.ts +24 -0
- package/lib/functional/validateMcpController.js +3034 -0
- package/lib/functional/validateMcpController.js.map +1 -0
- package/lib/histories/AgenticaHistory.d.ts +3 -1
- package/lib/histories/AgenticaTextHistory.d.ts +2 -2
- package/lib/histories/AgenticaUserInputHistory.d.ts +80 -0
- package/lib/histories/AgenticaUserInputHistory.js +3 -0
- package/lib/histories/AgenticaUserInputHistory.js.map +1 -0
- package/lib/histories/MicroAgenticaHistory.d.ts +2 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +25984 -5962
- package/lib/index.mjs.map +1 -1
- package/lib/json/IAgenticaEventJson.d.ts +8 -1
- package/lib/json/IAgenticaHistoryJson.d.ts +15 -3
- package/lib/orchestrate/call.js +3 -7
- package/lib/orchestrate/call.js.map +1 -1
- package/lib/orchestrate/cancel.js +1 -1
- package/lib/orchestrate/cancel.js.map +1 -1
- package/lib/orchestrate/initialize.js +2 -6
- package/lib/orchestrate/initialize.js.map +1 -1
- package/lib/orchestrate/select.js +2 -6
- package/lib/orchestrate/select.js.map +1 -1
- package/lib/transformers/AgenticaEventTransformer.js +0 -1
- package/lib/transformers/AgenticaEventTransformer.js.map +1 -1
- package/package.json +2 -2
- package/src/Agentica.ts +21 -18
- package/src/MicroAgentica.ts +30 -15
- package/src/context/AgenticaContext.ts +4 -4
- package/src/context/MicroAgenticaContext.ts +2 -2
- package/src/events/AgenticaEvent.ts +4 -1
- package/src/events/AgenticaTextEvent.ts +2 -4
- package/src/events/AgenticaUserInputEvent.ts +12 -0
- package/src/events/MicroAgenticaEvent.ts +4 -1
- package/src/factory/events.ts +26 -8
- package/src/factory/histories.ts +76 -43
- package/src/functional/assertHttpController.ts +112 -0
- package/src/functional/assertHttpLlmApplication.ts +1 -0
- package/src/functional/assertMcpController.ts +1 -2
- package/src/functional/validateHttpController.ts +118 -0
- package/src/functional/validateHttpLlmApplication.ts +1 -1
- package/src/functional/validateMcpController.ts +56 -0
- package/src/histories/AgenticaHistory.ts +4 -1
- package/src/histories/AgenticaTextHistory.ts +2 -4
- package/src/histories/AgenticaUserInputHistory.ts +88 -0
- package/src/histories/MicroAgenticaHistory.ts +3 -1
- package/src/index.ts +3 -0
- package/src/json/IAgenticaEventJson.ts +9 -1
- package/src/json/IAgenticaHistoryJson.ts +16 -4
- package/src/orchestrate/call.ts +5 -7
- package/src/orchestrate/cancel.ts +1 -1
- package/src/orchestrate/initialize.ts +2 -6
- package/src/orchestrate/select.ts +2 -7
- package/src/transformers/AgenticaEventTransformer.ts +0 -1
|
@@ -0,0 +1,3034 @@
|
|
|
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.validateMcpController = validateMcpController;
|
|
49
|
+
const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString.js"));
|
|
50
|
+
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
|
|
51
|
+
const __typia_transform__assertGuard = __importStar(require("typia/lib/internal/_assertGuard.js"));
|
|
52
|
+
const openapi_1 = require("@samchon/openapi");
|
|
53
|
+
const typia_1 = __importDefault(require("typia"));
|
|
54
|
+
/**
|
|
55
|
+
* Create an MCP controller with type validation.
|
|
56
|
+
*
|
|
57
|
+
* Create an {@link IAgenticaController.IMcp} instance which represents
|
|
58
|
+
* an MCP (Model Context Protocol) controller with LLM function calling
|
|
59
|
+
* schemas and client connection.
|
|
60
|
+
*
|
|
61
|
+
* @param props Properties to create the MCP controller
|
|
62
|
+
* @param props.name Name of the MCP implementation.
|
|
63
|
+
* @param props.client Client connection to the MCP implementation.
|
|
64
|
+
* @param props.model Model schema of the LLM function calling.
|
|
65
|
+
* @param props.options Options to create the MCP controller.
|
|
66
|
+
* @returns MCP LLM application instance
|
|
67
|
+
* @author SunRabbit
|
|
68
|
+
*/
|
|
69
|
+
function validateMcpController(props) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
// for peerDependencies
|
|
72
|
+
const { ListToolsResultSchema } = yield Promise.resolve().then(() => __importStar(require("@modelcontextprotocol/sdk/types.js")));
|
|
73
|
+
// get list of tools
|
|
74
|
+
const { tools } = yield props.client.request({ method: "tools/list" }, ListToolsResultSchema);
|
|
75
|
+
const inspect = (() => { 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 => {
|
|
76
|
+
const value = input[key];
|
|
77
|
+
if (undefined === value)
|
|
78
|
+
return true;
|
|
79
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
80
|
+
}); 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 => {
|
|
81
|
+
const value = input[key];
|
|
82
|
+
if (undefined === value)
|
|
83
|
+
return true;
|
|
84
|
+
return true;
|
|
85
|
+
}); 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 => {
|
|
86
|
+
const value = input[key];
|
|
87
|
+
if (undefined === value)
|
|
88
|
+
return true;
|
|
89
|
+
return "string" === typeof value;
|
|
90
|
+
}); 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 => (() => {
|
|
91
|
+
if ("object" === input.type)
|
|
92
|
+
return _io3(input);
|
|
93
|
+
else if (Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem))
|
|
94
|
+
return _io4(input);
|
|
95
|
+
else if ("boolean" === input.type)
|
|
96
|
+
return _io7(input);
|
|
97
|
+
else if ("number" === input.type)
|
|
98
|
+
return _io9(input);
|
|
99
|
+
else if ("integer" === input.type)
|
|
100
|
+
return _io8(input);
|
|
101
|
+
else if ("string" === input.type)
|
|
102
|
+
return _io10(input);
|
|
103
|
+
else if ("array" === input.type)
|
|
104
|
+
return _io11(input);
|
|
105
|
+
else if (undefined !== input.$recursiveRef)
|
|
106
|
+
return _io13(input);
|
|
107
|
+
else if ("null" === input.type)
|
|
108
|
+
return _io19(input);
|
|
109
|
+
else
|
|
110
|
+
return (() => {
|
|
111
|
+
if (undefined !== input["const"])
|
|
112
|
+
return _io6(input);
|
|
113
|
+
else if (undefined !== input.$ref)
|
|
114
|
+
return _io12(input);
|
|
115
|
+
else if (undefined !== input.allOf)
|
|
116
|
+
return _io14(input);
|
|
117
|
+
else if (undefined !== input.anyOf)
|
|
118
|
+
return _io15(input);
|
|
119
|
+
else if (undefined !== input.oneOf)
|
|
120
|
+
return _io16(input);
|
|
121
|
+
else
|
|
122
|
+
return _io20(input);
|
|
123
|
+
})();
|
|
124
|
+
})(); const _iu1 = input => (() => {
|
|
125
|
+
if (undefined !== input.type)
|
|
126
|
+
return _io1(input);
|
|
127
|
+
else if (undefined !== input.$ref)
|
|
128
|
+
return _io21(input);
|
|
129
|
+
else
|
|
130
|
+
return false;
|
|
131
|
+
})(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (input.name.length <= 64 || _report(_exceptionable, {
|
|
132
|
+
path: _path + ".name",
|
|
133
|
+
expected: "string & MaxLength<64>",
|
|
134
|
+
value: input.name
|
|
135
|
+
})) || _report(_exceptionable, {
|
|
136
|
+
path: _path + ".name",
|
|
137
|
+
expected: "(string & MaxLength<64>)",
|
|
138
|
+
value: input.name
|
|
139
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
140
|
+
path: _path + ".description",
|
|
141
|
+
expected: "(string | undefined)",
|
|
142
|
+
value: input.description
|
|
143
|
+
}), ("object" === typeof input.inputSchema && null !== input.inputSchema || _report(_exceptionable, {
|
|
144
|
+
path: _path + ".inputSchema",
|
|
145
|
+
expected: "(IObject & { $defs?: Record<string, IJsonSchema> | undefined; } | IReference<string> & { $defs?: Record<string, IJsonSchema> | undefined; })",
|
|
146
|
+
value: input.inputSchema
|
|
147
|
+
})) && _vu1(input.inputSchema, _path + ".inputSchema", true && _exceptionable) || _report(_exceptionable, {
|
|
148
|
+
path: _path + ".inputSchema",
|
|
149
|
+
expected: "(IObject & { $defs?: Record<string, IJsonSchema> | undefined; } | IReference<string> & { $defs?: Record<string, IJsonSchema> | undefined; })",
|
|
150
|
+
value: input.inputSchema
|
|
151
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
152
|
+
path: _path + ".nullable",
|
|
153
|
+
expected: "(boolean | undefined)",
|
|
154
|
+
value: input.nullable
|
|
155
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
156
|
+
path: _path + ".properties",
|
|
157
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
158
|
+
value: input.properties
|
|
159
|
+
})) && _vo2(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
160
|
+
path: _path + ".properties",
|
|
161
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
162
|
+
value: input.properties
|
|
163
|
+
}), undefined === input.required || (Array.isArray(input.required) || _report(_exceptionable, {
|
|
164
|
+
path: _path + ".required",
|
|
165
|
+
expected: "(Array<string> | undefined)",
|
|
166
|
+
value: input.required
|
|
167
|
+
})) && input.required.map((elem, _index22) => "string" === typeof elem || _report(_exceptionable, {
|
|
168
|
+
path: _path + ".required[" + _index22 + "]",
|
|
169
|
+
expected: "string",
|
|
170
|
+
value: elem
|
|
171
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
172
|
+
path: _path + ".required",
|
|
173
|
+
expected: "(Array<string> | undefined)",
|
|
174
|
+
value: input.required
|
|
175
|
+
}), (null !== input.additionalProperties || _report(_exceptionable, {
|
|
176
|
+
path: _path + ".additionalProperties",
|
|
177
|
+
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)",
|
|
178
|
+
value: input.additionalProperties
|
|
179
|
+
})) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || _report(_exceptionable, {
|
|
180
|
+
path: _path + ".additionalProperties",
|
|
181
|
+
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)",
|
|
182
|
+
value: input.additionalProperties
|
|
183
|
+
})) && _vu0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || _report(_exceptionable, {
|
|
184
|
+
path: _path + ".additionalProperties",
|
|
185
|
+
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)",
|
|
186
|
+
value: input.additionalProperties
|
|
187
|
+
})), undefined === input.maxProperties || "number" === typeof input.maxProperties || _report(_exceptionable, {
|
|
188
|
+
path: _path + ".maxProperties",
|
|
189
|
+
expected: "(number | undefined)",
|
|
190
|
+
value: input.maxProperties
|
|
191
|
+
}), undefined === input.minProperties || "number" === typeof input.minProperties || _report(_exceptionable, {
|
|
192
|
+
path: _path + ".minProperties",
|
|
193
|
+
expected: "(number | undefined)",
|
|
194
|
+
value: input.minProperties
|
|
195
|
+
}), "object" === input.type || _report(_exceptionable, {
|
|
196
|
+
path: _path + ".type",
|
|
197
|
+
expected: "\"object\"",
|
|
198
|
+
value: input.type
|
|
199
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
200
|
+
path: _path + ".title",
|
|
201
|
+
expected: "(string | undefined)",
|
|
202
|
+
value: input.title
|
|
203
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
204
|
+
path: _path + ".description",
|
|
205
|
+
expected: "(string | undefined)",
|
|
206
|
+
value: input.description
|
|
207
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
208
|
+
path: _path + ".deprecated",
|
|
209
|
+
expected: "(boolean | undefined)",
|
|
210
|
+
value: input.deprecated
|
|
211
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
|
212
|
+
path: _path + ".examples",
|
|
213
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
214
|
+
value: input.examples
|
|
215
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
216
|
+
path: _path + ".examples",
|
|
217
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
218
|
+
value: input.examples
|
|
219
|
+
})) || _report(_exceptionable, {
|
|
220
|
+
path: _path + ".examples",
|
|
221
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
222
|
+
value: input.examples
|
|
223
|
+
})), undefined === input.$defs || ("object" === typeof input.$defs && null !== input.$defs && false === Array.isArray(input.$defs) || _report(_exceptionable, {
|
|
224
|
+
path: _path + ".$defs",
|
|
225
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
226
|
+
value: input.$defs
|
|
227
|
+
})) && _vo2(input.$defs, _path + ".$defs", true && _exceptionable) || _report(_exceptionable, {
|
|
228
|
+
path: _path + ".$defs",
|
|
229
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
230
|
+
value: input.$defs
|
|
231
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
232
|
+
const value = input[key];
|
|
233
|
+
if (undefined === value)
|
|
234
|
+
return true;
|
|
235
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
236
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
237
|
+
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)",
|
|
238
|
+
value: value
|
|
239
|
+
})) && _vu0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
240
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
241
|
+
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)",
|
|
242
|
+
value: value
|
|
243
|
+
});
|
|
244
|
+
}).every(flag => flag)].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
245
|
+
path: _path + ".nullable",
|
|
246
|
+
expected: "(boolean | undefined)",
|
|
247
|
+
value: input.nullable
|
|
248
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
249
|
+
path: _path + ".properties",
|
|
250
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
251
|
+
value: input.properties
|
|
252
|
+
})) && _vo2(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
253
|
+
path: _path + ".properties",
|
|
254
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
255
|
+
value: input.properties
|
|
256
|
+
}), undefined === input.required || (Array.isArray(input.required) || _report(_exceptionable, {
|
|
257
|
+
path: _path + ".required",
|
|
258
|
+
expected: "(Array<string> | undefined)",
|
|
259
|
+
value: input.required
|
|
260
|
+
})) && input.required.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
|
|
261
|
+
path: _path + ".required[" + _index23 + "]",
|
|
262
|
+
expected: "string",
|
|
263
|
+
value: elem
|
|
264
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
265
|
+
path: _path + ".required",
|
|
266
|
+
expected: "(Array<string> | undefined)",
|
|
267
|
+
value: input.required
|
|
268
|
+
}), (null !== input.additionalProperties || _report(_exceptionable, {
|
|
269
|
+
path: _path + ".additionalProperties",
|
|
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 | boolean | undefined)",
|
|
271
|
+
value: input.additionalProperties
|
|
272
|
+
})) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || _report(_exceptionable, {
|
|
273
|
+
path: _path + ".additionalProperties",
|
|
274
|
+
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)",
|
|
275
|
+
value: input.additionalProperties
|
|
276
|
+
})) && _vu0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || _report(_exceptionable, {
|
|
277
|
+
path: _path + ".additionalProperties",
|
|
278
|
+
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)",
|
|
279
|
+
value: input.additionalProperties
|
|
280
|
+
})), undefined === input.maxProperties || "number" === typeof input.maxProperties || _report(_exceptionable, {
|
|
281
|
+
path: _path + ".maxProperties",
|
|
282
|
+
expected: "(number | undefined)",
|
|
283
|
+
value: input.maxProperties
|
|
284
|
+
}), undefined === input.minProperties || "number" === typeof input.minProperties || _report(_exceptionable, {
|
|
285
|
+
path: _path + ".minProperties",
|
|
286
|
+
expected: "(number | undefined)",
|
|
287
|
+
value: input.minProperties
|
|
288
|
+
}), "object" === input.type || _report(_exceptionable, {
|
|
289
|
+
path: _path + ".type",
|
|
290
|
+
expected: "\"object\"",
|
|
291
|
+
value: input.type
|
|
292
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
293
|
+
path: _path + ".title",
|
|
294
|
+
expected: "(string | undefined)",
|
|
295
|
+
value: input.title
|
|
296
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
297
|
+
path: _path + ".description",
|
|
298
|
+
expected: "(string | undefined)",
|
|
299
|
+
value: input.description
|
|
300
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
301
|
+
path: _path + ".deprecated",
|
|
302
|
+
expected: "(boolean | undefined)",
|
|
303
|
+
value: input.deprecated
|
|
304
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
|
305
|
+
path: _path + ".examples",
|
|
306
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
307
|
+
value: input.examples
|
|
308
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
309
|
+
path: _path + ".examples",
|
|
310
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
311
|
+
value: input.examples
|
|
312
|
+
})) || _report(_exceptionable, {
|
|
313
|
+
path: _path + ".examples",
|
|
314
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
315
|
+
value: input.examples
|
|
316
|
+
}))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [(Array.isArray(input.type) || _report(_exceptionable, {
|
|
317
|
+
path: _path + ".type",
|
|
318
|
+
expected: "Array<\"string\" | \"number\" | \"boolean\" | \"object\" | \"integer\" | \"array\" | \"null\">",
|
|
319
|
+
value: input.type
|
|
320
|
+
})) && input.type.map((elem, _index24) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem || _report(_exceptionable, {
|
|
321
|
+
path: _path + ".type[" + _index24 + "]",
|
|
322
|
+
expected: "(\"array\" | \"boolean\" | \"integer\" | \"null\" | \"number\" | \"object\" | \"string\")",
|
|
323
|
+
value: elem
|
|
324
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
325
|
+
path: _path + ".type",
|
|
326
|
+
expected: "Array<\"string\" | \"number\" | \"boolean\" | \"object\" | \"integer\" | \"array\" | \"null\">",
|
|
327
|
+
value: input.type
|
|
328
|
+
}), null === input["default"] || undefined === input["default"] || Array.isArray(input["default"]) || _report(_exceptionable, {
|
|
329
|
+
path: _path + "[\"default\"]",
|
|
330
|
+
expected: "(Array<any> | null | undefined)",
|
|
331
|
+
value: input["default"]
|
|
332
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
333
|
+
path: _path + "[\"enum\"]",
|
|
334
|
+
expected: "(Array<any> | undefined)",
|
|
335
|
+
value: input["enum"]
|
|
336
|
+
}), "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || _report(_exceptionable, {
|
|
337
|
+
path: _path + "[\"const\"]",
|
|
338
|
+
expected: "(boolean | number | string)",
|
|
339
|
+
value: input["const"]
|
|
340
|
+
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
341
|
+
path: _path + ".nullable",
|
|
342
|
+
expected: "(boolean | undefined)",
|
|
343
|
+
value: input.nullable
|
|
344
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
|
345
|
+
path: _path + ".examples",
|
|
346
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
347
|
+
value: input.examples
|
|
348
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
349
|
+
path: _path + ".examples",
|
|
350
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
351
|
+
value: input.examples
|
|
352
|
+
})) || _report(_exceptionable, {
|
|
353
|
+
path: _path + ".examples",
|
|
354
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
355
|
+
value: input.examples
|
|
356
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
357
|
+
path: _path + ".title",
|
|
358
|
+
expected: "(string | undefined)",
|
|
359
|
+
value: input.title
|
|
360
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
361
|
+
path: _path + ".description",
|
|
362
|
+
expected: "(string | undefined)",
|
|
363
|
+
value: input.description
|
|
364
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
365
|
+
path: _path + ".deprecated",
|
|
366
|
+
expected: "(boolean | undefined)",
|
|
367
|
+
value: input.deprecated
|
|
368
|
+
}), true, undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
|
|
369
|
+
path: _path + ".minimum",
|
|
370
|
+
expected: "(number | undefined)",
|
|
371
|
+
value: input.minimum
|
|
372
|
+
}), undefined === input.maximum || "number" === typeof input.maximum || _report(_exceptionable, {
|
|
373
|
+
path: _path + ".maximum",
|
|
374
|
+
expected: "(number | undefined)",
|
|
375
|
+
value: input.maximum
|
|
376
|
+
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
|
|
377
|
+
path: _path + ".multipleOf",
|
|
378
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
379
|
+
value: input.multipleOf
|
|
380
|
+
})) || _report(_exceptionable, {
|
|
381
|
+
path: _path + ".multipleOf",
|
|
382
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
383
|
+
value: input.multipleOf
|
|
384
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
|
385
|
+
path: _path + ".exclusiveMinimum",
|
|
386
|
+
expected: "(boolean | number | undefined)",
|
|
387
|
+
value: input.exclusiveMinimum
|
|
388
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
|
389
|
+
path: _path + ".exclusiveMaximum",
|
|
390
|
+
expected: "(boolean | number | undefined)",
|
|
391
|
+
value: input.exclusiveMaximum
|
|
392
|
+
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
|
|
393
|
+
path: _path + ".maxLength",
|
|
394
|
+
expected: "number & Type<\"uint64\">",
|
|
395
|
+
value: input.maxLength
|
|
396
|
+
})) || _report(_exceptionable, {
|
|
397
|
+
path: _path + ".maxLength",
|
|
398
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
399
|
+
value: input.maxLength
|
|
400
|
+
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
401
|
+
path: _path + ".format",
|
|
402
|
+
expected: "(string | undefined)",
|
|
403
|
+
value: input.format
|
|
404
|
+
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
405
|
+
path: _path + ".pattern",
|
|
406
|
+
expected: "(string | undefined)",
|
|
407
|
+
value: input.pattern
|
|
408
|
+
}), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
|
|
409
|
+
path: _path + ".contentMediaType",
|
|
410
|
+
expected: "(string | undefined)",
|
|
411
|
+
value: input.contentMediaType
|
|
412
|
+
}), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || _report(_exceptionable, {
|
|
413
|
+
path: _path + ".minLength",
|
|
414
|
+
expected: "number & Type<\"uint64\">",
|
|
415
|
+
value: input.minLength
|
|
416
|
+
})) || _report(_exceptionable, {
|
|
417
|
+
path: _path + ".minLength",
|
|
418
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
419
|
+
value: input.minLength
|
|
420
|
+
}), (null !== input.items || _report(_exceptionable, {
|
|
421
|
+
path: _path + ".items",
|
|
422
|
+
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)",
|
|
423
|
+
value: input.items
|
|
424
|
+
})) && (undefined === input.items || (Array.isArray(input.items) && input.items.map((elem, _index25) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
425
|
+
path: _path + ".items[" + _index25 + "]",
|
|
426
|
+
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)",
|
|
427
|
+
value: elem
|
|
428
|
+
})) && _vu0(elem, _path + ".items[" + _index25 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
429
|
+
path: _path + ".items[" + _index25 + "]",
|
|
430
|
+
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)",
|
|
431
|
+
value: elem
|
|
432
|
+
})).every(flag => flag) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _vu0(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
433
|
+
path: _path + ".items",
|
|
434
|
+
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)",
|
|
435
|
+
value: input.items
|
|
436
|
+
})) || _report(_exceptionable, {
|
|
437
|
+
path: _path + ".items",
|
|
438
|
+
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)",
|
|
439
|
+
value: input.items
|
|
440
|
+
})), undefined === input.prefixItems || (Array.isArray(input.prefixItems) || _report(_exceptionable, {
|
|
441
|
+
path: _path + ".prefixItems",
|
|
442
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
443
|
+
value: input.prefixItems
|
|
444
|
+
})) && input.prefixItems.map((elem, _index26) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
445
|
+
path: _path + ".prefixItems[" + _index26 + "]",
|
|
446
|
+
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)",
|
|
447
|
+
value: elem
|
|
448
|
+
})) && _vu0(elem, _path + ".prefixItems[" + _index26 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
449
|
+
path: _path + ".prefixItems[" + _index26 + "]",
|
|
450
|
+
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)",
|
|
451
|
+
value: elem
|
|
452
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
453
|
+
path: _path + ".prefixItems",
|
|
454
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
455
|
+
value: input.prefixItems
|
|
456
|
+
}), undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || _report(_exceptionable, {
|
|
457
|
+
path: _path + ".uniqueItems",
|
|
458
|
+
expected: "(boolean | undefined)",
|
|
459
|
+
value: input.uniqueItems
|
|
460
|
+
}), (null !== input.additionalItems || _report(_exceptionable, {
|
|
461
|
+
path: _path + ".additionalItems",
|
|
462
|
+
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)",
|
|
463
|
+
value: input.additionalItems
|
|
464
|
+
})) && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || ("object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) || _report(_exceptionable, {
|
|
465
|
+
path: _path + ".additionalItems",
|
|
466
|
+
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)",
|
|
467
|
+
value: input.additionalItems
|
|
468
|
+
})) && _vu0(input.additionalItems, _path + ".additionalItems", true && _exceptionable) || _report(_exceptionable, {
|
|
469
|
+
path: _path + ".additionalItems",
|
|
470
|
+
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)",
|
|
471
|
+
value: input.additionalItems
|
|
472
|
+
})), undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000 || _report(_exceptionable, {
|
|
473
|
+
path: _path + ".minItems",
|
|
474
|
+
expected: "number & Type<\"uint64\">",
|
|
475
|
+
value: input.minItems
|
|
476
|
+
})) || _report(_exceptionable, {
|
|
477
|
+
path: _path + ".minItems",
|
|
478
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
479
|
+
value: input.minItems
|
|
480
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000 || _report(_exceptionable, {
|
|
481
|
+
path: _path + ".maxItems",
|
|
482
|
+
expected: "number & Type<\"uint64\">",
|
|
483
|
+
value: input.maxItems
|
|
484
|
+
})) || _report(_exceptionable, {
|
|
485
|
+
path: _path + ".maxItems",
|
|
486
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
487
|
+
value: input.maxItems
|
|
488
|
+
}), (null !== input.additionalProperties || _report(_exceptionable, {
|
|
489
|
+
path: _path + ".additionalProperties",
|
|
490
|
+
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)",
|
|
491
|
+
value: input.additionalProperties
|
|
492
|
+
})) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || _report(_exceptionable, {
|
|
493
|
+
path: _path + ".additionalProperties",
|
|
494
|
+
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)",
|
|
495
|
+
value: input.additionalProperties
|
|
496
|
+
})) && _vu0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || _report(_exceptionable, {
|
|
497
|
+
path: _path + ".additionalProperties",
|
|
498
|
+
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)",
|
|
499
|
+
value: input.additionalProperties
|
|
500
|
+
})), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
501
|
+
path: _path + ".properties",
|
|
502
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
503
|
+
value: input.properties
|
|
504
|
+
})) && _vo2(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
505
|
+
path: _path + ".properties",
|
|
506
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
507
|
+
value: input.properties
|
|
508
|
+
}), undefined === input.required || (Array.isArray(input.required) || _report(_exceptionable, {
|
|
509
|
+
path: _path + ".required",
|
|
510
|
+
expected: "(Array<string> | undefined)",
|
|
511
|
+
value: input.required
|
|
512
|
+
})) && input.required.map((elem, _index27) => "string" === typeof elem || _report(_exceptionable, {
|
|
513
|
+
path: _path + ".required[" + _index27 + "]",
|
|
514
|
+
expected: "string",
|
|
515
|
+
value: elem
|
|
516
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
517
|
+
path: _path + ".required",
|
|
518
|
+
expected: "(Array<string> | undefined)",
|
|
519
|
+
value: input.required
|
|
520
|
+
}), undefined === input.maxProperties || "number" === typeof input.maxProperties || _report(_exceptionable, {
|
|
521
|
+
path: _path + ".maxProperties",
|
|
522
|
+
expected: "(number | undefined)",
|
|
523
|
+
value: input.maxProperties
|
|
524
|
+
}), undefined === input.minProperties || "number" === typeof input.minProperties || _report(_exceptionable, {
|
|
525
|
+
path: _path + ".minProperties",
|
|
526
|
+
expected: "(number | undefined)",
|
|
527
|
+
value: input.minProperties
|
|
528
|
+
}), (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
529
|
+
path: _path + ".oneOf",
|
|
530
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
531
|
+
value: input.oneOf
|
|
532
|
+
})) && input.oneOf.map((elem, _index28) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
533
|
+
path: _path + ".oneOf[" + _index28 + "]",
|
|
534
|
+
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)",
|
|
535
|
+
value: elem
|
|
536
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index28 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
537
|
+
path: _path + ".oneOf[" + _index28 + "]",
|
|
538
|
+
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)",
|
|
539
|
+
value: elem
|
|
540
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
541
|
+
path: _path + ".oneOf",
|
|
542
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
543
|
+
value: input.oneOf
|
|
544
|
+
}), undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || _report(_exceptionable, {
|
|
545
|
+
path: _path + ".discriminator",
|
|
546
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
547
|
+
value: input.discriminator
|
|
548
|
+
})) && _vo17(input.discriminator, _path + ".discriminator", true && _exceptionable) || _report(_exceptionable, {
|
|
549
|
+
path: _path + ".discriminator",
|
|
550
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
551
|
+
value: input.discriminator
|
|
552
|
+
}), (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
553
|
+
path: _path + ".anyOf",
|
|
554
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
555
|
+
value: input.anyOf
|
|
556
|
+
})) && input.anyOf.map((elem, _index29) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
557
|
+
path: _path + ".anyOf[" + _index29 + "]",
|
|
558
|
+
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)",
|
|
559
|
+
value: elem
|
|
560
|
+
})) && _vu0(elem, _path + ".anyOf[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
561
|
+
path: _path + ".anyOf[" + _index29 + "]",
|
|
562
|
+
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)",
|
|
563
|
+
value: elem
|
|
564
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
565
|
+
path: _path + ".anyOf",
|
|
566
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
567
|
+
value: input.anyOf
|
|
568
|
+
}), (Array.isArray(input.allOf) || _report(_exceptionable, {
|
|
569
|
+
path: _path + ".allOf",
|
|
570
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
571
|
+
value: input.allOf
|
|
572
|
+
})) && input.allOf.map((elem, _index30) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
573
|
+
path: _path + ".allOf[" + _index30 + "]",
|
|
574
|
+
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)",
|
|
575
|
+
value: elem
|
|
576
|
+
})) && _vu0(elem, _path + ".allOf[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
577
|
+
path: _path + ".allOf[" + _index30 + "]",
|
|
578
|
+
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)",
|
|
579
|
+
value: elem
|
|
580
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
581
|
+
path: _path + ".allOf",
|
|
582
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
583
|
+
value: input.allOf
|
|
584
|
+
}), "string" === typeof input.$ref || _report(_exceptionable, {
|
|
585
|
+
path: _path + ".$ref",
|
|
586
|
+
expected: "string",
|
|
587
|
+
value: input.$ref
|
|
588
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
589
|
+
const value = input[key];
|
|
590
|
+
if (undefined === value)
|
|
591
|
+
return true;
|
|
592
|
+
return true;
|
|
593
|
+
}).every(flag => flag)].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || _report(_exceptionable, {
|
|
594
|
+
path: _path + "[\"const\"]",
|
|
595
|
+
expected: "(boolean | number | string)",
|
|
596
|
+
value: input["const"]
|
|
597
|
+
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
598
|
+
path: _path + ".nullable",
|
|
599
|
+
expected: "(boolean | undefined)",
|
|
600
|
+
value: input.nullable
|
|
601
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
|
602
|
+
path: _path + ".examples",
|
|
603
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
604
|
+
value: input.examples
|
|
605
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
606
|
+
path: _path + ".examples",
|
|
607
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
608
|
+
value: input.examples
|
|
609
|
+
})) || _report(_exceptionable, {
|
|
610
|
+
path: _path + ".examples",
|
|
611
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
612
|
+
value: input.examples
|
|
613
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
614
|
+
path: _path + ".title",
|
|
615
|
+
expected: "(string | undefined)",
|
|
616
|
+
value: input.title
|
|
617
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
618
|
+
path: _path + ".description",
|
|
619
|
+
expected: "(string | undefined)",
|
|
620
|
+
value: input.description
|
|
621
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
622
|
+
path: _path + ".deprecated",
|
|
623
|
+
expected: "(boolean | undefined)",
|
|
624
|
+
value: input.deprecated
|
|
625
|
+
}), true].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
626
|
+
path: _path + ".nullable",
|
|
627
|
+
expected: "(boolean | undefined)",
|
|
628
|
+
value: input.nullable
|
|
629
|
+
}), null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"] || _report(_exceptionable, {
|
|
630
|
+
path: _path + "[\"default\"]",
|
|
631
|
+
expected: "(boolean | null | undefined)",
|
|
632
|
+
value: input["default"]
|
|
633
|
+
}), undefined === input["enum"] || (Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
634
|
+
path: _path + "[\"enum\"]",
|
|
635
|
+
expected: "(Array<boolean | null> | undefined)",
|
|
636
|
+
value: input["enum"]
|
|
637
|
+
})) && input["enum"].map((elem, _index31) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
|
|
638
|
+
path: _path + "[\"enum\"][" + _index31 + "]",
|
|
639
|
+
expected: "(boolean | null)",
|
|
640
|
+
value: elem
|
|
641
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
642
|
+
path: _path + "[\"enum\"]",
|
|
643
|
+
expected: "(Array<boolean | null> | undefined)",
|
|
644
|
+
value: input["enum"]
|
|
645
|
+
}), "boolean" === input.type || _report(_exceptionable, {
|
|
646
|
+
path: _path + ".type",
|
|
647
|
+
expected: "\"boolean\"",
|
|
648
|
+
value: input.type
|
|
649
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
650
|
+
path: _path + ".title",
|
|
651
|
+
expected: "(string | undefined)",
|
|
652
|
+
value: input.title
|
|
653
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
654
|
+
path: _path + ".description",
|
|
655
|
+
expected: "(string | undefined)",
|
|
656
|
+
value: input.description
|
|
657
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
658
|
+
path: _path + ".deprecated",
|
|
659
|
+
expected: "(boolean | undefined)",
|
|
660
|
+
value: input.deprecated
|
|
661
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
|
662
|
+
path: _path + ".examples",
|
|
663
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
664
|
+
value: input.examples
|
|
665
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
666
|
+
path: _path + ".examples",
|
|
667
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
668
|
+
value: input.examples
|
|
669
|
+
})) || _report(_exceptionable, {
|
|
670
|
+
path: _path + ".examples",
|
|
671
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
672
|
+
value: input.examples
|
|
673
|
+
}))].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
674
|
+
path: _path + ".nullable",
|
|
675
|
+
expected: "(boolean | undefined)",
|
|
676
|
+
value: input.nullable
|
|
677
|
+
}), null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000 || _report(_exceptionable, {
|
|
678
|
+
path: _path + "[\"default\"]",
|
|
679
|
+
expected: "number & Type<\"int64\">",
|
|
680
|
+
value: input["default"]
|
|
681
|
+
})) || _report(_exceptionable, {
|
|
682
|
+
path: _path + "[\"default\"]",
|
|
683
|
+
expected: "((number & Type<\"int64\">) | null | undefined)",
|
|
684
|
+
value: input["default"]
|
|
685
|
+
}), undefined === input["enum"] || (Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
686
|
+
path: _path + "[\"enum\"]",
|
|
687
|
+
expected: "(Array<number | null> | undefined)",
|
|
688
|
+
value: input["enum"]
|
|
689
|
+
})) && input["enum"].map((elem, _index32) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
|
690
|
+
path: _path + "[\"enum\"][" + _index32 + "]",
|
|
691
|
+
expected: "(null | number)",
|
|
692
|
+
value: elem
|
|
693
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
694
|
+
path: _path + "[\"enum\"]",
|
|
695
|
+
expected: "(Array<number | null> | undefined)",
|
|
696
|
+
value: input["enum"]
|
|
697
|
+
}), undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000 || _report(_exceptionable, {
|
|
698
|
+
path: _path + ".minimum",
|
|
699
|
+
expected: "number & Type<\"int64\">",
|
|
700
|
+
value: input.minimum
|
|
701
|
+
})) || _report(_exceptionable, {
|
|
702
|
+
path: _path + ".minimum",
|
|
703
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
704
|
+
value: input.minimum
|
|
705
|
+
}), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || _report(_exceptionable, {
|
|
706
|
+
path: _path + ".maximum",
|
|
707
|
+
expected: "number & Type<\"int64\">",
|
|
708
|
+
value: input.maximum
|
|
709
|
+
})) || _report(_exceptionable, {
|
|
710
|
+
path: _path + ".maximum",
|
|
711
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
712
|
+
value: input.maximum
|
|
713
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -9223372036854776000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 9223372036854776000 || _report(_exceptionable, {
|
|
714
|
+
path: _path + ".exclusiveMinimum",
|
|
715
|
+
expected: "number & Type<\"int64\">",
|
|
716
|
+
value: input.exclusiveMinimum
|
|
717
|
+
})) || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
|
718
|
+
path: _path + ".exclusiveMinimum",
|
|
719
|
+
expected: "((number & Type<\"int64\">) | boolean | undefined)",
|
|
720
|
+
value: input.exclusiveMinimum
|
|
721
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -9223372036854776000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 9223372036854776000 || _report(_exceptionable, {
|
|
722
|
+
path: _path + ".exclusiveMaximum",
|
|
723
|
+
expected: "number & Type<\"int64\">",
|
|
724
|
+
value: input.exclusiveMaximum
|
|
725
|
+
})) || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
|
726
|
+
path: _path + ".exclusiveMaximum",
|
|
727
|
+
expected: "((number & Type<\"int64\">) | boolean | undefined)",
|
|
728
|
+
value: input.exclusiveMaximum
|
|
729
|
+
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || _report(_exceptionable, {
|
|
730
|
+
path: _path + ".multipleOf",
|
|
731
|
+
expected: "number & Type<\"uint64\">",
|
|
732
|
+
value: input.multipleOf
|
|
733
|
+
})) && (0 < input.multipleOf || _report(_exceptionable, {
|
|
734
|
+
path: _path + ".multipleOf",
|
|
735
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
736
|
+
value: input.multipleOf
|
|
737
|
+
})) || _report(_exceptionable, {
|
|
738
|
+
path: _path + ".multipleOf",
|
|
739
|
+
expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
|
|
740
|
+
value: input.multipleOf
|
|
741
|
+
}), "integer" === input.type || _report(_exceptionable, {
|
|
742
|
+
path: _path + ".type",
|
|
743
|
+
expected: "\"integer\"",
|
|
744
|
+
value: input.type
|
|
745
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
746
|
+
path: _path + ".title",
|
|
747
|
+
expected: "(string | undefined)",
|
|
748
|
+
value: input.title
|
|
749
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
750
|
+
path: _path + ".description",
|
|
751
|
+
expected: "(string | undefined)",
|
|
752
|
+
value: input.description
|
|
753
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
754
|
+
path: _path + ".deprecated",
|
|
755
|
+
expected: "(boolean | undefined)",
|
|
756
|
+
value: input.deprecated
|
|
757
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
|
758
|
+
path: _path + ".examples",
|
|
759
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
760
|
+
value: input.examples
|
|
761
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
762
|
+
path: _path + ".examples",
|
|
763
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
764
|
+
value: input.examples
|
|
765
|
+
})) || _report(_exceptionable, {
|
|
766
|
+
path: _path + ".examples",
|
|
767
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
768
|
+
value: input.examples
|
|
769
|
+
}))].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
770
|
+
path: _path + ".nullable",
|
|
771
|
+
expected: "(boolean | undefined)",
|
|
772
|
+
value: input.nullable
|
|
773
|
+
}), null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] || _report(_exceptionable, {
|
|
774
|
+
path: _path + "[\"default\"]",
|
|
775
|
+
expected: "(null | number | undefined)",
|
|
776
|
+
value: input["default"]
|
|
777
|
+
}), undefined === input["enum"] || (Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
778
|
+
path: _path + "[\"enum\"]",
|
|
779
|
+
expected: "(Array<number | null> | undefined)",
|
|
780
|
+
value: input["enum"]
|
|
781
|
+
})) && input["enum"].map((elem, _index33) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
|
782
|
+
path: _path + "[\"enum\"][" + _index33 + "]",
|
|
783
|
+
expected: "(null | number)",
|
|
784
|
+
value: elem
|
|
785
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
786
|
+
path: _path + "[\"enum\"]",
|
|
787
|
+
expected: "(Array<number | null> | undefined)",
|
|
788
|
+
value: input["enum"]
|
|
789
|
+
}), undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
|
|
790
|
+
path: _path + ".minimum",
|
|
791
|
+
expected: "(number | undefined)",
|
|
792
|
+
value: input.minimum
|
|
793
|
+
}), undefined === input.maximum || "number" === typeof input.maximum || _report(_exceptionable, {
|
|
794
|
+
path: _path + ".maximum",
|
|
795
|
+
expected: "(number | undefined)",
|
|
796
|
+
value: input.maximum
|
|
797
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
|
798
|
+
path: _path + ".exclusiveMinimum",
|
|
799
|
+
expected: "(boolean | number | undefined)",
|
|
800
|
+
value: input.exclusiveMinimum
|
|
801
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
|
802
|
+
path: _path + ".exclusiveMaximum",
|
|
803
|
+
expected: "(boolean | number | undefined)",
|
|
804
|
+
value: input.exclusiveMaximum
|
|
805
|
+
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
|
|
806
|
+
path: _path + ".multipleOf",
|
|
807
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
808
|
+
value: input.multipleOf
|
|
809
|
+
})) || _report(_exceptionable, {
|
|
810
|
+
path: _path + ".multipleOf",
|
|
811
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
812
|
+
value: input.multipleOf
|
|
813
|
+
}), "number" === input.type || _report(_exceptionable, {
|
|
814
|
+
path: _path + ".type",
|
|
815
|
+
expected: "\"number\"",
|
|
816
|
+
value: input.type
|
|
817
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
818
|
+
path: _path + ".title",
|
|
819
|
+
expected: "(string | undefined)",
|
|
820
|
+
value: input.title
|
|
821
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
822
|
+
path: _path + ".description",
|
|
823
|
+
expected: "(string | undefined)",
|
|
824
|
+
value: input.description
|
|
825
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
826
|
+
path: _path + ".deprecated",
|
|
827
|
+
expected: "(boolean | undefined)",
|
|
828
|
+
value: input.deprecated
|
|
829
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
|
830
|
+
path: _path + ".examples",
|
|
831
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
832
|
+
value: input.examples
|
|
833
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
834
|
+
path: _path + ".examples",
|
|
835
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
836
|
+
value: input.examples
|
|
837
|
+
})) || _report(_exceptionable, {
|
|
838
|
+
path: _path + ".examples",
|
|
839
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
840
|
+
value: input.examples
|
|
841
|
+
}))].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
842
|
+
path: _path + ".nullable",
|
|
843
|
+
expected: "(boolean | undefined)",
|
|
844
|
+
value: input.nullable
|
|
845
|
+
}), null === input["default"] || undefined === input["default"] || "string" === typeof input["default"] || _report(_exceptionable, {
|
|
846
|
+
path: _path + "[\"default\"]",
|
|
847
|
+
expected: "(null | string | undefined)",
|
|
848
|
+
value: input["default"]
|
|
849
|
+
}), undefined === input["enum"] || (Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
850
|
+
path: _path + "[\"enum\"]",
|
|
851
|
+
expected: "(Array<string | null> | undefined)",
|
|
852
|
+
value: input["enum"]
|
|
853
|
+
})) && input["enum"].map((elem, _index34) => null === elem || "string" === typeof elem || _report(_exceptionable, {
|
|
854
|
+
path: _path + "[\"enum\"][" + _index34 + "]",
|
|
855
|
+
expected: "(null | string)",
|
|
856
|
+
value: elem
|
|
857
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
858
|
+
path: _path + "[\"enum\"]",
|
|
859
|
+
expected: "(Array<string | null> | undefined)",
|
|
860
|
+
value: input["enum"]
|
|
861
|
+
}), undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
862
|
+
path: _path + ".format",
|
|
863
|
+
expected: "(string | undefined)",
|
|
864
|
+
value: input.format
|
|
865
|
+
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
866
|
+
path: _path + ".pattern",
|
|
867
|
+
expected: "(string | undefined)",
|
|
868
|
+
value: input.pattern
|
|
869
|
+
}), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
|
|
870
|
+
path: _path + ".contentMediaType",
|
|
871
|
+
expected: "(string | undefined)",
|
|
872
|
+
value: input.contentMediaType
|
|
873
|
+
}), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || _report(_exceptionable, {
|
|
874
|
+
path: _path + ".minLength",
|
|
875
|
+
expected: "number & Type<\"uint64\">",
|
|
876
|
+
value: input.minLength
|
|
877
|
+
})) || _report(_exceptionable, {
|
|
878
|
+
path: _path + ".minLength",
|
|
879
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
880
|
+
value: input.minLength
|
|
881
|
+
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
|
|
882
|
+
path: _path + ".maxLength",
|
|
883
|
+
expected: "number & Type<\"uint64\">",
|
|
884
|
+
value: input.maxLength
|
|
885
|
+
})) || _report(_exceptionable, {
|
|
886
|
+
path: _path + ".maxLength",
|
|
887
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
888
|
+
value: input.maxLength
|
|
889
|
+
}), "string" === input.type || _report(_exceptionable, {
|
|
890
|
+
path: _path + ".type",
|
|
891
|
+
expected: "\"string\"",
|
|
892
|
+
value: input.type
|
|
893
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
894
|
+
path: _path + ".title",
|
|
895
|
+
expected: "(string | undefined)",
|
|
896
|
+
value: input.title
|
|
897
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
898
|
+
path: _path + ".description",
|
|
899
|
+
expected: "(string | undefined)",
|
|
900
|
+
value: input.description
|
|
901
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
902
|
+
path: _path + ".deprecated",
|
|
903
|
+
expected: "(boolean | undefined)",
|
|
904
|
+
value: input.deprecated
|
|
905
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
|
906
|
+
path: _path + ".examples",
|
|
907
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
908
|
+
value: input.examples
|
|
909
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
910
|
+
path: _path + ".examples",
|
|
911
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
912
|
+
value: input.examples
|
|
913
|
+
})) || _report(_exceptionable, {
|
|
914
|
+
path: _path + ".examples",
|
|
915
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
916
|
+
value: input.examples
|
|
917
|
+
}))].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
918
|
+
path: _path + ".nullable",
|
|
919
|
+
expected: "(boolean | undefined)",
|
|
920
|
+
value: input.nullable
|
|
921
|
+
}), (null !== input.items || _report(_exceptionable, {
|
|
922
|
+
path: _path + ".items",
|
|
923
|
+
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)",
|
|
924
|
+
value: input.items
|
|
925
|
+
})) && (undefined === input.items || (Array.isArray(input.items) && input.items.map((elem, _index35) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
926
|
+
path: _path + ".items[" + _index35 + "]",
|
|
927
|
+
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)",
|
|
928
|
+
value: elem
|
|
929
|
+
})) && _vu0(elem, _path + ".items[" + _index35 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
930
|
+
path: _path + ".items[" + _index35 + "]",
|
|
931
|
+
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)",
|
|
932
|
+
value: elem
|
|
933
|
+
})).every(flag => flag) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _vu0(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
934
|
+
path: _path + ".items",
|
|
935
|
+
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)",
|
|
936
|
+
value: input.items
|
|
937
|
+
})) || _report(_exceptionable, {
|
|
938
|
+
path: _path + ".items",
|
|
939
|
+
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)",
|
|
940
|
+
value: input.items
|
|
941
|
+
})), undefined === input.prefixItems || (Array.isArray(input.prefixItems) || _report(_exceptionable, {
|
|
942
|
+
path: _path + ".prefixItems",
|
|
943
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
944
|
+
value: input.prefixItems
|
|
945
|
+
})) && input.prefixItems.map((elem, _index36) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
946
|
+
path: _path + ".prefixItems[" + _index36 + "]",
|
|
947
|
+
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)",
|
|
948
|
+
value: elem
|
|
949
|
+
})) && _vu0(elem, _path + ".prefixItems[" + _index36 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
950
|
+
path: _path + ".prefixItems[" + _index36 + "]",
|
|
951
|
+
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)",
|
|
952
|
+
value: elem
|
|
953
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
954
|
+
path: _path + ".prefixItems",
|
|
955
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
956
|
+
value: input.prefixItems
|
|
957
|
+
}), undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || _report(_exceptionable, {
|
|
958
|
+
path: _path + ".uniqueItems",
|
|
959
|
+
expected: "(boolean | undefined)",
|
|
960
|
+
value: input.uniqueItems
|
|
961
|
+
}), (null !== input.additionalItems || _report(_exceptionable, {
|
|
962
|
+
path: _path + ".additionalItems",
|
|
963
|
+
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)",
|
|
964
|
+
value: input.additionalItems
|
|
965
|
+
})) && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || ("object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) || _report(_exceptionable, {
|
|
966
|
+
path: _path + ".additionalItems",
|
|
967
|
+
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)",
|
|
968
|
+
value: input.additionalItems
|
|
969
|
+
})) && _vu0(input.additionalItems, _path + ".additionalItems", true && _exceptionable) || _report(_exceptionable, {
|
|
970
|
+
path: _path + ".additionalItems",
|
|
971
|
+
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)",
|
|
972
|
+
value: input.additionalItems
|
|
973
|
+
})), undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000 || _report(_exceptionable, {
|
|
974
|
+
path: _path + ".minItems",
|
|
975
|
+
expected: "number & Type<\"uint64\">",
|
|
976
|
+
value: input.minItems
|
|
977
|
+
})) || _report(_exceptionable, {
|
|
978
|
+
path: _path + ".minItems",
|
|
979
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
980
|
+
value: input.minItems
|
|
981
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000 || _report(_exceptionable, {
|
|
982
|
+
path: _path + ".maxItems",
|
|
983
|
+
expected: "number & Type<\"uint64\">",
|
|
984
|
+
value: input.maxItems
|
|
985
|
+
})) || _report(_exceptionable, {
|
|
986
|
+
path: _path + ".maxItems",
|
|
987
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
988
|
+
value: input.maxItems
|
|
989
|
+
}), "array" === input.type || _report(_exceptionable, {
|
|
990
|
+
path: _path + ".type",
|
|
991
|
+
expected: "\"array\"",
|
|
992
|
+
value: input.type
|
|
993
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
994
|
+
path: _path + ".title",
|
|
995
|
+
expected: "(string | undefined)",
|
|
996
|
+
value: input.title
|
|
997
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
998
|
+
path: _path + ".description",
|
|
999
|
+
expected: "(string | undefined)",
|
|
1000
|
+
value: input.description
|
|
1001
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
1002
|
+
path: _path + ".deprecated",
|
|
1003
|
+
expected: "(boolean | undefined)",
|
|
1004
|
+
value: input.deprecated
|
|
1005
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
|
1006
|
+
path: _path + ".examples",
|
|
1007
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1008
|
+
value: input.examples
|
|
1009
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
1010
|
+
path: _path + ".examples",
|
|
1011
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1012
|
+
value: input.examples
|
|
1013
|
+
})) || _report(_exceptionable, {
|
|
1014
|
+
path: _path + ".examples",
|
|
1015
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1016
|
+
value: input.examples
|
|
1017
|
+
}))].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || _report(_exceptionable, {
|
|
1018
|
+
path: _path + ".$ref",
|
|
1019
|
+
expected: "string",
|
|
1020
|
+
value: input.$ref
|
|
1021
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
|
1022
|
+
path: _path + ".examples",
|
|
1023
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1024
|
+
value: input.examples
|
|
1025
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
1026
|
+
path: _path + ".examples",
|
|
1027
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1028
|
+
value: input.examples
|
|
1029
|
+
})) || _report(_exceptionable, {
|
|
1030
|
+
path: _path + ".examples",
|
|
1031
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1032
|
+
value: input.examples
|
|
1033
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
1034
|
+
path: _path + ".title",
|
|
1035
|
+
expected: "(string | undefined)",
|
|
1036
|
+
value: input.title
|
|
1037
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1038
|
+
path: _path + ".description",
|
|
1039
|
+
expected: "(string | undefined)",
|
|
1040
|
+
value: input.description
|
|
1041
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
1042
|
+
path: _path + ".deprecated",
|
|
1043
|
+
expected: "(boolean | undefined)",
|
|
1044
|
+
value: input.deprecated
|
|
1045
|
+
}), true].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.$recursiveRef || _report(_exceptionable, {
|
|
1046
|
+
path: _path + ".$recursiveRef",
|
|
1047
|
+
expected: "string",
|
|
1048
|
+
value: input.$recursiveRef
|
|
1049
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
|
1050
|
+
path: _path + ".examples",
|
|
1051
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1052
|
+
value: input.examples
|
|
1053
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
1054
|
+
path: _path + ".examples",
|
|
1055
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1056
|
+
value: input.examples
|
|
1057
|
+
})) || _report(_exceptionable, {
|
|
1058
|
+
path: _path + ".examples",
|
|
1059
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1060
|
+
value: input.examples
|
|
1061
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
1062
|
+
path: _path + ".title",
|
|
1063
|
+
expected: "(string | undefined)",
|
|
1064
|
+
value: input.title
|
|
1065
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1066
|
+
path: _path + ".description",
|
|
1067
|
+
expected: "(string | undefined)",
|
|
1068
|
+
value: input.description
|
|
1069
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
1070
|
+
path: _path + ".deprecated",
|
|
1071
|
+
expected: "(boolean | undefined)",
|
|
1072
|
+
value: input.deprecated
|
|
1073
|
+
}), true].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => [(Array.isArray(input.allOf) || _report(_exceptionable, {
|
|
1074
|
+
path: _path + ".allOf",
|
|
1075
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1076
|
+
value: input.allOf
|
|
1077
|
+
})) && input.allOf.map((elem, _index37) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
1078
|
+
path: _path + ".allOf[" + _index37 + "]",
|
|
1079
|
+
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)",
|
|
1080
|
+
value: elem
|
|
1081
|
+
})) && _vu0(elem, _path + ".allOf[" + _index37 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1082
|
+
path: _path + ".allOf[" + _index37 + "]",
|
|
1083
|
+
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)",
|
|
1084
|
+
value: elem
|
|
1085
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1086
|
+
path: _path + ".allOf",
|
|
1087
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1088
|
+
value: input.allOf
|
|
1089
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
|
1090
|
+
path: _path + ".examples",
|
|
1091
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1092
|
+
value: input.examples
|
|
1093
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
1094
|
+
path: _path + ".examples",
|
|
1095
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1096
|
+
value: input.examples
|
|
1097
|
+
})) || _report(_exceptionable, {
|
|
1098
|
+
path: _path + ".examples",
|
|
1099
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1100
|
+
value: input.examples
|
|
1101
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
1102
|
+
path: _path + ".title",
|
|
1103
|
+
expected: "(string | undefined)",
|
|
1104
|
+
value: input.title
|
|
1105
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1106
|
+
path: _path + ".description",
|
|
1107
|
+
expected: "(string | undefined)",
|
|
1108
|
+
value: input.description
|
|
1109
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
1110
|
+
path: _path + ".deprecated",
|
|
1111
|
+
expected: "(boolean | undefined)",
|
|
1112
|
+
value: input.deprecated
|
|
1113
|
+
}), true].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => [(Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
1114
|
+
path: _path + ".anyOf",
|
|
1115
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1116
|
+
value: input.anyOf
|
|
1117
|
+
})) && input.anyOf.map((elem, _index38) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
1118
|
+
path: _path + ".anyOf[" + _index38 + "]",
|
|
1119
|
+
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)",
|
|
1120
|
+
value: elem
|
|
1121
|
+
})) && _vu0(elem, _path + ".anyOf[" + _index38 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1122
|
+
path: _path + ".anyOf[" + _index38 + "]",
|
|
1123
|
+
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)",
|
|
1124
|
+
value: elem
|
|
1125
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1126
|
+
path: _path + ".anyOf",
|
|
1127
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1128
|
+
value: input.anyOf
|
|
1129
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
|
1130
|
+
path: _path + ".examples",
|
|
1131
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1132
|
+
value: input.examples
|
|
1133
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
1134
|
+
path: _path + ".examples",
|
|
1135
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1136
|
+
value: input.examples
|
|
1137
|
+
})) || _report(_exceptionable, {
|
|
1138
|
+
path: _path + ".examples",
|
|
1139
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1140
|
+
value: input.examples
|
|
1141
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
1142
|
+
path: _path + ".title",
|
|
1143
|
+
expected: "(string | undefined)",
|
|
1144
|
+
value: input.title
|
|
1145
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1146
|
+
path: _path + ".description",
|
|
1147
|
+
expected: "(string | undefined)",
|
|
1148
|
+
value: input.description
|
|
1149
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
1150
|
+
path: _path + ".deprecated",
|
|
1151
|
+
expected: "(boolean | undefined)",
|
|
1152
|
+
value: input.deprecated
|
|
1153
|
+
}), true].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
1154
|
+
path: _path + ".oneOf",
|
|
1155
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1156
|
+
value: input.oneOf
|
|
1157
|
+
})) && input.oneOf.map((elem, _index39) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
1158
|
+
path: _path + ".oneOf[" + _index39 + "]",
|
|
1159
|
+
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)",
|
|
1160
|
+
value: elem
|
|
1161
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index39 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1162
|
+
path: _path + ".oneOf[" + _index39 + "]",
|
|
1163
|
+
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)",
|
|
1164
|
+
value: elem
|
|
1165
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1166
|
+
path: _path + ".oneOf",
|
|
1167
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1168
|
+
value: input.oneOf
|
|
1169
|
+
}), undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || _report(_exceptionable, {
|
|
1170
|
+
path: _path + ".discriminator",
|
|
1171
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
1172
|
+
value: input.discriminator
|
|
1173
|
+
})) && _vo17(input.discriminator, _path + ".discriminator", true && _exceptionable) || _report(_exceptionable, {
|
|
1174
|
+
path: _path + ".discriminator",
|
|
1175
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
1176
|
+
value: input.discriminator
|
|
1177
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
|
1178
|
+
path: _path + ".examples",
|
|
1179
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1180
|
+
value: input.examples
|
|
1181
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
1182
|
+
path: _path + ".examples",
|
|
1183
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1184
|
+
value: input.examples
|
|
1185
|
+
})) || _report(_exceptionable, {
|
|
1186
|
+
path: _path + ".examples",
|
|
1187
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1188
|
+
value: input.examples
|
|
1189
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
1190
|
+
path: _path + ".title",
|
|
1191
|
+
expected: "(string | undefined)",
|
|
1192
|
+
value: input.title
|
|
1193
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1194
|
+
path: _path + ".description",
|
|
1195
|
+
expected: "(string | undefined)",
|
|
1196
|
+
value: input.description
|
|
1197
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
1198
|
+
path: _path + ".deprecated",
|
|
1199
|
+
expected: "(boolean | undefined)",
|
|
1200
|
+
value: input.deprecated
|
|
1201
|
+
}), true].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.propertyName || _report(_exceptionable, {
|
|
1202
|
+
path: _path + ".propertyName",
|
|
1203
|
+
expected: "string",
|
|
1204
|
+
value: input.propertyName
|
|
1205
|
+
}), undefined === input.mapping || ("object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) || _report(_exceptionable, {
|
|
1206
|
+
path: _path + ".mapping",
|
|
1207
|
+
expected: "(Record<string, string> | undefined)",
|
|
1208
|
+
value: input.mapping
|
|
1209
|
+
})) && _vo18(input.mapping, _path + ".mapping", true && _exceptionable) || _report(_exceptionable, {
|
|
1210
|
+
path: _path + ".mapping",
|
|
1211
|
+
expected: "(Record<string, string> | undefined)",
|
|
1212
|
+
value: input.mapping
|
|
1213
|
+
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1214
|
+
const value = input[key];
|
|
1215
|
+
if (undefined === value)
|
|
1216
|
+
return true;
|
|
1217
|
+
return "string" === typeof value || _report(_exceptionable, {
|
|
1218
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1219
|
+
expected: "string",
|
|
1220
|
+
value: value
|
|
1221
|
+
});
|
|
1222
|
+
}).every(flag => flag)].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => [null === input["default"] || undefined === input["default"] || _report(_exceptionable, {
|
|
1223
|
+
path: _path + "[\"default\"]",
|
|
1224
|
+
expected: "(null | undefined)",
|
|
1225
|
+
value: input["default"]
|
|
1226
|
+
}), "null" === input.type || _report(_exceptionable, {
|
|
1227
|
+
path: _path + ".type",
|
|
1228
|
+
expected: "\"null\"",
|
|
1229
|
+
value: input.type
|
|
1230
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
1231
|
+
path: _path + ".title",
|
|
1232
|
+
expected: "(string | undefined)",
|
|
1233
|
+
value: input.title
|
|
1234
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1235
|
+
path: _path + ".description",
|
|
1236
|
+
expected: "(string | undefined)",
|
|
1237
|
+
value: input.description
|
|
1238
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
1239
|
+
path: _path + ".deprecated",
|
|
1240
|
+
expected: "(boolean | undefined)",
|
|
1241
|
+
value: input.deprecated
|
|
1242
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
|
1243
|
+
path: _path + ".examples",
|
|
1244
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1245
|
+
value: input.examples
|
|
1246
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
1247
|
+
path: _path + ".examples",
|
|
1248
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1249
|
+
value: input.examples
|
|
1250
|
+
})) || _report(_exceptionable, {
|
|
1251
|
+
path: _path + ".examples",
|
|
1252
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1253
|
+
value: input.examples
|
|
1254
|
+
}))].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [(null !== input.type || _report(_exceptionable, {
|
|
1255
|
+
path: _path + ".type",
|
|
1256
|
+
expected: "undefined",
|
|
1257
|
+
value: input.type
|
|
1258
|
+
})) && (undefined === input.type || _report(_exceptionable, {
|
|
1259
|
+
path: _path + ".type",
|
|
1260
|
+
expected: "undefined",
|
|
1261
|
+
value: input.type
|
|
1262
|
+
})), true, undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
1263
|
+
path: _path + ".title",
|
|
1264
|
+
expected: "(string | undefined)",
|
|
1265
|
+
value: input.title
|
|
1266
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1267
|
+
path: _path + ".description",
|
|
1268
|
+
expected: "(string | undefined)",
|
|
1269
|
+
value: input.description
|
|
1270
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
1271
|
+
path: _path + ".deprecated",
|
|
1272
|
+
expected: "(boolean | undefined)",
|
|
1273
|
+
value: input.deprecated
|
|
1274
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
|
1275
|
+
path: _path + ".examples",
|
|
1276
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1277
|
+
value: input.examples
|
|
1278
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
1279
|
+
path: _path + ".examples",
|
|
1280
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1281
|
+
value: input.examples
|
|
1282
|
+
})) || _report(_exceptionable, {
|
|
1283
|
+
path: _path + ".examples",
|
|
1284
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1285
|
+
value: input.examples
|
|
1286
|
+
}))].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || _report(_exceptionable, {
|
|
1287
|
+
path: _path + ".$ref",
|
|
1288
|
+
expected: "string",
|
|
1289
|
+
value: input.$ref
|
|
1290
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
|
1291
|
+
path: _path + ".examples",
|
|
1292
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1293
|
+
value: input.examples
|
|
1294
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo5(input.examples, _path + ".examples", true && _exceptionable) || _report(_exceptionable, {
|
|
1295
|
+
path: _path + ".examples",
|
|
1296
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1297
|
+
value: input.examples
|
|
1298
|
+
})) || _report(_exceptionable, {
|
|
1299
|
+
path: _path + ".examples",
|
|
1300
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1301
|
+
value: input.examples
|
|
1302
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
1303
|
+
path: _path + ".title",
|
|
1304
|
+
expected: "(string | undefined)",
|
|
1305
|
+
value: input.title
|
|
1306
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1307
|
+
path: _path + ".description",
|
|
1308
|
+
expected: "(string | undefined)",
|
|
1309
|
+
value: input.description
|
|
1310
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
|
1311
|
+
path: _path + ".deprecated",
|
|
1312
|
+
expected: "(boolean | undefined)",
|
|
1313
|
+
value: input.deprecated
|
|
1314
|
+
}), true, undefined === input.$defs || ("object" === typeof input.$defs && null !== input.$defs && false === Array.isArray(input.$defs) || _report(_exceptionable, {
|
|
1315
|
+
path: _path + ".$defs",
|
|
1316
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1317
|
+
value: input.$defs
|
|
1318
|
+
})) && _vo2(input.$defs, _path + ".$defs", true && _exceptionable) || _report(_exceptionable, {
|
|
1319
|
+
path: _path + ".$defs",
|
|
1320
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1321
|
+
value: input.$defs
|
|
1322
|
+
})].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
1323
|
+
if ("object" === input.type)
|
|
1324
|
+
return _vo3(input, _path, true && _exceptionable);
|
|
1325
|
+
else if (Array.isArray(input.type) && input.type.map((elem, _index40) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem).every(flag => flag))
|
|
1326
|
+
return _vo4(input, _path, true && _exceptionable);
|
|
1327
|
+
else if ("boolean" === input.type)
|
|
1328
|
+
return _vo7(input, _path, true && _exceptionable);
|
|
1329
|
+
else if ("number" === input.type)
|
|
1330
|
+
return _vo9(input, _path, true && _exceptionable);
|
|
1331
|
+
else if ("integer" === input.type)
|
|
1332
|
+
return _vo8(input, _path, true && _exceptionable);
|
|
1333
|
+
else if ("string" === input.type)
|
|
1334
|
+
return _vo10(input, _path, true && _exceptionable);
|
|
1335
|
+
else if ("array" === input.type)
|
|
1336
|
+
return _vo11(input, _path, true && _exceptionable);
|
|
1337
|
+
else if (undefined !== input.$recursiveRef)
|
|
1338
|
+
return _vo13(input, _path, true && _exceptionable);
|
|
1339
|
+
else if ("null" === input.type)
|
|
1340
|
+
return _vo19(input, _path, true && _exceptionable);
|
|
1341
|
+
else
|
|
1342
|
+
return (() => {
|
|
1343
|
+
if (undefined !== input["const"])
|
|
1344
|
+
return _vo6(input, _path, true && _exceptionable);
|
|
1345
|
+
else if (undefined !== input.$ref)
|
|
1346
|
+
return _vo12(input, _path, true && _exceptionable);
|
|
1347
|
+
else if (undefined !== input.allOf)
|
|
1348
|
+
return _vo14(input, _path, true && _exceptionable);
|
|
1349
|
+
else if (undefined !== input.anyOf)
|
|
1350
|
+
return _vo15(input, _path, true && _exceptionable);
|
|
1351
|
+
else if (undefined !== input.oneOf)
|
|
1352
|
+
return _vo16(input, _path, true && _exceptionable);
|
|
1353
|
+
else
|
|
1354
|
+
return _vo20(input, _path, true && _exceptionable);
|
|
1355
|
+
})();
|
|
1356
|
+
})(); const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
1357
|
+
if (undefined !== input.type)
|
|
1358
|
+
return _vo1(input, _path, true && _exceptionable);
|
|
1359
|
+
else if (undefined !== input.$ref)
|
|
1360
|
+
return _vo21(input, _path, true && _exceptionable);
|
|
1361
|
+
else
|
|
1362
|
+
return _report(_exceptionable, {
|
|
1363
|
+
path: _path,
|
|
1364
|
+
expected: "(IObject & { $defs?: Record<string, IJsonSchema> | undefined; } | IReference<string> & { $defs?: Record<string, IJsonSchema> | undefined; })",
|
|
1365
|
+
value: input
|
|
1366
|
+
});
|
|
1367
|
+
})(); const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && _io0(elem)); let errors; let _report; return input => {
|
|
1368
|
+
if (false === __is(input)) {
|
|
1369
|
+
errors = [];
|
|
1370
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
1371
|
+
((input, _path, _exceptionable = true) => (Array.isArray(input) || _report(true, {
|
|
1372
|
+
path: _path + "",
|
|
1373
|
+
expected: "Array<IMcpTool>",
|
|
1374
|
+
value: input
|
|
1375
|
+
})) && input.map((elem, _index21) => ("object" === typeof elem && null !== elem || _report(true, {
|
|
1376
|
+
path: _path + "[" + _index21 + "]",
|
|
1377
|
+
expected: "IMcpTool",
|
|
1378
|
+
value: elem
|
|
1379
|
+
})) && _vo0(elem, _path + "[" + _index21 + "]", true) || _report(true, {
|
|
1380
|
+
path: _path + "[" + _index21 + "]",
|
|
1381
|
+
expected: "IMcpTool",
|
|
1382
|
+
value: elem
|
|
1383
|
+
})).every(flag => flag) || _report(true, {
|
|
1384
|
+
path: _path + "",
|
|
1385
|
+
expected: "Array<IMcpTool>",
|
|
1386
|
+
value: input
|
|
1387
|
+
}))(input, "$input", true);
|
|
1388
|
+
const success = 0 === errors.length;
|
|
1389
|
+
return success ? {
|
|
1390
|
+
success,
|
|
1391
|
+
data: input
|
|
1392
|
+
} : {
|
|
1393
|
+
success,
|
|
1394
|
+
errors,
|
|
1395
|
+
data: input
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
return {
|
|
1399
|
+
success: true,
|
|
1400
|
+
data: input
|
|
1401
|
+
};
|
|
1402
|
+
}; })()(tools);
|
|
1403
|
+
if (inspect.success === false) {
|
|
1404
|
+
return inspect;
|
|
1405
|
+
}
|
|
1406
|
+
const application = openapi_1.McpLlm.application({
|
|
1407
|
+
model: props.model,
|
|
1408
|
+
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 => {
|
|
1409
|
+
const value = input[key];
|
|
1410
|
+
if (undefined === value)
|
|
1411
|
+
return true;
|
|
1412
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu0(value);
|
|
1413
|
+
}); 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 => {
|
|
1414
|
+
const value = input[key];
|
|
1415
|
+
if (undefined === value)
|
|
1416
|
+
return true;
|
|
1417
|
+
return true;
|
|
1418
|
+
}); 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 => {
|
|
1419
|
+
const value = input[key];
|
|
1420
|
+
if (undefined === value)
|
|
1421
|
+
return true;
|
|
1422
|
+
return "string" === typeof value;
|
|
1423
|
+
}); 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 => (() => {
|
|
1424
|
+
if ("object" === input.type)
|
|
1425
|
+
return _io3(input);
|
|
1426
|
+
else if (Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || "null" === elem))
|
|
1427
|
+
return _io4(input);
|
|
1428
|
+
else if ("boolean" === input.type)
|
|
1429
|
+
return _io7(input);
|
|
1430
|
+
else if ("number" === input.type)
|
|
1431
|
+
return _io9(input);
|
|
1432
|
+
else if ("integer" === input.type)
|
|
1433
|
+
return _io8(input);
|
|
1434
|
+
else if ("string" === input.type)
|
|
1435
|
+
return _io10(input);
|
|
1436
|
+
else if ("array" === input.type)
|
|
1437
|
+
return _io11(input);
|
|
1438
|
+
else if (undefined !== input.$recursiveRef)
|
|
1439
|
+
return _io13(input);
|
|
1440
|
+
else if ("null" === input.type)
|
|
1441
|
+
return _io19(input);
|
|
1442
|
+
else
|
|
1443
|
+
return (() => {
|
|
1444
|
+
if (undefined !== input["const"])
|
|
1445
|
+
return _io6(input);
|
|
1446
|
+
else if (undefined !== input.$ref)
|
|
1447
|
+
return _io12(input);
|
|
1448
|
+
else if (undefined !== input.allOf)
|
|
1449
|
+
return _io14(input);
|
|
1450
|
+
else if (undefined !== input.anyOf)
|
|
1451
|
+
return _io15(input);
|
|
1452
|
+
else if (undefined !== input.oneOf)
|
|
1453
|
+
return _io16(input);
|
|
1454
|
+
else
|
|
1455
|
+
return _io20(input);
|
|
1456
|
+
})();
|
|
1457
|
+
})(); const _iu1 = input => (() => {
|
|
1458
|
+
if (undefined !== input.type)
|
|
1459
|
+
return _io1(input);
|
|
1460
|
+
else if (undefined !== input.$ref)
|
|
1461
|
+
return _io21(input);
|
|
1462
|
+
else
|
|
1463
|
+
return false;
|
|
1464
|
+
})(); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name && (input.name.length <= 64 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1465
|
+
method: "typia.assert",
|
|
1466
|
+
path: _path + ".name",
|
|
1467
|
+
expected: "string & MaxLength<64>",
|
|
1468
|
+
value: input.name
|
|
1469
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1470
|
+
method: "typia.assert",
|
|
1471
|
+
path: _path + ".name",
|
|
1472
|
+
expected: "(string & MaxLength<64>)",
|
|
1473
|
+
value: input.name
|
|
1474
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1475
|
+
method: "typia.assert",
|
|
1476
|
+
path: _path + ".description",
|
|
1477
|
+
expected: "(string | undefined)",
|
|
1478
|
+
value: input.description
|
|
1479
|
+
}, _errorFactory)) && (("object" === typeof input.inputSchema && null !== input.inputSchema || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1480
|
+
method: "typia.assert",
|
|
1481
|
+
path: _path + ".inputSchema",
|
|
1482
|
+
expected: "(IObject & { $defs?: Record<string, IJsonSchema> | undefined; } | IReference<string> & { $defs?: Record<string, IJsonSchema> | undefined; })",
|
|
1483
|
+
value: input.inputSchema
|
|
1484
|
+
}, _errorFactory)) && _au1(input.inputSchema, _path + ".inputSchema", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1485
|
+
method: "typia.assert",
|
|
1486
|
+
path: _path + ".inputSchema",
|
|
1487
|
+
expected: "(IObject & { $defs?: Record<string, IJsonSchema> | undefined; } | IReference<string> & { $defs?: Record<string, IJsonSchema> | undefined; })",
|
|
1488
|
+
value: input.inputSchema
|
|
1489
|
+
}, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1490
|
+
method: "typia.assert",
|
|
1491
|
+
path: _path + ".nullable",
|
|
1492
|
+
expected: "(boolean | undefined)",
|
|
1493
|
+
value: input.nullable
|
|
1494
|
+
}, _errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1495
|
+
method: "typia.assert",
|
|
1496
|
+
path: _path + ".properties",
|
|
1497
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1498
|
+
value: input.properties
|
|
1499
|
+
}, _errorFactory)) && _ao2(input.properties, _path + ".properties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1500
|
+
method: "typia.assert",
|
|
1501
|
+
path: _path + ".properties",
|
|
1502
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1503
|
+
value: input.properties
|
|
1504
|
+
}, _errorFactory)) && (undefined === input.required || (Array.isArray(input.required) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1505
|
+
method: "typia.assert",
|
|
1506
|
+
path: _path + ".required",
|
|
1507
|
+
expected: "(Array<string> | undefined)",
|
|
1508
|
+
value: input.required
|
|
1509
|
+
}, _errorFactory)) && input.required.every((elem, _index22) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1510
|
+
method: "typia.assert",
|
|
1511
|
+
path: _path + ".required[" + _index22 + "]",
|
|
1512
|
+
expected: "string",
|
|
1513
|
+
value: elem
|
|
1514
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1515
|
+
method: "typia.assert",
|
|
1516
|
+
path: _path + ".required",
|
|
1517
|
+
expected: "(Array<string> | undefined)",
|
|
1518
|
+
value: input.required
|
|
1519
|
+
}, _errorFactory)) && ((null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1520
|
+
method: "typia.assert",
|
|
1521
|
+
path: _path + ".additionalProperties",
|
|
1522
|
+
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)",
|
|
1523
|
+
value: input.additionalProperties
|
|
1524
|
+
}, _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, {
|
|
1525
|
+
method: "typia.assert",
|
|
1526
|
+
path: _path + ".additionalProperties",
|
|
1527
|
+
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)",
|
|
1528
|
+
value: input.additionalProperties
|
|
1529
|
+
}, _errorFactory)) && _au0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1530
|
+
method: "typia.assert",
|
|
1531
|
+
path: _path + ".additionalProperties",
|
|
1532
|
+
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)",
|
|
1533
|
+
value: input.additionalProperties
|
|
1534
|
+
}, _errorFactory))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1535
|
+
method: "typia.assert",
|
|
1536
|
+
path: _path + ".maxProperties",
|
|
1537
|
+
expected: "(number | undefined)",
|
|
1538
|
+
value: input.maxProperties
|
|
1539
|
+
}, _errorFactory)) && (undefined === input.minProperties || "number" === typeof input.minProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1540
|
+
method: "typia.assert",
|
|
1541
|
+
path: _path + ".minProperties",
|
|
1542
|
+
expected: "(number | undefined)",
|
|
1543
|
+
value: input.minProperties
|
|
1544
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1545
|
+
method: "typia.assert",
|
|
1546
|
+
path: _path + ".type",
|
|
1547
|
+
expected: "\"object\"",
|
|
1548
|
+
value: input.type
|
|
1549
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1550
|
+
method: "typia.assert",
|
|
1551
|
+
path: _path + ".title",
|
|
1552
|
+
expected: "(string | undefined)",
|
|
1553
|
+
value: input.title
|
|
1554
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1555
|
+
method: "typia.assert",
|
|
1556
|
+
path: _path + ".description",
|
|
1557
|
+
expected: "(string | undefined)",
|
|
1558
|
+
value: input.description
|
|
1559
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1560
|
+
method: "typia.assert",
|
|
1561
|
+
path: _path + ".deprecated",
|
|
1562
|
+
expected: "(boolean | undefined)",
|
|
1563
|
+
value: input.deprecated
|
|
1564
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1565
|
+
method: "typia.assert",
|
|
1566
|
+
path: _path + ".examples",
|
|
1567
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1568
|
+
value: input.examples
|
|
1569
|
+
}, _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, {
|
|
1570
|
+
method: "typia.assert",
|
|
1571
|
+
path: _path + ".examples",
|
|
1572
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1573
|
+
value: input.examples
|
|
1574
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1575
|
+
method: "typia.assert",
|
|
1576
|
+
path: _path + ".examples",
|
|
1577
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1578
|
+
value: input.examples
|
|
1579
|
+
}, _errorFactory))) && (undefined === input.$defs || ("object" === typeof input.$defs && null !== input.$defs && false === Array.isArray(input.$defs) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1580
|
+
method: "typia.assert",
|
|
1581
|
+
path: _path + ".$defs",
|
|
1582
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1583
|
+
value: input.$defs
|
|
1584
|
+
}, _errorFactory)) && _ao2(input.$defs, _path + ".$defs", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1585
|
+
method: "typia.assert",
|
|
1586
|
+
path: _path + ".$defs",
|
|
1587
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1588
|
+
value: input.$defs
|
|
1589
|
+
}, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1590
|
+
const value = input[key];
|
|
1591
|
+
if (undefined === value)
|
|
1592
|
+
return true;
|
|
1593
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1594
|
+
method: "typia.assert",
|
|
1595
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1596
|
+
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)",
|
|
1597
|
+
value: value
|
|
1598
|
+
}, _errorFactory)) && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1599
|
+
method: "typia.assert",
|
|
1600
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1601
|
+
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)",
|
|
1602
|
+
value: value
|
|
1603
|
+
}, _errorFactory);
|
|
1604
|
+
}); const _ao3 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1605
|
+
method: "typia.assert",
|
|
1606
|
+
path: _path + ".nullable",
|
|
1607
|
+
expected: "(boolean | undefined)",
|
|
1608
|
+
value: input.nullable
|
|
1609
|
+
}, _errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1610
|
+
method: "typia.assert",
|
|
1611
|
+
path: _path + ".properties",
|
|
1612
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1613
|
+
value: input.properties
|
|
1614
|
+
}, _errorFactory)) && _ao2(input.properties, _path + ".properties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1615
|
+
method: "typia.assert",
|
|
1616
|
+
path: _path + ".properties",
|
|
1617
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1618
|
+
value: input.properties
|
|
1619
|
+
}, _errorFactory)) && (undefined === input.required || (Array.isArray(input.required) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1620
|
+
method: "typia.assert",
|
|
1621
|
+
path: _path + ".required",
|
|
1622
|
+
expected: "(Array<string> | undefined)",
|
|
1623
|
+
value: input.required
|
|
1624
|
+
}, _errorFactory)) && input.required.every((elem, _index23) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1625
|
+
method: "typia.assert",
|
|
1626
|
+
path: _path + ".required[" + _index23 + "]",
|
|
1627
|
+
expected: "string",
|
|
1628
|
+
value: elem
|
|
1629
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1630
|
+
method: "typia.assert",
|
|
1631
|
+
path: _path + ".required",
|
|
1632
|
+
expected: "(Array<string> | undefined)",
|
|
1633
|
+
value: input.required
|
|
1634
|
+
}, _errorFactory)) && ((null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1635
|
+
method: "typia.assert",
|
|
1636
|
+
path: _path + ".additionalProperties",
|
|
1637
|
+
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)",
|
|
1638
|
+
value: input.additionalProperties
|
|
1639
|
+
}, _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, {
|
|
1640
|
+
method: "typia.assert",
|
|
1641
|
+
path: _path + ".additionalProperties",
|
|
1642
|
+
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)",
|
|
1643
|
+
value: input.additionalProperties
|
|
1644
|
+
}, _errorFactory)) && _au0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1645
|
+
method: "typia.assert",
|
|
1646
|
+
path: _path + ".additionalProperties",
|
|
1647
|
+
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)",
|
|
1648
|
+
value: input.additionalProperties
|
|
1649
|
+
}, _errorFactory))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1650
|
+
method: "typia.assert",
|
|
1651
|
+
path: _path + ".maxProperties",
|
|
1652
|
+
expected: "(number | undefined)",
|
|
1653
|
+
value: input.maxProperties
|
|
1654
|
+
}, _errorFactory)) && (undefined === input.minProperties || "number" === typeof input.minProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1655
|
+
method: "typia.assert",
|
|
1656
|
+
path: _path + ".minProperties",
|
|
1657
|
+
expected: "(number | undefined)",
|
|
1658
|
+
value: input.minProperties
|
|
1659
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1660
|
+
method: "typia.assert",
|
|
1661
|
+
path: _path + ".type",
|
|
1662
|
+
expected: "\"object\"",
|
|
1663
|
+
value: input.type
|
|
1664
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1665
|
+
method: "typia.assert",
|
|
1666
|
+
path: _path + ".title",
|
|
1667
|
+
expected: "(string | undefined)",
|
|
1668
|
+
value: input.title
|
|
1669
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1670
|
+
method: "typia.assert",
|
|
1671
|
+
path: _path + ".description",
|
|
1672
|
+
expected: "(string | undefined)",
|
|
1673
|
+
value: input.description
|
|
1674
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1675
|
+
method: "typia.assert",
|
|
1676
|
+
path: _path + ".deprecated",
|
|
1677
|
+
expected: "(boolean | undefined)",
|
|
1678
|
+
value: input.deprecated
|
|
1679
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1680
|
+
method: "typia.assert",
|
|
1681
|
+
path: _path + ".examples",
|
|
1682
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1683
|
+
value: input.examples
|
|
1684
|
+
}, _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, {
|
|
1685
|
+
method: "typia.assert",
|
|
1686
|
+
path: _path + ".examples",
|
|
1687
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1688
|
+
value: input.examples
|
|
1689
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1690
|
+
method: "typia.assert",
|
|
1691
|
+
path: _path + ".examples",
|
|
1692
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1693
|
+
value: input.examples
|
|
1694
|
+
}, _errorFactory))); const _ao4 = (input, _path, _exceptionable = true) => ((Array.isArray(input.type) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1695
|
+
method: "typia.assert",
|
|
1696
|
+
path: _path + ".type",
|
|
1697
|
+
expected: "Array<\"string\" | \"number\" | \"boolean\" | \"object\" | \"integer\" | \"array\" | \"null\">",
|
|
1698
|
+
value: input.type
|
|
1699
|
+
}, _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, {
|
|
1700
|
+
method: "typia.assert",
|
|
1701
|
+
path: _path + ".type[" + _index24 + "]",
|
|
1702
|
+
expected: "(\"array\" | \"boolean\" | \"integer\" | \"null\" | \"number\" | \"object\" | \"string\")",
|
|
1703
|
+
value: elem
|
|
1704
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1705
|
+
method: "typia.assert",
|
|
1706
|
+
path: _path + ".type",
|
|
1707
|
+
expected: "Array<\"string\" | \"number\" | \"boolean\" | \"object\" | \"integer\" | \"array\" | \"null\">",
|
|
1708
|
+
value: input.type
|
|
1709
|
+
}, _errorFactory)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1710
|
+
method: "typia.assert",
|
|
1711
|
+
path: _path + "[\"default\"]",
|
|
1712
|
+
expected: "(Array<any> | null | undefined)",
|
|
1713
|
+
value: input["default"]
|
|
1714
|
+
}, _errorFactory)) && (undefined === input["enum"] || Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1715
|
+
method: "typia.assert",
|
|
1716
|
+
path: _path + "[\"enum\"]",
|
|
1717
|
+
expected: "(Array<any> | undefined)",
|
|
1718
|
+
value: input["enum"]
|
|
1719
|
+
}, _errorFactory)) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1720
|
+
method: "typia.assert",
|
|
1721
|
+
path: _path + "[\"const\"]",
|
|
1722
|
+
expected: "(boolean | number | string)",
|
|
1723
|
+
value: input["const"]
|
|
1724
|
+
}, _errorFactory)) && (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1725
|
+
method: "typia.assert",
|
|
1726
|
+
path: _path + ".nullable",
|
|
1727
|
+
expected: "(boolean | undefined)",
|
|
1728
|
+
value: input.nullable
|
|
1729
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1730
|
+
method: "typia.assert",
|
|
1731
|
+
path: _path + ".examples",
|
|
1732
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1733
|
+
value: input.examples
|
|
1734
|
+
}, _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, {
|
|
1735
|
+
method: "typia.assert",
|
|
1736
|
+
path: _path + ".examples",
|
|
1737
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1738
|
+
value: input.examples
|
|
1739
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1740
|
+
method: "typia.assert",
|
|
1741
|
+
path: _path + ".examples",
|
|
1742
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
1743
|
+
value: input.examples
|
|
1744
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1745
|
+
method: "typia.assert",
|
|
1746
|
+
path: _path + ".title",
|
|
1747
|
+
expected: "(string | undefined)",
|
|
1748
|
+
value: input.title
|
|
1749
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1750
|
+
method: "typia.assert",
|
|
1751
|
+
path: _path + ".description",
|
|
1752
|
+
expected: "(string | undefined)",
|
|
1753
|
+
value: input.description
|
|
1754
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1755
|
+
method: "typia.assert",
|
|
1756
|
+
path: _path + ".deprecated",
|
|
1757
|
+
expected: "(boolean | undefined)",
|
|
1758
|
+
value: input.deprecated
|
|
1759
|
+
}, _errorFactory)) && true && (undefined === input.minimum || "number" === typeof input.minimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1760
|
+
method: "typia.assert",
|
|
1761
|
+
path: _path + ".minimum",
|
|
1762
|
+
expected: "(number | undefined)",
|
|
1763
|
+
value: input.minimum
|
|
1764
|
+
}, _errorFactory)) && (undefined === input.maximum || "number" === typeof input.maximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1765
|
+
method: "typia.assert",
|
|
1766
|
+
path: _path + ".maximum",
|
|
1767
|
+
expected: "(number | undefined)",
|
|
1768
|
+
value: input.maximum
|
|
1769
|
+
}, _errorFactory)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1770
|
+
method: "typia.assert",
|
|
1771
|
+
path: _path + ".multipleOf",
|
|
1772
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
1773
|
+
value: input.multipleOf
|
|
1774
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1775
|
+
method: "typia.assert",
|
|
1776
|
+
path: _path + ".multipleOf",
|
|
1777
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
1778
|
+
value: input.multipleOf
|
|
1779
|
+
}, _errorFactory)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1780
|
+
method: "typia.assert",
|
|
1781
|
+
path: _path + ".exclusiveMinimum",
|
|
1782
|
+
expected: "(boolean | number | undefined)",
|
|
1783
|
+
value: input.exclusiveMinimum
|
|
1784
|
+
}, _errorFactory)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1785
|
+
method: "typia.assert",
|
|
1786
|
+
path: _path + ".exclusiveMaximum",
|
|
1787
|
+
expected: "(boolean | number | undefined)",
|
|
1788
|
+
value: input.exclusiveMaximum
|
|
1789
|
+
}, _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, {
|
|
1790
|
+
method: "typia.assert",
|
|
1791
|
+
path: _path + ".maxLength",
|
|
1792
|
+
expected: "number & Type<\"uint64\">",
|
|
1793
|
+
value: input.maxLength
|
|
1794
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1795
|
+
method: "typia.assert",
|
|
1796
|
+
path: _path + ".maxLength",
|
|
1797
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
1798
|
+
value: input.maxLength
|
|
1799
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1800
|
+
method: "typia.assert",
|
|
1801
|
+
path: _path + ".format",
|
|
1802
|
+
expected: "(string | undefined)",
|
|
1803
|
+
value: input.format
|
|
1804
|
+
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1805
|
+
method: "typia.assert",
|
|
1806
|
+
path: _path + ".pattern",
|
|
1807
|
+
expected: "(string | undefined)",
|
|
1808
|
+
value: input.pattern
|
|
1809
|
+
}, _errorFactory)) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1810
|
+
method: "typia.assert",
|
|
1811
|
+
path: _path + ".contentMediaType",
|
|
1812
|
+
expected: "(string | undefined)",
|
|
1813
|
+
value: input.contentMediaType
|
|
1814
|
+
}, _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, {
|
|
1815
|
+
method: "typia.assert",
|
|
1816
|
+
path: _path + ".minLength",
|
|
1817
|
+
expected: "number & Type<\"uint64\">",
|
|
1818
|
+
value: input.minLength
|
|
1819
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1820
|
+
method: "typia.assert",
|
|
1821
|
+
path: _path + ".minLength",
|
|
1822
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
1823
|
+
value: input.minLength
|
|
1824
|
+
}, _errorFactory)) && ((null !== input.items || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1825
|
+
method: "typia.assert",
|
|
1826
|
+
path: _path + ".items",
|
|
1827
|
+
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)",
|
|
1828
|
+
value: input.items
|
|
1829
|
+
}, _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, {
|
|
1830
|
+
method: "typia.assert",
|
|
1831
|
+
path: _path + ".items[" + _index25 + "]",
|
|
1832
|
+
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)",
|
|
1833
|
+
value: elem
|
|
1834
|
+
}, _errorFactory)) && _au0(elem, _path + ".items[" + _index25 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1835
|
+
method: "typia.assert",
|
|
1836
|
+
path: _path + ".items[" + _index25 + "]",
|
|
1837
|
+
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)",
|
|
1838
|
+
value: elem
|
|
1839
|
+
}, _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, {
|
|
1840
|
+
method: "typia.assert",
|
|
1841
|
+
path: _path + ".items",
|
|
1842
|
+
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)",
|
|
1843
|
+
value: input.items
|
|
1844
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1845
|
+
method: "typia.assert",
|
|
1846
|
+
path: _path + ".items",
|
|
1847
|
+
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)",
|
|
1848
|
+
value: input.items
|
|
1849
|
+
}, _errorFactory))) && (undefined === input.prefixItems || (Array.isArray(input.prefixItems) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1850
|
+
method: "typia.assert",
|
|
1851
|
+
path: _path + ".prefixItems",
|
|
1852
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1853
|
+
value: input.prefixItems
|
|
1854
|
+
}, _errorFactory)) && input.prefixItems.every((elem, _index26) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1855
|
+
method: "typia.assert",
|
|
1856
|
+
path: _path + ".prefixItems[" + _index26 + "]",
|
|
1857
|
+
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)",
|
|
1858
|
+
value: elem
|
|
1859
|
+
}, _errorFactory)) && _au0(elem, _path + ".prefixItems[" + _index26 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1860
|
+
method: "typia.assert",
|
|
1861
|
+
path: _path + ".prefixItems[" + _index26 + "]",
|
|
1862
|
+
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)",
|
|
1863
|
+
value: elem
|
|
1864
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1865
|
+
method: "typia.assert",
|
|
1866
|
+
path: _path + ".prefixItems",
|
|
1867
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1868
|
+
value: input.prefixItems
|
|
1869
|
+
}, _errorFactory)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1870
|
+
method: "typia.assert",
|
|
1871
|
+
path: _path + ".uniqueItems",
|
|
1872
|
+
expected: "(boolean | undefined)",
|
|
1873
|
+
value: input.uniqueItems
|
|
1874
|
+
}, _errorFactory)) && ((null !== input.additionalItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1875
|
+
method: "typia.assert",
|
|
1876
|
+
path: _path + ".additionalItems",
|
|
1877
|
+
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)",
|
|
1878
|
+
value: input.additionalItems
|
|
1879
|
+
}, _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, {
|
|
1880
|
+
method: "typia.assert",
|
|
1881
|
+
path: _path + ".additionalItems",
|
|
1882
|
+
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)",
|
|
1883
|
+
value: input.additionalItems
|
|
1884
|
+
}, _errorFactory)) && _au0(input.additionalItems, _path + ".additionalItems", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1885
|
+
method: "typia.assert",
|
|
1886
|
+
path: _path + ".additionalItems",
|
|
1887
|
+
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)",
|
|
1888
|
+
value: input.additionalItems
|
|
1889
|
+
}, _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, {
|
|
1890
|
+
method: "typia.assert",
|
|
1891
|
+
path: _path + ".minItems",
|
|
1892
|
+
expected: "number & Type<\"uint64\">",
|
|
1893
|
+
value: input.minItems
|
|
1894
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1895
|
+
method: "typia.assert",
|
|
1896
|
+
path: _path + ".minItems",
|
|
1897
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
1898
|
+
value: input.minItems
|
|
1899
|
+
}, _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, {
|
|
1900
|
+
method: "typia.assert",
|
|
1901
|
+
path: _path + ".maxItems",
|
|
1902
|
+
expected: "number & Type<\"uint64\">",
|
|
1903
|
+
value: input.maxItems
|
|
1904
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1905
|
+
method: "typia.assert",
|
|
1906
|
+
path: _path + ".maxItems",
|
|
1907
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
1908
|
+
value: input.maxItems
|
|
1909
|
+
}, _errorFactory)) && ((null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1910
|
+
method: "typia.assert",
|
|
1911
|
+
path: _path + ".additionalProperties",
|
|
1912
|
+
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)",
|
|
1913
|
+
value: input.additionalProperties
|
|
1914
|
+
}, _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, {
|
|
1915
|
+
method: "typia.assert",
|
|
1916
|
+
path: _path + ".additionalProperties",
|
|
1917
|
+
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)",
|
|
1918
|
+
value: input.additionalProperties
|
|
1919
|
+
}, _errorFactory)) && _au0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1920
|
+
method: "typia.assert",
|
|
1921
|
+
path: _path + ".additionalProperties",
|
|
1922
|
+
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)",
|
|
1923
|
+
value: input.additionalProperties
|
|
1924
|
+
}, _errorFactory))) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1925
|
+
method: "typia.assert",
|
|
1926
|
+
path: _path + ".properties",
|
|
1927
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1928
|
+
value: input.properties
|
|
1929
|
+
}, _errorFactory)) && _ao2(input.properties, _path + ".properties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1930
|
+
method: "typia.assert",
|
|
1931
|
+
path: _path + ".properties",
|
|
1932
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
1933
|
+
value: input.properties
|
|
1934
|
+
}, _errorFactory)) && (undefined === input.required || (Array.isArray(input.required) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1935
|
+
method: "typia.assert",
|
|
1936
|
+
path: _path + ".required",
|
|
1937
|
+
expected: "(Array<string> | undefined)",
|
|
1938
|
+
value: input.required
|
|
1939
|
+
}, _errorFactory)) && input.required.every((elem, _index27) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1940
|
+
method: "typia.assert",
|
|
1941
|
+
path: _path + ".required[" + _index27 + "]",
|
|
1942
|
+
expected: "string",
|
|
1943
|
+
value: elem
|
|
1944
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1945
|
+
method: "typia.assert",
|
|
1946
|
+
path: _path + ".required",
|
|
1947
|
+
expected: "(Array<string> | undefined)",
|
|
1948
|
+
value: input.required
|
|
1949
|
+
}, _errorFactory)) && (undefined === input.maxProperties || "number" === typeof input.maxProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1950
|
+
method: "typia.assert",
|
|
1951
|
+
path: _path + ".maxProperties",
|
|
1952
|
+
expected: "(number | undefined)",
|
|
1953
|
+
value: input.maxProperties
|
|
1954
|
+
}, _errorFactory)) && (undefined === input.minProperties || "number" === typeof input.minProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1955
|
+
method: "typia.assert",
|
|
1956
|
+
path: _path + ".minProperties",
|
|
1957
|
+
expected: "(number | undefined)",
|
|
1958
|
+
value: input.minProperties
|
|
1959
|
+
}, _errorFactory)) && ((Array.isArray(input.oneOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1960
|
+
method: "typia.assert",
|
|
1961
|
+
path: _path + ".oneOf",
|
|
1962
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1963
|
+
value: input.oneOf
|
|
1964
|
+
}, _errorFactory)) && input.oneOf.every((elem, _index28) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1965
|
+
method: "typia.assert",
|
|
1966
|
+
path: _path + ".oneOf[" + _index28 + "]",
|
|
1967
|
+
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)",
|
|
1968
|
+
value: elem
|
|
1969
|
+
}, _errorFactory)) && _au0(elem, _path + ".oneOf[" + _index28 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1970
|
+
method: "typia.assert",
|
|
1971
|
+
path: _path + ".oneOf[" + _index28 + "]",
|
|
1972
|
+
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)",
|
|
1973
|
+
value: elem
|
|
1974
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1975
|
+
method: "typia.assert",
|
|
1976
|
+
path: _path + ".oneOf",
|
|
1977
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1978
|
+
value: input.oneOf
|
|
1979
|
+
}, _errorFactory)) && (undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1980
|
+
method: "typia.assert",
|
|
1981
|
+
path: _path + ".discriminator",
|
|
1982
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
1983
|
+
value: input.discriminator
|
|
1984
|
+
}, _errorFactory)) && _ao17(input.discriminator, _path + ".discriminator", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1985
|
+
method: "typia.assert",
|
|
1986
|
+
path: _path + ".discriminator",
|
|
1987
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
1988
|
+
value: input.discriminator
|
|
1989
|
+
}, _errorFactory)) && ((Array.isArray(input.anyOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1990
|
+
method: "typia.assert",
|
|
1991
|
+
path: _path + ".anyOf",
|
|
1992
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
1993
|
+
value: input.anyOf
|
|
1994
|
+
}, _errorFactory)) && input.anyOf.every((elem, _index29) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1995
|
+
method: "typia.assert",
|
|
1996
|
+
path: _path + ".anyOf[" + _index29 + "]",
|
|
1997
|
+
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)",
|
|
1998
|
+
value: elem
|
|
1999
|
+
}, _errorFactory)) && _au0(elem, _path + ".anyOf[" + _index29 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2000
|
+
method: "typia.assert",
|
|
2001
|
+
path: _path + ".anyOf[" + _index29 + "]",
|
|
2002
|
+
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)",
|
|
2003
|
+
value: elem
|
|
2004
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2005
|
+
method: "typia.assert",
|
|
2006
|
+
path: _path + ".anyOf",
|
|
2007
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
2008
|
+
value: input.anyOf
|
|
2009
|
+
}, _errorFactory)) && ((Array.isArray(input.allOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2010
|
+
method: "typia.assert",
|
|
2011
|
+
path: _path + ".allOf",
|
|
2012
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
2013
|
+
value: input.allOf
|
|
2014
|
+
}, _errorFactory)) && input.allOf.every((elem, _index30) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2015
|
+
method: "typia.assert",
|
|
2016
|
+
path: _path + ".allOf[" + _index30 + "]",
|
|
2017
|
+
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)",
|
|
2018
|
+
value: elem
|
|
2019
|
+
}, _errorFactory)) && _au0(elem, _path + ".allOf[" + _index30 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2020
|
+
method: "typia.assert",
|
|
2021
|
+
path: _path + ".allOf[" + _index30 + "]",
|
|
2022
|
+
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)",
|
|
2023
|
+
value: elem
|
|
2024
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2025
|
+
method: "typia.assert",
|
|
2026
|
+
path: _path + ".allOf",
|
|
2027
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
2028
|
+
value: input.allOf
|
|
2029
|
+
}, _errorFactory)) && ("string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2030
|
+
method: "typia.assert",
|
|
2031
|
+
path: _path + ".$ref",
|
|
2032
|
+
expected: "string",
|
|
2033
|
+
value: input.$ref
|
|
2034
|
+
}, _errorFactory)); const _ao5 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
2035
|
+
const value = input[key];
|
|
2036
|
+
if (undefined === value)
|
|
2037
|
+
return true;
|
|
2038
|
+
return true;
|
|
2039
|
+
}); const _ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2040
|
+
method: "typia.assert",
|
|
2041
|
+
path: _path + "[\"const\"]",
|
|
2042
|
+
expected: "(boolean | number | string)",
|
|
2043
|
+
value: input["const"]
|
|
2044
|
+
}, _errorFactory)) && (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2045
|
+
method: "typia.assert",
|
|
2046
|
+
path: _path + ".nullable",
|
|
2047
|
+
expected: "(boolean | undefined)",
|
|
2048
|
+
value: input.nullable
|
|
2049
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2050
|
+
method: "typia.assert",
|
|
2051
|
+
path: _path + ".examples",
|
|
2052
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2053
|
+
value: input.examples
|
|
2054
|
+
}, _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, {
|
|
2055
|
+
method: "typia.assert",
|
|
2056
|
+
path: _path + ".examples",
|
|
2057
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2058
|
+
value: input.examples
|
|
2059
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2060
|
+
method: "typia.assert",
|
|
2061
|
+
path: _path + ".examples",
|
|
2062
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2063
|
+
value: input.examples
|
|
2064
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2065
|
+
method: "typia.assert",
|
|
2066
|
+
path: _path + ".title",
|
|
2067
|
+
expected: "(string | undefined)",
|
|
2068
|
+
value: input.title
|
|
2069
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2070
|
+
method: "typia.assert",
|
|
2071
|
+
path: _path + ".description",
|
|
2072
|
+
expected: "(string | undefined)",
|
|
2073
|
+
value: input.description
|
|
2074
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2075
|
+
method: "typia.assert",
|
|
2076
|
+
path: _path + ".deprecated",
|
|
2077
|
+
expected: "(boolean | undefined)",
|
|
2078
|
+
value: input.deprecated
|
|
2079
|
+
}, _errorFactory)) && true; const _ao7 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2080
|
+
method: "typia.assert",
|
|
2081
|
+
path: _path + ".nullable",
|
|
2082
|
+
expected: "(boolean | undefined)",
|
|
2083
|
+
value: input.nullable
|
|
2084
|
+
}, _errorFactory)) && (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2085
|
+
method: "typia.assert",
|
|
2086
|
+
path: _path + "[\"default\"]",
|
|
2087
|
+
expected: "(boolean | null | undefined)",
|
|
2088
|
+
value: input["default"]
|
|
2089
|
+
}, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2090
|
+
method: "typia.assert",
|
|
2091
|
+
path: _path + "[\"enum\"]",
|
|
2092
|
+
expected: "(Array<boolean | null> | undefined)",
|
|
2093
|
+
value: input["enum"]
|
|
2094
|
+
}, _errorFactory)) && input["enum"].every((elem, _index31) => null === elem || "boolean" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2095
|
+
method: "typia.assert",
|
|
2096
|
+
path: _path + "[\"enum\"][" + _index31 + "]",
|
|
2097
|
+
expected: "(boolean | null)",
|
|
2098
|
+
value: elem
|
|
2099
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2100
|
+
method: "typia.assert",
|
|
2101
|
+
path: _path + "[\"enum\"]",
|
|
2102
|
+
expected: "(Array<boolean | null> | undefined)",
|
|
2103
|
+
value: input["enum"]
|
|
2104
|
+
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2105
|
+
method: "typia.assert",
|
|
2106
|
+
path: _path + ".type",
|
|
2107
|
+
expected: "\"boolean\"",
|
|
2108
|
+
value: input.type
|
|
2109
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2110
|
+
method: "typia.assert",
|
|
2111
|
+
path: _path + ".title",
|
|
2112
|
+
expected: "(string | undefined)",
|
|
2113
|
+
value: input.title
|
|
2114
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2115
|
+
method: "typia.assert",
|
|
2116
|
+
path: _path + ".description",
|
|
2117
|
+
expected: "(string | undefined)",
|
|
2118
|
+
value: input.description
|
|
2119
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2120
|
+
method: "typia.assert",
|
|
2121
|
+
path: _path + ".deprecated",
|
|
2122
|
+
expected: "(boolean | undefined)",
|
|
2123
|
+
value: input.deprecated
|
|
2124
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2125
|
+
method: "typia.assert",
|
|
2126
|
+
path: _path + ".examples",
|
|
2127
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2128
|
+
value: input.examples
|
|
2129
|
+
}, _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, {
|
|
2130
|
+
method: "typia.assert",
|
|
2131
|
+
path: _path + ".examples",
|
|
2132
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2133
|
+
value: input.examples
|
|
2134
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2135
|
+
method: "typia.assert",
|
|
2136
|
+
path: _path + ".examples",
|
|
2137
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2138
|
+
value: input.examples
|
|
2139
|
+
}, _errorFactory))); const _ao8 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2140
|
+
method: "typia.assert",
|
|
2141
|
+
path: _path + ".nullable",
|
|
2142
|
+
expected: "(boolean | undefined)",
|
|
2143
|
+
value: input.nullable
|
|
2144
|
+
}, _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, {
|
|
2145
|
+
method: "typia.assert",
|
|
2146
|
+
path: _path + "[\"default\"]",
|
|
2147
|
+
expected: "number & Type<\"int64\">",
|
|
2148
|
+
value: input["default"]
|
|
2149
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2150
|
+
method: "typia.assert",
|
|
2151
|
+
path: _path + "[\"default\"]",
|
|
2152
|
+
expected: "((number & Type<\"int64\">) | null | undefined)",
|
|
2153
|
+
value: input["default"]
|
|
2154
|
+
}, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2155
|
+
method: "typia.assert",
|
|
2156
|
+
path: _path + "[\"enum\"]",
|
|
2157
|
+
expected: "(Array<number | null> | undefined)",
|
|
2158
|
+
value: input["enum"]
|
|
2159
|
+
}, _errorFactory)) && input["enum"].every((elem, _index32) => null === elem || "number" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2160
|
+
method: "typia.assert",
|
|
2161
|
+
path: _path + "[\"enum\"][" + _index32 + "]",
|
|
2162
|
+
expected: "(null | number)",
|
|
2163
|
+
value: elem
|
|
2164
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2165
|
+
method: "typia.assert",
|
|
2166
|
+
path: _path + "[\"enum\"]",
|
|
2167
|
+
expected: "(Array<number | null> | undefined)",
|
|
2168
|
+
value: input["enum"]
|
|
2169
|
+
}, _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, {
|
|
2170
|
+
method: "typia.assert",
|
|
2171
|
+
path: _path + ".minimum",
|
|
2172
|
+
expected: "number & Type<\"int64\">",
|
|
2173
|
+
value: input.minimum
|
|
2174
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2175
|
+
method: "typia.assert",
|
|
2176
|
+
path: _path + ".minimum",
|
|
2177
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
2178
|
+
value: input.minimum
|
|
2179
|
+
}, _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, {
|
|
2180
|
+
method: "typia.assert",
|
|
2181
|
+
path: _path + ".maximum",
|
|
2182
|
+
expected: "number & Type<\"int64\">",
|
|
2183
|
+
value: input.maximum
|
|
2184
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2185
|
+
method: "typia.assert",
|
|
2186
|
+
path: _path + ".maximum",
|
|
2187
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
2188
|
+
value: input.maximum
|
|
2189
|
+
}, _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, {
|
|
2190
|
+
method: "typia.assert",
|
|
2191
|
+
path: _path + ".exclusiveMinimum",
|
|
2192
|
+
expected: "number & Type<\"int64\">",
|
|
2193
|
+
value: input.exclusiveMinimum
|
|
2194
|
+
}, _errorFactory)) || "boolean" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2195
|
+
method: "typia.assert",
|
|
2196
|
+
path: _path + ".exclusiveMinimum",
|
|
2197
|
+
expected: "((number & Type<\"int64\">) | boolean | undefined)",
|
|
2198
|
+
value: input.exclusiveMinimum
|
|
2199
|
+
}, _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, {
|
|
2200
|
+
method: "typia.assert",
|
|
2201
|
+
path: _path + ".exclusiveMaximum",
|
|
2202
|
+
expected: "number & Type<\"int64\">",
|
|
2203
|
+
value: input.exclusiveMaximum
|
|
2204
|
+
}, _errorFactory)) || "boolean" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2205
|
+
method: "typia.assert",
|
|
2206
|
+
path: _path + ".exclusiveMaximum",
|
|
2207
|
+
expected: "((number & Type<\"int64\">) | boolean | undefined)",
|
|
2208
|
+
value: input.exclusiveMaximum
|
|
2209
|
+
}, _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, {
|
|
2210
|
+
method: "typia.assert",
|
|
2211
|
+
path: _path + ".multipleOf",
|
|
2212
|
+
expected: "number & Type<\"uint64\">",
|
|
2213
|
+
value: input.multipleOf
|
|
2214
|
+
}, _errorFactory)) && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2215
|
+
method: "typia.assert",
|
|
2216
|
+
path: _path + ".multipleOf",
|
|
2217
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
2218
|
+
value: input.multipleOf
|
|
2219
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2220
|
+
method: "typia.assert",
|
|
2221
|
+
path: _path + ".multipleOf",
|
|
2222
|
+
expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
|
|
2223
|
+
value: input.multipleOf
|
|
2224
|
+
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2225
|
+
method: "typia.assert",
|
|
2226
|
+
path: _path + ".type",
|
|
2227
|
+
expected: "\"integer\"",
|
|
2228
|
+
value: input.type
|
|
2229
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2230
|
+
method: "typia.assert",
|
|
2231
|
+
path: _path + ".title",
|
|
2232
|
+
expected: "(string | undefined)",
|
|
2233
|
+
value: input.title
|
|
2234
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2235
|
+
method: "typia.assert",
|
|
2236
|
+
path: _path + ".description",
|
|
2237
|
+
expected: "(string | undefined)",
|
|
2238
|
+
value: input.description
|
|
2239
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2240
|
+
method: "typia.assert",
|
|
2241
|
+
path: _path + ".deprecated",
|
|
2242
|
+
expected: "(boolean | undefined)",
|
|
2243
|
+
value: input.deprecated
|
|
2244
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2245
|
+
method: "typia.assert",
|
|
2246
|
+
path: _path + ".examples",
|
|
2247
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2248
|
+
value: input.examples
|
|
2249
|
+
}, _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, {
|
|
2250
|
+
method: "typia.assert",
|
|
2251
|
+
path: _path + ".examples",
|
|
2252
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2253
|
+
value: input.examples
|
|
2254
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2255
|
+
method: "typia.assert",
|
|
2256
|
+
path: _path + ".examples",
|
|
2257
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2258
|
+
value: input.examples
|
|
2259
|
+
}, _errorFactory))); const _ao9 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2260
|
+
method: "typia.assert",
|
|
2261
|
+
path: _path + ".nullable",
|
|
2262
|
+
expected: "(boolean | undefined)",
|
|
2263
|
+
value: input.nullable
|
|
2264
|
+
}, _errorFactory)) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2265
|
+
method: "typia.assert",
|
|
2266
|
+
path: _path + "[\"default\"]",
|
|
2267
|
+
expected: "(null | number | undefined)",
|
|
2268
|
+
value: input["default"]
|
|
2269
|
+
}, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2270
|
+
method: "typia.assert",
|
|
2271
|
+
path: _path + "[\"enum\"]",
|
|
2272
|
+
expected: "(Array<number | null> | undefined)",
|
|
2273
|
+
value: input["enum"]
|
|
2274
|
+
}, _errorFactory)) && input["enum"].every((elem, _index33) => null === elem || "number" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2275
|
+
method: "typia.assert",
|
|
2276
|
+
path: _path + "[\"enum\"][" + _index33 + "]",
|
|
2277
|
+
expected: "(null | number)",
|
|
2278
|
+
value: elem
|
|
2279
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2280
|
+
method: "typia.assert",
|
|
2281
|
+
path: _path + "[\"enum\"]",
|
|
2282
|
+
expected: "(Array<number | null> | undefined)",
|
|
2283
|
+
value: input["enum"]
|
|
2284
|
+
}, _errorFactory)) && (undefined === input.minimum || "number" === typeof input.minimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2285
|
+
method: "typia.assert",
|
|
2286
|
+
path: _path + ".minimum",
|
|
2287
|
+
expected: "(number | undefined)",
|
|
2288
|
+
value: input.minimum
|
|
2289
|
+
}, _errorFactory)) && (undefined === input.maximum || "number" === typeof input.maximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2290
|
+
method: "typia.assert",
|
|
2291
|
+
path: _path + ".maximum",
|
|
2292
|
+
expected: "(number | undefined)",
|
|
2293
|
+
value: input.maximum
|
|
2294
|
+
}, _errorFactory)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2295
|
+
method: "typia.assert",
|
|
2296
|
+
path: _path + ".exclusiveMinimum",
|
|
2297
|
+
expected: "(boolean | number | undefined)",
|
|
2298
|
+
value: input.exclusiveMinimum
|
|
2299
|
+
}, _errorFactory)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2300
|
+
method: "typia.assert",
|
|
2301
|
+
path: _path + ".exclusiveMaximum",
|
|
2302
|
+
expected: "(boolean | number | undefined)",
|
|
2303
|
+
value: input.exclusiveMaximum
|
|
2304
|
+
}, _errorFactory)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2305
|
+
method: "typia.assert",
|
|
2306
|
+
path: _path + ".multipleOf",
|
|
2307
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
2308
|
+
value: input.multipleOf
|
|
2309
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2310
|
+
method: "typia.assert",
|
|
2311
|
+
path: _path + ".multipleOf",
|
|
2312
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
2313
|
+
value: input.multipleOf
|
|
2314
|
+
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2315
|
+
method: "typia.assert",
|
|
2316
|
+
path: _path + ".type",
|
|
2317
|
+
expected: "\"number\"",
|
|
2318
|
+
value: input.type
|
|
2319
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2320
|
+
method: "typia.assert",
|
|
2321
|
+
path: _path + ".title",
|
|
2322
|
+
expected: "(string | undefined)",
|
|
2323
|
+
value: input.title
|
|
2324
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2325
|
+
method: "typia.assert",
|
|
2326
|
+
path: _path + ".description",
|
|
2327
|
+
expected: "(string | undefined)",
|
|
2328
|
+
value: input.description
|
|
2329
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2330
|
+
method: "typia.assert",
|
|
2331
|
+
path: _path + ".deprecated",
|
|
2332
|
+
expected: "(boolean | undefined)",
|
|
2333
|
+
value: input.deprecated
|
|
2334
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2335
|
+
method: "typia.assert",
|
|
2336
|
+
path: _path + ".examples",
|
|
2337
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2338
|
+
value: input.examples
|
|
2339
|
+
}, _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, {
|
|
2340
|
+
method: "typia.assert",
|
|
2341
|
+
path: _path + ".examples",
|
|
2342
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2343
|
+
value: input.examples
|
|
2344
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2345
|
+
method: "typia.assert",
|
|
2346
|
+
path: _path + ".examples",
|
|
2347
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2348
|
+
value: input.examples
|
|
2349
|
+
}, _errorFactory))); const _ao10 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2350
|
+
method: "typia.assert",
|
|
2351
|
+
path: _path + ".nullable",
|
|
2352
|
+
expected: "(boolean | undefined)",
|
|
2353
|
+
value: input.nullable
|
|
2354
|
+
}, _errorFactory)) && (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2355
|
+
method: "typia.assert",
|
|
2356
|
+
path: _path + "[\"default\"]",
|
|
2357
|
+
expected: "(null | string | undefined)",
|
|
2358
|
+
value: input["default"]
|
|
2359
|
+
}, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2360
|
+
method: "typia.assert",
|
|
2361
|
+
path: _path + "[\"enum\"]",
|
|
2362
|
+
expected: "(Array<string | null> | undefined)",
|
|
2363
|
+
value: input["enum"]
|
|
2364
|
+
}, _errorFactory)) && input["enum"].every((elem, _index34) => null === elem || "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2365
|
+
method: "typia.assert",
|
|
2366
|
+
path: _path + "[\"enum\"][" + _index34 + "]",
|
|
2367
|
+
expected: "(null | string)",
|
|
2368
|
+
value: elem
|
|
2369
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2370
|
+
method: "typia.assert",
|
|
2371
|
+
path: _path + "[\"enum\"]",
|
|
2372
|
+
expected: "(Array<string | null> | undefined)",
|
|
2373
|
+
value: input["enum"]
|
|
2374
|
+
}, _errorFactory)) && (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2375
|
+
method: "typia.assert",
|
|
2376
|
+
path: _path + ".format",
|
|
2377
|
+
expected: "(string | undefined)",
|
|
2378
|
+
value: input.format
|
|
2379
|
+
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2380
|
+
method: "typia.assert",
|
|
2381
|
+
path: _path + ".pattern",
|
|
2382
|
+
expected: "(string | undefined)",
|
|
2383
|
+
value: input.pattern
|
|
2384
|
+
}, _errorFactory)) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2385
|
+
method: "typia.assert",
|
|
2386
|
+
path: _path + ".contentMediaType",
|
|
2387
|
+
expected: "(string | undefined)",
|
|
2388
|
+
value: input.contentMediaType
|
|
2389
|
+
}, _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, {
|
|
2390
|
+
method: "typia.assert",
|
|
2391
|
+
path: _path + ".minLength",
|
|
2392
|
+
expected: "number & Type<\"uint64\">",
|
|
2393
|
+
value: input.minLength
|
|
2394
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2395
|
+
method: "typia.assert",
|
|
2396
|
+
path: _path + ".minLength",
|
|
2397
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
2398
|
+
value: input.minLength
|
|
2399
|
+
}, _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, {
|
|
2400
|
+
method: "typia.assert",
|
|
2401
|
+
path: _path + ".maxLength",
|
|
2402
|
+
expected: "number & Type<\"uint64\">",
|
|
2403
|
+
value: input.maxLength
|
|
2404
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2405
|
+
method: "typia.assert",
|
|
2406
|
+
path: _path + ".maxLength",
|
|
2407
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
2408
|
+
value: input.maxLength
|
|
2409
|
+
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2410
|
+
method: "typia.assert",
|
|
2411
|
+
path: _path + ".type",
|
|
2412
|
+
expected: "\"string\"",
|
|
2413
|
+
value: input.type
|
|
2414
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2415
|
+
method: "typia.assert",
|
|
2416
|
+
path: _path + ".title",
|
|
2417
|
+
expected: "(string | undefined)",
|
|
2418
|
+
value: input.title
|
|
2419
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2420
|
+
method: "typia.assert",
|
|
2421
|
+
path: _path + ".description",
|
|
2422
|
+
expected: "(string | undefined)",
|
|
2423
|
+
value: input.description
|
|
2424
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2425
|
+
method: "typia.assert",
|
|
2426
|
+
path: _path + ".deprecated",
|
|
2427
|
+
expected: "(boolean | undefined)",
|
|
2428
|
+
value: input.deprecated
|
|
2429
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2430
|
+
method: "typia.assert",
|
|
2431
|
+
path: _path + ".examples",
|
|
2432
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2433
|
+
value: input.examples
|
|
2434
|
+
}, _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, {
|
|
2435
|
+
method: "typia.assert",
|
|
2436
|
+
path: _path + ".examples",
|
|
2437
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2438
|
+
value: input.examples
|
|
2439
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2440
|
+
method: "typia.assert",
|
|
2441
|
+
path: _path + ".examples",
|
|
2442
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2443
|
+
value: input.examples
|
|
2444
|
+
}, _errorFactory))); const _ao11 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2445
|
+
method: "typia.assert",
|
|
2446
|
+
path: _path + ".nullable",
|
|
2447
|
+
expected: "(boolean | undefined)",
|
|
2448
|
+
value: input.nullable
|
|
2449
|
+
}, _errorFactory)) && ((null !== input.items || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2450
|
+
method: "typia.assert",
|
|
2451
|
+
path: _path + ".items",
|
|
2452
|
+
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)",
|
|
2453
|
+
value: input.items
|
|
2454
|
+
}, _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, {
|
|
2455
|
+
method: "typia.assert",
|
|
2456
|
+
path: _path + ".items[" + _index35 + "]",
|
|
2457
|
+
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)",
|
|
2458
|
+
value: elem
|
|
2459
|
+
}, _errorFactory)) && _au0(elem, _path + ".items[" + _index35 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2460
|
+
method: "typia.assert",
|
|
2461
|
+
path: _path + ".items[" + _index35 + "]",
|
|
2462
|
+
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)",
|
|
2463
|
+
value: elem
|
|
2464
|
+
}, _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, {
|
|
2465
|
+
method: "typia.assert",
|
|
2466
|
+
path: _path + ".items",
|
|
2467
|
+
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)",
|
|
2468
|
+
value: input.items
|
|
2469
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2470
|
+
method: "typia.assert",
|
|
2471
|
+
path: _path + ".items",
|
|
2472
|
+
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)",
|
|
2473
|
+
value: input.items
|
|
2474
|
+
}, _errorFactory))) && (undefined === input.prefixItems || (Array.isArray(input.prefixItems) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2475
|
+
method: "typia.assert",
|
|
2476
|
+
path: _path + ".prefixItems",
|
|
2477
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
2478
|
+
value: input.prefixItems
|
|
2479
|
+
}, _errorFactory)) && input.prefixItems.every((elem, _index36) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2480
|
+
method: "typia.assert",
|
|
2481
|
+
path: _path + ".prefixItems[" + _index36 + "]",
|
|
2482
|
+
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)",
|
|
2483
|
+
value: elem
|
|
2484
|
+
}, _errorFactory)) && _au0(elem, _path + ".prefixItems[" + _index36 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2485
|
+
method: "typia.assert",
|
|
2486
|
+
path: _path + ".prefixItems[" + _index36 + "]",
|
|
2487
|
+
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)",
|
|
2488
|
+
value: elem
|
|
2489
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2490
|
+
method: "typia.assert",
|
|
2491
|
+
path: _path + ".prefixItems",
|
|
2492
|
+
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
|
2493
|
+
value: input.prefixItems
|
|
2494
|
+
}, _errorFactory)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2495
|
+
method: "typia.assert",
|
|
2496
|
+
path: _path + ".uniqueItems",
|
|
2497
|
+
expected: "(boolean | undefined)",
|
|
2498
|
+
value: input.uniqueItems
|
|
2499
|
+
}, _errorFactory)) && ((null !== input.additionalItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2500
|
+
method: "typia.assert",
|
|
2501
|
+
path: _path + ".additionalItems",
|
|
2502
|
+
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)",
|
|
2503
|
+
value: input.additionalItems
|
|
2504
|
+
}, _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, {
|
|
2505
|
+
method: "typia.assert",
|
|
2506
|
+
path: _path + ".additionalItems",
|
|
2507
|
+
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)",
|
|
2508
|
+
value: input.additionalItems
|
|
2509
|
+
}, _errorFactory)) && _au0(input.additionalItems, _path + ".additionalItems", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2510
|
+
method: "typia.assert",
|
|
2511
|
+
path: _path + ".additionalItems",
|
|
2512
|
+
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)",
|
|
2513
|
+
value: input.additionalItems
|
|
2514
|
+
}, _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, {
|
|
2515
|
+
method: "typia.assert",
|
|
2516
|
+
path: _path + ".minItems",
|
|
2517
|
+
expected: "number & Type<\"uint64\">",
|
|
2518
|
+
value: input.minItems
|
|
2519
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2520
|
+
method: "typia.assert",
|
|
2521
|
+
path: _path + ".minItems",
|
|
2522
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
2523
|
+
value: input.minItems
|
|
2524
|
+
}, _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, {
|
|
2525
|
+
method: "typia.assert",
|
|
2526
|
+
path: _path + ".maxItems",
|
|
2527
|
+
expected: "number & Type<\"uint64\">",
|
|
2528
|
+
value: input.maxItems
|
|
2529
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2530
|
+
method: "typia.assert",
|
|
2531
|
+
path: _path + ".maxItems",
|
|
2532
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
2533
|
+
value: input.maxItems
|
|
2534
|
+
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2535
|
+
method: "typia.assert",
|
|
2536
|
+
path: _path + ".type",
|
|
2537
|
+
expected: "\"array\"",
|
|
2538
|
+
value: input.type
|
|
2539
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2540
|
+
method: "typia.assert",
|
|
2541
|
+
path: _path + ".title",
|
|
2542
|
+
expected: "(string | undefined)",
|
|
2543
|
+
value: input.title
|
|
2544
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2545
|
+
method: "typia.assert",
|
|
2546
|
+
path: _path + ".description",
|
|
2547
|
+
expected: "(string | undefined)",
|
|
2548
|
+
value: input.description
|
|
2549
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2550
|
+
method: "typia.assert",
|
|
2551
|
+
path: _path + ".deprecated",
|
|
2552
|
+
expected: "(boolean | undefined)",
|
|
2553
|
+
value: input.deprecated
|
|
2554
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2555
|
+
method: "typia.assert",
|
|
2556
|
+
path: _path + ".examples",
|
|
2557
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2558
|
+
value: input.examples
|
|
2559
|
+
}, _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, {
|
|
2560
|
+
method: "typia.assert",
|
|
2561
|
+
path: _path + ".examples",
|
|
2562
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2563
|
+
value: input.examples
|
|
2564
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2565
|
+
method: "typia.assert",
|
|
2566
|
+
path: _path + ".examples",
|
|
2567
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2568
|
+
value: input.examples
|
|
2569
|
+
}, _errorFactory))); const _ao12 = (input, _path, _exceptionable = true) => ("string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2570
|
+
method: "typia.assert",
|
|
2571
|
+
path: _path + ".$ref",
|
|
2572
|
+
expected: "string",
|
|
2573
|
+
value: input.$ref
|
|
2574
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2575
|
+
method: "typia.assert",
|
|
2576
|
+
path: _path + ".examples",
|
|
2577
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2578
|
+
value: input.examples
|
|
2579
|
+
}, _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, {
|
|
2580
|
+
method: "typia.assert",
|
|
2581
|
+
path: _path + ".examples",
|
|
2582
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2583
|
+
value: input.examples
|
|
2584
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2585
|
+
method: "typia.assert",
|
|
2586
|
+
path: _path + ".examples",
|
|
2587
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2588
|
+
value: input.examples
|
|
2589
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2590
|
+
method: "typia.assert",
|
|
2591
|
+
path: _path + ".title",
|
|
2592
|
+
expected: "(string | undefined)",
|
|
2593
|
+
value: input.title
|
|
2594
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2595
|
+
method: "typia.assert",
|
|
2596
|
+
path: _path + ".description",
|
|
2597
|
+
expected: "(string | undefined)",
|
|
2598
|
+
value: input.description
|
|
2599
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2600
|
+
method: "typia.assert",
|
|
2601
|
+
path: _path + ".deprecated",
|
|
2602
|
+
expected: "(boolean | undefined)",
|
|
2603
|
+
value: input.deprecated
|
|
2604
|
+
}, _errorFactory)) && true; const _ao13 = (input, _path, _exceptionable = true) => ("string" === typeof input.$recursiveRef || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2605
|
+
method: "typia.assert",
|
|
2606
|
+
path: _path + ".$recursiveRef",
|
|
2607
|
+
expected: "string",
|
|
2608
|
+
value: input.$recursiveRef
|
|
2609
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2610
|
+
method: "typia.assert",
|
|
2611
|
+
path: _path + ".examples",
|
|
2612
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2613
|
+
value: input.examples
|
|
2614
|
+
}, _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, {
|
|
2615
|
+
method: "typia.assert",
|
|
2616
|
+
path: _path + ".examples",
|
|
2617
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2618
|
+
value: input.examples
|
|
2619
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2620
|
+
method: "typia.assert",
|
|
2621
|
+
path: _path + ".examples",
|
|
2622
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2623
|
+
value: input.examples
|
|
2624
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2625
|
+
method: "typia.assert",
|
|
2626
|
+
path: _path + ".title",
|
|
2627
|
+
expected: "(string | undefined)",
|
|
2628
|
+
value: input.title
|
|
2629
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2630
|
+
method: "typia.assert",
|
|
2631
|
+
path: _path + ".description",
|
|
2632
|
+
expected: "(string | undefined)",
|
|
2633
|
+
value: input.description
|
|
2634
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2635
|
+
method: "typia.assert",
|
|
2636
|
+
path: _path + ".deprecated",
|
|
2637
|
+
expected: "(boolean | undefined)",
|
|
2638
|
+
value: input.deprecated
|
|
2639
|
+
}, _errorFactory)) && true; const _ao14 = (input, _path, _exceptionable = true) => ((Array.isArray(input.allOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2640
|
+
method: "typia.assert",
|
|
2641
|
+
path: _path + ".allOf",
|
|
2642
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
2643
|
+
value: input.allOf
|
|
2644
|
+
}, _errorFactory)) && input.allOf.every((elem, _index37) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2645
|
+
method: "typia.assert",
|
|
2646
|
+
path: _path + ".allOf[" + _index37 + "]",
|
|
2647
|
+
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)",
|
|
2648
|
+
value: elem
|
|
2649
|
+
}, _errorFactory)) && _au0(elem, _path + ".allOf[" + _index37 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2650
|
+
method: "typia.assert",
|
|
2651
|
+
path: _path + ".allOf[" + _index37 + "]",
|
|
2652
|
+
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)",
|
|
2653
|
+
value: elem
|
|
2654
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2655
|
+
method: "typia.assert",
|
|
2656
|
+
path: _path + ".allOf",
|
|
2657
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
2658
|
+
value: input.allOf
|
|
2659
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2660
|
+
method: "typia.assert",
|
|
2661
|
+
path: _path + ".examples",
|
|
2662
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2663
|
+
value: input.examples
|
|
2664
|
+
}, _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, {
|
|
2665
|
+
method: "typia.assert",
|
|
2666
|
+
path: _path + ".examples",
|
|
2667
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2668
|
+
value: input.examples
|
|
2669
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2670
|
+
method: "typia.assert",
|
|
2671
|
+
path: _path + ".examples",
|
|
2672
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2673
|
+
value: input.examples
|
|
2674
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2675
|
+
method: "typia.assert",
|
|
2676
|
+
path: _path + ".title",
|
|
2677
|
+
expected: "(string | undefined)",
|
|
2678
|
+
value: input.title
|
|
2679
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2680
|
+
method: "typia.assert",
|
|
2681
|
+
path: _path + ".description",
|
|
2682
|
+
expected: "(string | undefined)",
|
|
2683
|
+
value: input.description
|
|
2684
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2685
|
+
method: "typia.assert",
|
|
2686
|
+
path: _path + ".deprecated",
|
|
2687
|
+
expected: "(boolean | undefined)",
|
|
2688
|
+
value: input.deprecated
|
|
2689
|
+
}, _errorFactory)) && true; const _ao15 = (input, _path, _exceptionable = true) => ((Array.isArray(input.anyOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2690
|
+
method: "typia.assert",
|
|
2691
|
+
path: _path + ".anyOf",
|
|
2692
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
2693
|
+
value: input.anyOf
|
|
2694
|
+
}, _errorFactory)) && input.anyOf.every((elem, _index38) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2695
|
+
method: "typia.assert",
|
|
2696
|
+
path: _path + ".anyOf[" + _index38 + "]",
|
|
2697
|
+
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)",
|
|
2698
|
+
value: elem
|
|
2699
|
+
}, _errorFactory)) && _au0(elem, _path + ".anyOf[" + _index38 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2700
|
+
method: "typia.assert",
|
|
2701
|
+
path: _path + ".anyOf[" + _index38 + "]",
|
|
2702
|
+
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)",
|
|
2703
|
+
value: elem
|
|
2704
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2705
|
+
method: "typia.assert",
|
|
2706
|
+
path: _path + ".anyOf",
|
|
2707
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
2708
|
+
value: input.anyOf
|
|
2709
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2710
|
+
method: "typia.assert",
|
|
2711
|
+
path: _path + ".examples",
|
|
2712
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2713
|
+
value: input.examples
|
|
2714
|
+
}, _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, {
|
|
2715
|
+
method: "typia.assert",
|
|
2716
|
+
path: _path + ".examples",
|
|
2717
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2718
|
+
value: input.examples
|
|
2719
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2720
|
+
method: "typia.assert",
|
|
2721
|
+
path: _path + ".examples",
|
|
2722
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2723
|
+
value: input.examples
|
|
2724
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2725
|
+
method: "typia.assert",
|
|
2726
|
+
path: _path + ".title",
|
|
2727
|
+
expected: "(string | undefined)",
|
|
2728
|
+
value: input.title
|
|
2729
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2730
|
+
method: "typia.assert",
|
|
2731
|
+
path: _path + ".description",
|
|
2732
|
+
expected: "(string | undefined)",
|
|
2733
|
+
value: input.description
|
|
2734
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2735
|
+
method: "typia.assert",
|
|
2736
|
+
path: _path + ".deprecated",
|
|
2737
|
+
expected: "(boolean | undefined)",
|
|
2738
|
+
value: input.deprecated
|
|
2739
|
+
}, _errorFactory)) && true; const _ao16 = (input, _path, _exceptionable = true) => ((Array.isArray(input.oneOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2740
|
+
method: "typia.assert",
|
|
2741
|
+
path: _path + ".oneOf",
|
|
2742
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
2743
|
+
value: input.oneOf
|
|
2744
|
+
}, _errorFactory)) && input.oneOf.every((elem, _index39) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2745
|
+
method: "typia.assert",
|
|
2746
|
+
path: _path + ".oneOf[" + _index39 + "]",
|
|
2747
|
+
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)",
|
|
2748
|
+
value: elem
|
|
2749
|
+
}, _errorFactory)) && _au0(elem, _path + ".oneOf[" + _index39 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2750
|
+
method: "typia.assert",
|
|
2751
|
+
path: _path + ".oneOf[" + _index39 + "]",
|
|
2752
|
+
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)",
|
|
2753
|
+
value: elem
|
|
2754
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2755
|
+
method: "typia.assert",
|
|
2756
|
+
path: _path + ".oneOf",
|
|
2757
|
+
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
|
2758
|
+
value: input.oneOf
|
|
2759
|
+
}, _errorFactory)) && (undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2760
|
+
method: "typia.assert",
|
|
2761
|
+
path: _path + ".discriminator",
|
|
2762
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
2763
|
+
value: input.discriminator
|
|
2764
|
+
}, _errorFactory)) && _ao17(input.discriminator, _path + ".discriminator", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2765
|
+
method: "typia.assert",
|
|
2766
|
+
path: _path + ".discriminator",
|
|
2767
|
+
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
2768
|
+
value: input.discriminator
|
|
2769
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2770
|
+
method: "typia.assert",
|
|
2771
|
+
path: _path + ".examples",
|
|
2772
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2773
|
+
value: input.examples
|
|
2774
|
+
}, _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, {
|
|
2775
|
+
method: "typia.assert",
|
|
2776
|
+
path: _path + ".examples",
|
|
2777
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2778
|
+
value: input.examples
|
|
2779
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2780
|
+
method: "typia.assert",
|
|
2781
|
+
path: _path + ".examples",
|
|
2782
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2783
|
+
value: input.examples
|
|
2784
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2785
|
+
method: "typia.assert",
|
|
2786
|
+
path: _path + ".title",
|
|
2787
|
+
expected: "(string | undefined)",
|
|
2788
|
+
value: input.title
|
|
2789
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2790
|
+
method: "typia.assert",
|
|
2791
|
+
path: _path + ".description",
|
|
2792
|
+
expected: "(string | undefined)",
|
|
2793
|
+
value: input.description
|
|
2794
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2795
|
+
method: "typia.assert",
|
|
2796
|
+
path: _path + ".deprecated",
|
|
2797
|
+
expected: "(boolean | undefined)",
|
|
2798
|
+
value: input.deprecated
|
|
2799
|
+
}, _errorFactory)) && true; const _ao17 = (input, _path, _exceptionable = true) => ("string" === typeof input.propertyName || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2800
|
+
method: "typia.assert",
|
|
2801
|
+
path: _path + ".propertyName",
|
|
2802
|
+
expected: "string",
|
|
2803
|
+
value: input.propertyName
|
|
2804
|
+
}, _errorFactory)) && (undefined === input.mapping || ("object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2805
|
+
method: "typia.assert",
|
|
2806
|
+
path: _path + ".mapping",
|
|
2807
|
+
expected: "(Record<string, string> | undefined)",
|
|
2808
|
+
value: input.mapping
|
|
2809
|
+
}, _errorFactory)) && _ao18(input.mapping, _path + ".mapping", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2810
|
+
method: "typia.assert",
|
|
2811
|
+
path: _path + ".mapping",
|
|
2812
|
+
expected: "(Record<string, string> | undefined)",
|
|
2813
|
+
value: input.mapping
|
|
2814
|
+
}, _errorFactory)); const _ao18 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
2815
|
+
const value = input[key];
|
|
2816
|
+
if (undefined === value)
|
|
2817
|
+
return true;
|
|
2818
|
+
return "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2819
|
+
method: "typia.assert",
|
|
2820
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2821
|
+
expected: "string",
|
|
2822
|
+
value: value
|
|
2823
|
+
}, _errorFactory);
|
|
2824
|
+
}); const _ao19 = (input, _path, _exceptionable = true) => (null === input["default"] || undefined === input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2825
|
+
method: "typia.assert",
|
|
2826
|
+
path: _path + "[\"default\"]",
|
|
2827
|
+
expected: "(null | undefined)",
|
|
2828
|
+
value: input["default"]
|
|
2829
|
+
}, _errorFactory)) && ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2830
|
+
method: "typia.assert",
|
|
2831
|
+
path: _path + ".type",
|
|
2832
|
+
expected: "\"null\"",
|
|
2833
|
+
value: input.type
|
|
2834
|
+
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2835
|
+
method: "typia.assert",
|
|
2836
|
+
path: _path + ".title",
|
|
2837
|
+
expected: "(string | undefined)",
|
|
2838
|
+
value: input.title
|
|
2839
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2840
|
+
method: "typia.assert",
|
|
2841
|
+
path: _path + ".description",
|
|
2842
|
+
expected: "(string | undefined)",
|
|
2843
|
+
value: input.description
|
|
2844
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2845
|
+
method: "typia.assert",
|
|
2846
|
+
path: _path + ".deprecated",
|
|
2847
|
+
expected: "(boolean | undefined)",
|
|
2848
|
+
value: input.deprecated
|
|
2849
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2850
|
+
method: "typia.assert",
|
|
2851
|
+
path: _path + ".examples",
|
|
2852
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2853
|
+
value: input.examples
|
|
2854
|
+
}, _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, {
|
|
2855
|
+
method: "typia.assert",
|
|
2856
|
+
path: _path + ".examples",
|
|
2857
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2858
|
+
value: input.examples
|
|
2859
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2860
|
+
method: "typia.assert",
|
|
2861
|
+
path: _path + ".examples",
|
|
2862
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2863
|
+
value: input.examples
|
|
2864
|
+
}, _errorFactory))); const _ao20 = (input, _path, _exceptionable = true) => (null !== input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2865
|
+
method: "typia.assert",
|
|
2866
|
+
path: _path + ".type",
|
|
2867
|
+
expected: "undefined",
|
|
2868
|
+
value: input.type
|
|
2869
|
+
}, _errorFactory)) && (undefined === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2870
|
+
method: "typia.assert",
|
|
2871
|
+
path: _path + ".type",
|
|
2872
|
+
expected: "undefined",
|
|
2873
|
+
value: input.type
|
|
2874
|
+
}, _errorFactory)) && true && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2875
|
+
method: "typia.assert",
|
|
2876
|
+
path: _path + ".title",
|
|
2877
|
+
expected: "(string | undefined)",
|
|
2878
|
+
value: input.title
|
|
2879
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2880
|
+
method: "typia.assert",
|
|
2881
|
+
path: _path + ".description",
|
|
2882
|
+
expected: "(string | undefined)",
|
|
2883
|
+
value: input.description
|
|
2884
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2885
|
+
method: "typia.assert",
|
|
2886
|
+
path: _path + ".deprecated",
|
|
2887
|
+
expected: "(boolean | undefined)",
|
|
2888
|
+
value: input.deprecated
|
|
2889
|
+
}, _errorFactory)) && true && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2890
|
+
method: "typia.assert",
|
|
2891
|
+
path: _path + ".examples",
|
|
2892
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2893
|
+
value: input.examples
|
|
2894
|
+
}, _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, {
|
|
2895
|
+
method: "typia.assert",
|
|
2896
|
+
path: _path + ".examples",
|
|
2897
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2898
|
+
value: input.examples
|
|
2899
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2900
|
+
method: "typia.assert",
|
|
2901
|
+
path: _path + ".examples",
|
|
2902
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2903
|
+
value: input.examples
|
|
2904
|
+
}, _errorFactory))); const _ao21 = (input, _path, _exceptionable = true) => ("string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2905
|
+
method: "typia.assert",
|
|
2906
|
+
path: _path + ".$ref",
|
|
2907
|
+
expected: "string",
|
|
2908
|
+
value: input.$ref
|
|
2909
|
+
}, _errorFactory)) && ((null !== input.examples || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2910
|
+
method: "typia.assert",
|
|
2911
|
+
path: _path + ".examples",
|
|
2912
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2913
|
+
value: input.examples
|
|
2914
|
+
}, _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, {
|
|
2915
|
+
method: "typia.assert",
|
|
2916
|
+
path: _path + ".examples",
|
|
2917
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2918
|
+
value: input.examples
|
|
2919
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2920
|
+
method: "typia.assert",
|
|
2921
|
+
path: _path + ".examples",
|
|
2922
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
|
2923
|
+
value: input.examples
|
|
2924
|
+
}, _errorFactory))) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2925
|
+
method: "typia.assert",
|
|
2926
|
+
path: _path + ".title",
|
|
2927
|
+
expected: "(string | undefined)",
|
|
2928
|
+
value: input.title
|
|
2929
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2930
|
+
method: "typia.assert",
|
|
2931
|
+
path: _path + ".description",
|
|
2932
|
+
expected: "(string | undefined)",
|
|
2933
|
+
value: input.description
|
|
2934
|
+
}, _errorFactory)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2935
|
+
method: "typia.assert",
|
|
2936
|
+
path: _path + ".deprecated",
|
|
2937
|
+
expected: "(boolean | undefined)",
|
|
2938
|
+
value: input.deprecated
|
|
2939
|
+
}, _errorFactory)) && true && (undefined === input.$defs || ("object" === typeof input.$defs && null !== input.$defs && false === Array.isArray(input.$defs) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2940
|
+
method: "typia.assert",
|
|
2941
|
+
path: _path + ".$defs",
|
|
2942
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
2943
|
+
value: input.$defs
|
|
2944
|
+
}, _errorFactory)) && _ao2(input.$defs, _path + ".$defs", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2945
|
+
method: "typia.assert",
|
|
2946
|
+
path: _path + ".$defs",
|
|
2947
|
+
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
|
2948
|
+
value: input.$defs
|
|
2949
|
+
}, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
|
|
2950
|
+
if ("object" === input.type)
|
|
2951
|
+
return _ao3(input, _path, true && _exceptionable);
|
|
2952
|
+
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))
|
|
2953
|
+
return _ao4(input, _path, true && _exceptionable);
|
|
2954
|
+
else if ("boolean" === input.type)
|
|
2955
|
+
return _ao7(input, _path, true && _exceptionable);
|
|
2956
|
+
else if ("number" === input.type)
|
|
2957
|
+
return _ao9(input, _path, true && _exceptionable);
|
|
2958
|
+
else if ("integer" === input.type)
|
|
2959
|
+
return _ao8(input, _path, true && _exceptionable);
|
|
2960
|
+
else if ("string" === input.type)
|
|
2961
|
+
return _ao10(input, _path, true && _exceptionable);
|
|
2962
|
+
else if ("array" === input.type)
|
|
2963
|
+
return _ao11(input, _path, true && _exceptionable);
|
|
2964
|
+
else if (undefined !== input.$recursiveRef)
|
|
2965
|
+
return _ao13(input, _path, true && _exceptionable);
|
|
2966
|
+
else if ("null" === input.type)
|
|
2967
|
+
return _ao19(input, _path, true && _exceptionable);
|
|
2968
|
+
else
|
|
2969
|
+
return (() => {
|
|
2970
|
+
if (undefined !== input["const"])
|
|
2971
|
+
return _ao6(input, _path, true && _exceptionable);
|
|
2972
|
+
else if (undefined !== input.$ref)
|
|
2973
|
+
return _ao12(input, _path, true && _exceptionable);
|
|
2974
|
+
else if (undefined !== input.allOf)
|
|
2975
|
+
return _ao14(input, _path, true && _exceptionable);
|
|
2976
|
+
else if (undefined !== input.anyOf)
|
|
2977
|
+
return _ao15(input, _path, true && _exceptionable);
|
|
2978
|
+
else if (undefined !== input.oneOf)
|
|
2979
|
+
return _ao16(input, _path, true && _exceptionable);
|
|
2980
|
+
else
|
|
2981
|
+
return _ao20(input, _path, true && _exceptionable);
|
|
2982
|
+
})();
|
|
2983
|
+
})(); const _au1 = (input, _path, _exceptionable = true) => (() => {
|
|
2984
|
+
if (undefined !== input.type)
|
|
2985
|
+
return _ao1(input, _path, true && _exceptionable);
|
|
2986
|
+
else if (undefined !== input.$ref)
|
|
2987
|
+
return _ao21(input, _path, true && _exceptionable);
|
|
2988
|
+
else
|
|
2989
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
2990
|
+
method: "typia.assert",
|
|
2991
|
+
path: _path,
|
|
2992
|
+
expected: "(IObject & { $defs?: Record<string, IJsonSchema> | undefined; } | IReference<string> & { $defs?: Record<string, IJsonSchema> | undefined; })",
|
|
2993
|
+
value: input
|
|
2994
|
+
}, _errorFactory);
|
|
2995
|
+
})(); const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && _io0(elem)); let _errorFactory; return (input, errorFactory) => {
|
|
2996
|
+
if (false === __is(input)) {
|
|
2997
|
+
_errorFactory = errorFactory;
|
|
2998
|
+
((input, _path, _exceptionable = true) => (Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
2999
|
+
method: "typia.assert",
|
|
3000
|
+
path: _path + "",
|
|
3001
|
+
expected: "Array<IMcpTool>",
|
|
3002
|
+
value: input
|
|
3003
|
+
}, _errorFactory)) && input.every((elem, _index21) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(true, {
|
|
3004
|
+
method: "typia.assert",
|
|
3005
|
+
path: _path + "[" + _index21 + "]",
|
|
3006
|
+
expected: "IMcpTool",
|
|
3007
|
+
value: elem
|
|
3008
|
+
}, _errorFactory)) && _ao0(elem, _path + "[" + _index21 + "]", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
3009
|
+
method: "typia.assert",
|
|
3010
|
+
path: _path + "[" + _index21 + "]",
|
|
3011
|
+
expected: "IMcpTool",
|
|
3012
|
+
value: elem
|
|
3013
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(true, {
|
|
3014
|
+
method: "typia.assert",
|
|
3015
|
+
path: _path + "",
|
|
3016
|
+
expected: "Array<IMcpTool>",
|
|
3017
|
+
value: input
|
|
3018
|
+
}, _errorFactory))(input, "$input", true);
|
|
3019
|
+
}
|
|
3020
|
+
return input;
|
|
3021
|
+
}; })()(tools),
|
|
3022
|
+
});
|
|
3023
|
+
return {
|
|
3024
|
+
success: true,
|
|
3025
|
+
data: {
|
|
3026
|
+
protocol: "mcp",
|
|
3027
|
+
name: props.name,
|
|
3028
|
+
client: props.client,
|
|
3029
|
+
application,
|
|
3030
|
+
},
|
|
3031
|
+
};
|
|
3032
|
+
});
|
|
3033
|
+
}
|
|
3034
|
+
//# sourceMappingURL=validateMcpController.js.map
|