@nestia/migrate 11.0.0-dev.20260316 → 11.0.1
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/LICENSE +21 -21
- package/README.md +93 -93
- package/lib/NestiaMigrateApplication.js +341 -341
- package/lib/bundles/NEST_TEMPLATE.js +48 -48
- package/lib/bundles/NEST_TEMPLATE.js.map +1 -1
- package/lib/bundles/SDK_TEMPLATE.js +21 -21
- package/lib/bundles/SDK_TEMPLATE.js.map +1 -1
- package/lib/executable/migrate.js +0 -0
- package/lib/index.mjs +469 -469
- package/lib/index.mjs.map +1 -1
- package/package.json +10 -8
- package/src/NestiaMigrateApplication.ts +168 -168
- package/src/analyzers/NestiaMigrateControllerAnalyzer.ts +51 -51
- package/src/bundles/NEST_TEMPLATE.ts +48 -48
- package/src/bundles/SDK_TEMPLATE.ts +21 -21
- package/src/executable/NestiaMigrateCommander.ts +104 -104
- package/src/executable/NestiaMigrateInquirer.ts +106 -106
- package/src/executable/bundle.js +129 -125
- package/src/executable/migrate.ts +0 -0
- package/src/factories/TypeLiteralFactory.ts +57 -57
- package/src/module.ts +7 -7
- package/src/programmers/NestiaMigrateApiFileProgrammer.ts +55 -55
- package/src/programmers/NestiaMigrateApiFunctionProgrammer.ts +347 -347
- package/src/programmers/NestiaMigrateApiNamespaceProgrammer.ts +517 -517
- package/src/programmers/NestiaMigrateApiSimulationProgrammer.ts +308 -308
- package/src/programmers/NestiaMigrateApiStartProgrammer.ts +197 -197
- package/src/programmers/NestiaMigrateDtoProgrammer.ts +98 -98
- package/src/programmers/NestiaMigrateE2eFileProgrammer.ts +153 -153
- package/src/programmers/NestiaMigrateE2eProgrammer.ts +48 -48
- package/src/programmers/NestiaMigrateImportProgrammer.ts +118 -118
- package/src/programmers/NestiaMigrateNestControllerProgrammer.ts +69 -69
- package/src/programmers/NestiaMigrateNestMethodProgrammer.ts +409 -409
- package/src/programmers/NestiaMigrateSchemaProgrammer.ts +465 -465
- package/src/programmers/index.ts +15 -15
- package/src/structures/INestiaMigrateContext.ts +9 -9
- package/src/structures/INestiaMigrateController.ts +8 -8
- package/src/structures/INestiaMigrateDto.ts +8 -8
- package/src/structures/INestiaMigrateProgram.ts +11 -11
- package/src/structures/index.ts +4 -4
- package/src/utils/FilePrinter.ts +49 -49
- package/src/utils/StringUtil.ts +114 -114
package/lib/index.mjs
CHANGED
|
@@ -38,78 +38,78 @@ import { createPromptModule } from "inquirer";
|
|
|
38
38
|
|
|
39
39
|
const NEST_TEMPLATE = {
|
|
40
40
|
".env.local": "API_PORT=37001",
|
|
41
|
-
".eslintrc.cjs": 'module.exports = {\
|
|
42
|
-
".github/workflows/build.yml": "name: build\
|
|
43
|
-
".github/workflows/typos.yml": "name: typos\
|
|
44
|
-
".gitignore": ".git/\
|
|
45
|
-
".prettierignore": "dist\
|
|
46
|
-
".vscode/launch.json": '{\
|
|
47
|
-
".vscode/settings.json": '{\
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"packages/api
|
|
55
|
-
"packages/api
|
|
56
|
-
"packages/api/
|
|
57
|
-
"packages/api/README.md": "# SDK Library\
|
|
58
|
-
"packages/api/
|
|
59
|
-
"packages/api/tsconfig.json": '{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n /* Language and Environment */\r\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n "lib": [\r\n "DOM",\r\n "ES2015"\r\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\r\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n // "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n /* Emit */\r\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n {\r\n "transform": "typia/lib/transform"\r\n }\r\n ],\r\n "strictNullChecks": true\r\n },\r\n "include": [\r\n "../../src/api"\r\n ]\r\n}',
|
|
60
|
-
"prettier.config.js": 'module.exports = {\r\n // DEFAULT CONFIGURATIONS\r\n parser: "typescript",\r\n printWidth: 80,\r\n semi: true,\r\n tabWidth: 2,\r\n trailingComma: "all",\r\n\r\n // PLUG-IN CONFIGURATIONS\r\n plugins: ["@trivago/prettier-plugin-sort-imports"],\r\n importOrder: [\r\n "<THIRD_PARTY_MODULES>",\r\n "^@ORGANIZATION/PROJECT-api(.*)$",\r\n "^[./]",\r\n ],\r\n importOrderSeparation: true,\r\n importOrderSortSpecifiers: true,\r\n importOrderParserPlugins: ["decorators-legacy", "typescript"],\r\n};\r\n',
|
|
61
|
-
"
|
|
62
|
-
"src/
|
|
63
|
-
"src/
|
|
64
|
-
"src/
|
|
65
|
-
"src/api/
|
|
66
|
-
"src/api/
|
|
67
|
-
"src/api/
|
|
68
|
-
"src/api/
|
|
69
|
-
"src/api/
|
|
70
|
-
"src/api/
|
|
71
|
-
"src/
|
|
72
|
-
"src/
|
|
73
|
-
"src/
|
|
74
|
-
"src/
|
|
75
|
-
"src/
|
|
76
|
-
"src/utils/ErrorUtil.ts": 'import serializeError = require("serialize-error");\
|
|
77
|
-
"src/utils/MapUtil.ts": "export namespace MapUtil {\
|
|
78
|
-
"test/benchmark/index.ts": 'import { DynamicBenchmarker } from "@nestia/benchmark";\
|
|
79
|
-
"test/benchmark/servant.ts": 'import { DynamicBenchmarker } from "@nestia/benchmark";\
|
|
80
|
-
"test/helpers/ArgumentParser.ts": 'import commander from "commander";\
|
|
81
|
-
"test/helpers/TestAutomation.ts": 'import { DynamicExecutor } from "@nestia/e2e";\
|
|
82
|
-
"test/helpers/TestAutomationStdio.ts": 'import { DynamicExecutor } from "@nestia/e2e";\
|
|
83
|
-
"test/index.ts": 'import { DynamicExecutor } from "@nestia/e2e";\
|
|
84
|
-
"test/tsconfig.json": '{\
|
|
85
|
-
"test/webpack.ts": 'import { DynamicExecutor } from "@nestia/e2e";\
|
|
86
|
-
"tsconfig.json": '{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n\r\n /* Language and Environment */\r\n "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n "lib": [\r\n "DOM",\r\n "ESNext",\r\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */\r\n // "jsx": "preserve", /* Specify what JSX code is generated. */\r\n "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */\r\n // "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["./src/api/*"],\r\n "@ORGANIZATION/PROJECT-api": ["./src/api"],\r\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n // "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\r\n\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n\r\n /* Emit */\r\n // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */\r\n // "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */\r\n // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */\r\n // "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */\r\n // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */\r\n "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */\r\n // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */\r\n\r\n /* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */\r\n // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n { "transform": "typescript-transform-paths" },\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "@nestia/core/lib/transform" },\r\n { "transform": "@nestia/sdk/lib/transform" },\r\n ]\r\n },\r\n "include": [\r\n "src"\r\n ],\r\n "exclude": [\r\n "node_modules",\r\n "packages",\r\n ]\r\n}\r\n',
|
|
87
|
-
"typos.toml": '[default]\
|
|
88
|
-
"webpack.config.js": 'const path = require("path");\
|
|
41
|
+
".eslintrc.cjs": 'module.exports = {\n root: true,\n plugins: ["@typescript-eslint", "deprecation"],\n extends: ["plugin:@typescript-eslint/recommended"],\n parser: "@typescript-eslint/parser",\n parserOptions: {\n project: ["tsconfig.json", "test/tsconfig.json"],\n },\n overrides: [\n {\n files: ["src/**/*.ts", "test/**/*.ts"],\n rules: {\n "@typescript-eslint/consistent-type-definitions": "off",\n "@typescript-eslint/no-empty-function": "off",\n "@typescript-eslint/no-empty-interface": "off",\n "@typescript-eslint/no-explicit-any": "off",\n "@typescript-eslint/no-inferrable-types": "off",\n "@typescript-eslint/no-namespace": "off",\n "@typescript-eslint/no-non-null-assertion": "off",\n "@typescript-eslint/no-unused-expressions": "off",\n "@typescript-eslint/no-unused-vars": "off",\n "@typescript-eslint/no-var-requires": "off",\n "@typescript-eslint/no-floating-promises": "error",\n "@typescript-eslint/no-require-imports": "off",\n "@typescript-eslint/no-empty-object-type": "off",\n },\n },\n ],\n};\n',
|
|
42
|
+
".github/workflows/build.yml": "name: build\non:\n pull_request:\n paths:\n - 'src/**'\n - 'test/**'\n - 'package.json'\njobs:\n Ubuntu:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: 20.x\n - uses: pnpm/action-setup@v4\n with:\n version: 8\n \n - name: Install Backend-Server\n run: pnpm install\n\n - name: Build Swagger\n run: npm run build:swagger\n\n - name: Build SDK\n run: npm run build:sdk\n\n - name: Compile Backend-Server\n run: npm run build\n\n - name: Run Test Program\n run: npm run test -- --simultaneous 16\n\n - name: EsLint\n run: npm run eslint\n",
|
|
43
|
+
".github/workflows/typos.yml": "name: typos\non:\n pull_request:\n\njobs:\n typos:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout Actions Repository\n uses: actions/checkout@v4\n\n - uses: crate-ci/typos@master\n with:\n config: ./typos.toml\n",
|
|
44
|
+
".gitignore": ".git/\nbin/\ndist/\nlib/\nnode_modules/\npackages/api/lib/\n\n.env\npackage-lock.json\npnpm-lock.yaml",
|
|
45
|
+
".prettierignore": "dist\nbin\nnode_modules\npackages\nsrc/api/functional\nsrc/api/utils/NestiaSimulator.ts\nREADME.md\ntsconfig.json",
|
|
46
|
+
".vscode/launch.json": '{\n // Use IntelliSense to learn about possible Node.js debug attributes.\n // Hover to view descriptions of existing attributes.\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\n "version": "0.2.0",\n "configurations": [\n {\n "type": "node",\n "request": "launch",\n "name": "Backend Test",\n "program": "${workspaceRoot}/test/index.ts",\n "cwd": "${workspaceRoot}",\n "args": [\n // //----\n // // Not possible to reset DB in debugging mode\n // //\n // // Therefore, if you need DB reset, then do it \n // // through `npm run reset-for-debugging` command\n // //----\n // "--reset", "false",\n // "--mode", "local",\n \n //----\n // You can run specific test functions\n //\n // If you want to include or exclude multiple words,\n // then separate them with space character\n //----\n // "--include", "some-words-to-include",\n // "--exclude", "some-word another-word",\n ],\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\n }\n]\n}',
|
|
47
|
+
".vscode/settings.json": '{\n "editor.tabSize": 2,\n "editor.formatOnSave": true,\n "[javascript][typescript]": {\n "editor.defaultFormatter": "esbenp.prettier-vscode",\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n }\n}',
|
|
48
|
+
LICENSE: 'MIT License\n\nCopyright (c) 2022 Jeongho Nam\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n',
|
|
49
|
+
"README.md": '# Nestia Template\n## Outline\n[](https://github.com/samchon/nestia-start/actions?query=workflow%3Abuild)\n\nA template repository for backend projects using [nestia](https://github.com/samchon/nestia).\n\nYou can create a new project from this boilerplate by running below command:\n\n```bash\nnpx nestia start <directory>\n```\n\nFor reference, this is a minimal boilerplate project concentrating only on [nestia](https://github.com/samchon/nestia) SDK generation. \n\nIf you wanna much detailed boilerplate project, visit [`@samchon/backend`](https://github.com/samchon/backend).\n\n\n\n\n## Directories and Files\nThis template project has categorized directories like below.\n\nAs you can see from the below, all of the Backend source files are placed into the [src](src/) directory. When you build the TypeScript source files, compiled files would be placed into the `lib` directory following the [tsconfig.json](tsconfig.json) configuration. Otherwise you build client [SDK](#32-sdk) library for npm publishing and their compiled files would be placed into the [packages](packages) directory.\n\n - [packages/api/](packages/api): SDK module built by `npm run build:api`\n - [src/](src): Backend source directory\n - [src/api/](src/api/): Client SDK that would be published to the `@ORGANIZATION/PROJECT-api`\n - [**src/api/functional/**](src/api/functional/): API functions generated by the [`nestia`](https://github.com/samchon/nestia)\n - [**src/api/structures/**](src/api/structures/): DTO structures\n - [src/controllers/](src/controllers/): Controller classes of the Main Program\n - [**test/**](test): Test Automation Program\n - [nestia.config.ts](nestia.config.ts): Configuration file of [`nestia`](https://github.com/samchon/nestia)\n - [package.json](package.json): NPM configuration\n - [tsconfig.json](tsconfig.json): TypeScript configuration for the main program\n\n\n\n\n## NPM Run Commands\nList of the run commands defined in the [package.json](package.json) are like below:\n\n - Test\n - **`test`**: Run test automation program\n - `benchmark`: Run performance benchmark program\n - Build\n - `build`: Build everything\n - `build:main`: Build main program (`src` directory)\n - `build:test` Build test automation program (`test` directory)\n - `build:sdk`: Build SDK into main program only\n - `build:swagger`: Build Swagger Documents\n - **`dev`**: Incremental build for development (test program)\n - Deploy\n - `package:api`: Build and deploy the SDK library to the NPM\n - `start`: Start the backend server\n - `start:dev`: Start the backend server with incremental build and reload\n - Webpack\n - `webpack`: Run webpack bundler\n - `webpack:start`: Start the backend server built by webpack\n - `webpack:test`: Run test program to the webpack built\n\n\n\n\n## Specialization\nTransform this template project to be yours.\n\nWhen you\'ve created a new backend project through this template project, you can specialize it to be suitable for you by changing some words. Replace below words through IDE specific function like `Edit > Replace in Files` (*Ctrl + Shift + H*), who\'ve been supported by the VSCode.\n\n| Before | After\n|-----------------|----------------------------------------\n| ORGANIZATION | Your account or corporation name\n| PROJECT | Your own project name\n| AUTHOR | Author name\n| https://github.com/samchon/nestia-start | Your repository URL\n\n\n\n\n## Test Driven Development\nWith [nestia](https://github.com/samchon/nestia) helps to accomplish TDD (Test Driven Development). \n\nJust define DTOs and API controllers\' methods (only declarations) first. After the definitions, and build SDK (Software Development Kit) through [nestia](https://github.com/samchon/nestia) (`npm run build:sdk`). After buildling those SDK, develop test automation program using the SDK, following use-case scenarios in the framework of client side.\n\nDuring the test automation program development, you can find that which API is miss-designed or which requirement analysis is not exact. Development of the main program must be the last step after such validation process during TDD.\n\n> Visit the [samchon/backend](https://github.com/samchon/backend), then you may find much detailed story about this TDD.\n>\n> 1. Definitions\n> 2. SDK\n> 3. Test Automation Program\n> 4. Main Program\n\n```typescript\nimport {\n ArrayUtil,\n GaffComparator,\n RandomGenerator,\n TestValidator,\n} from "@nestia/e2e";\n\nimport api from "@ORGANIZATION/PROJECT-api/lib/index";\nimport { IBbsArticle } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle";\nimport { IPage } from "@ORGANIZATION/PROJECT-api/lib/structures/common/IPage";\n\nexport async function test_api_bbs_article_index_sort(\n connection: api.IConnection,\n): Promise<void> {\n // GENERATE 100 ARTICLES\n const section: string = "general";\n await ArrayUtil.asyncRepeat(100, () =>\n api.functional.bbs.articles.create(connection, {\n section,\n body: {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(),\n body: RandomGenerator.content(),\n format: "txt",\n files: [],\n password: RandomGenerator.alphabets(8),\n },\n }),\n );\n\n // PREPARE VALIDATOR\n const validator = TestValidator.sort(\n "BbsArticleProvider.index()",\n async (sort: IPage.Sort<IBbsArticle.IRequest.SortableColumns>) => {\n const page: IPage<IBbsArticle.ISummary> =\n await api.functional.bbs.articles.index(connection, {\n section,\n body: {\n limit: 100,\n sort,\n },\n });\n return page.data;\n },\n );\n\n // DO VALIDATE\n const components = [\n validator("created_at")(GaffComparator.dates((x) => x.created_at)),\n validator("updated_at")(GaffComparator.dates((x) => x.updated_at)),\n validator("title")(GaffComparator.strings((x) => x.title)),\n validator("writer")(GaffComparator.strings((x) => x.writer)),\n validator(\n "writer",\n "title",\n )(GaffComparator.strings((x) => [x.writer, x.title])),\n ];\n for (const comp of components) {\n await comp("+", false);\n await comp("-", false);\n }\n}\n```\n\nFor reference, if you run `npm run benchmark` command, your test functions defined in the [test/features/api](test/features/api) directory would be utilized for performance benchmarking. If you want to see the performance bench result earlier, visit below link please:\n\n - [docs/benchmarks/AMD Ryzen 9 7940HS w Radeon 780M Graphics.md](https://github.com/samchon/nestia-start/blob/master/docs/benchmarks/AMD%20Ryzen%209%207940HS%20w%20Radeon%20780M%20Graphics.md)',
|
|
50
|
+
"build/env.ts": 'import fs from "fs";\n\nif (fs.existsSync(`${__dirname}/../.env`) === false)\n fs.copyFileSync(`${__dirname}/../.env.local`, `${__dirname}/../.env`);\n',
|
|
51
|
+
"docs/benchmarks/AMD Ryzen 9 7940HS w Radeon 780M Graphics.md": '# Benchmark Report\n> Generated by [`@nestia/benchmark`](https://github.com/samchon/nestia)\n\n - Specifications\n - CPU: AMD Ryzen 9 7940HS w/ Radeon 780M Graphics \n - RAM: 31 GB\n - NodeJS Version: v20.10.0\n - Backend Server: 1 core / 1 thread\n - Arguments\n - Count: 40,000\n - Threads: 4\n - Simultaneous: 32\n - Time\n - Start: 2024-10-29T19:14:35.941Z\n - Complete: 2024-10-29T19:16:11.418Z\n - Elapsed: 95,477 ms\n\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\n----|----|----|----|----|----|----\nTotal | 41,586 | 41,586 | 69.24 | 73.05 | 5 | 546\n\n> Unit: milliseconds\n\n## Memory Consumptions\n```mermaid\nxychart-beta\n x-axis "Time (second)"\n y-axis "Memory (MB)"\n line "Resident Set Size" [122, 156, 159, 142, 154, 165, 184, 185, 187, 189, 200, 205, 209, 217, 221, 225, 229, 224, 230, 235, 242, 250, 256, 262, 267, 272, 234, 237, 249, 259, 266, 273, 285, 292, 291, 216, 225, 235, 243, 200, 208, 214, 186, 186, 171, 177, 187, 199, 185, 192, 205, 171, 180, 158, 170, 179, 163, 163, 176, 188, 193, 202, 213, 219, 230, 239, 256, 265, 283, 301, 240, 249, 257, 267, 284, 282, 290, 202, 213, 166, 178, 188, 200, 203, 208, 180, 191, 199, 175]\n line "Heap Total" [85, 116, 120, 103, 114, 124, 146, 146, 147, 148, 158, 166, 170, 176, 180, 184, 187, 185, 190, 195, 203, 211, 217, 222, 225, 229, 194, 197, 209, 218, 225, 232, 241, 249, 247, 176, 185, 194, 202, 160, 168, 173, 146, 146, 130, 136, 146, 158, 145, 151, 165, 129, 139, 116, 128, 137, 120, 123, 136, 148, 152, 161, 172, 179, 189, 198, 215, 223, 241, 257, 200, 209, 216, 227, 244, 242, 249, 163, 174, 127, 136, 147, 159, 162, 166, 138, 150, 158, 132]\n line "Heap Used + External" [69, 94, 62, 82, 88, 107, 71, 83, 93, 107, 136, 72, 76, 85, 92, 106, 139, 48, 68, 69, 86, 95, 108, 116, 140, 175, 67, 74, 88, 112, 125, 136, 142, 169, 180, 91, 104, 105, 121, 60, 71, 91, 64, 74, 86, 110, 121, 135, 76, 82, 103, 70, 93, 66, 91, 107, 76, 75, 95, 101, 115, 127, 136, 154, 165, 168, 196, 193, 214, 232, 84, 94, 101, 118, 145, 147, 149, 86, 96, 72, 90, 112, 126, 133, 132, 78, 87, 107, 88]\n line "Heap Used Only" [66, 89, 59, 78, 83, 100, 68, 79, 88, 101, 129, 68, 72, 80, 86, 100, 131, 45, 64, 65, 81, 90, 103, 110, 133, 168, 64, 71, 84, 108, 120, 130, 136, 162, 173, 88, 100, 101, 117, 58, 68, 87, 61, 71, 83, 107, 118, 130, 73, 79, 99, 67, 89, 63, 88, 103, 74, 72, 91, 98, 111, 123, 132, 149, 160, 163, 190, 187, 208, 225, 81, 90, 97, 114, 140, 143, 145, 83, 93, 70, 87, 108, 122, 130, 128, 76, 84, 104, 85]\n```\n\n> - 🟦 Resident Set Size\n> - 🟢 Heap Total\n> - 🔴 Heap Used + External\n> - 🟡 Heap Used Only\n\n## Endpoints\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\n----|----|----|----|----|----|----\nPATCH /bbs/articles/:section | 6,439 | 6,439 | 108.37 | 76.56 | 6 | 546\nPUT /bbs/articles/:section/:id | 380 | 380 | 78.52 | 69.03 | 6 | 296\nGET /bbs/articles/:section/:id | 917 | 917 | 77.65 | 69.84 | 6 | 463\nDELETE /bbs/articles/:section/:id | 201 | 201 | 73.89 | 63.55 | 7 | 307\nPOST /bbs/articles/:section | 33,649 | 33,649 | 61.39 | 70.04 | 5 | 546\n\n> Unit: milliseconds\n\n## Failures\nMethod | Path | Count | Failures\n-------|------|-------|----------',
|
|
52
|
+
"nest-cli.json": '{\n "$schema": "https://json.schemastore.org/nest-cli",\n "collection": "@nestjs/schematics",\n "sourceRoot": "src",\n "entryFile": "executable/server",\n "compilerOptions": {\n "deleteOutDir": true\n }\n}\n',
|
|
53
|
+
"nestia.config.ts": '// nestia configuration file\nimport type sdk from "@nestia/sdk";\nimport { NestFactory } from "@nestjs/core";\n\nimport { MyModule } from "./src/MyModule";\n\nconst NESTIA_CONFIG: sdk.INestiaConfig = {\n input: () => NestFactory.create(MyModule),\n output: "src/api",\n swagger: {\n output: "packages/api/swagger.json",\n servers: [\n {\n url: "http://localhost:37001",\n description: "Local Server",\n },\n ],\n beautify: true,\n },\n distribute: "packages/api",\n keyword: true,\n simulate: true,\n primitive: false,\n};\nexport default NESTIA_CONFIG;\n',
|
|
54
|
+
"package.json": '{\n "private": true,\n "name": "@ORGANIZATION/PROJECT",\n "version": "0.1.0",\n "description": "Starter kit of Nestia",\n "main": "lib/index.js",\n "scripts": {\n "benchmark": "node bin/test/benchmark",\n "test": "node bin/test",\n "test:webpack": "npm run webpack && node bin/test/webpack.js",\n "------------------------BUILDS------------------------": "",\n "build": "npm run build:sdk && npm run build:main && npm run build:test",\n "build:api": "rimraf packages/api/lib && nestia all && rimraf packages/api/lib && tsc -p packages/api/tsconfig.json && rollup -c packages/api/rollup.config.js",\n "build:main": "rimraf lib && tsc",\n "build:sdk": "rimraf src/api/functional && nestia sdk",\n "build:swagger": "npx nestia swagger",\n "build:test": "rimraf bin && tsc -p test/tsconfig.json",\n "dev": "npm run build:test -- --watch",\n "eslint": "eslint src && eslint test",\n "eslint:fix": "eslint --fix src && eslint --fix test",\n "prepare": "ts-patch install && ts-node build/env.ts",\n "prettier": "prettier src --write && prettier test --write",\n "------------------------WEBPACK------------------------": "",\n "webpack": "rimraf dist && webpack",\n "webpack:start": "cd dist && node dist/server",\n "webpack:test": "npm run webpack && node bin/test/webpack.js",\n "------------------------DEPLOYS------------------------": "",\n "package:api": "npm run build:api && cd packages/api && npm publish",\n "start": "node lib/executable/server",\n "start:dev": "nest start --watch",\n "start:swagger": "ts-node src/executable/swagger.ts"\n },\n "repository": {\n "type": "git",\n "url": "https://github.com/samchon/nestia-start"\n },\n "keywords": [\n "nestia",\n "template",\n "boilerplate"\n ],\n "author": "AUTHOR",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/samchon/nestia-start/issues"\n },\n "homepage": "https://github.com/samchon/nestia-start#readme",\n "devDependencies": {\n "@autobe/interface": "^0.10.6",\n "@nestia/benchmark": "^11.0.1",\n "@nestia/e2e": "^11.0.1",\n "@nestjs/cli": "^11.0.16",\n "@rollup/plugin-terser": "^0.4.4",\n "@rollup/plugin-typescript": "^11.1.6",\n "@trivago/prettier-plugin-sort-imports": "^4.3.0",\n "@types/cli": "^0.11.21",\n "@types/cli-progress": "^3.11.5",\n "@types/express": "^4.17.21",\n "@types/inquirer": "^8.2.5",\n "@types/node": "^18.11.0",\n "@types/uuid": "^8.3.4",\n "@typescript-eslint/eslint-plugin": "^8.1.0",\n "@typescript-eslint/parser": "^8.1.0",\n "chalk": "^4.1.2",\n "cli": "^1.0.1",\n "cli-progress": "^3.12.0",\n "copy-webpack-plugin": "^11.0.0",\n "eslint-plugin-deprecation": "^3.0.0",\n "express": "^4.18.2",\n "nestia": "^11.0.1",\n "prettier": "^3.2.4",\n "prettier-plugin-prisma": "^5.0.0",\n "rimraf": "^3.0.2",\n "rollup": "^4.18.0",\n "source-map-support": "^0.5.21",\n "swagger-ui-express": "^5.0.0",\n "ts-loader": "^9.5.1",\n "ts-node": "^10.9.1",\n "ts-patch": "^3.3.0",\n "typescript": "~5.9.3",\n "typescript-transform-paths": "^3.5.6",\n "webpack": "^5.89.0",\n "webpack-cli": "^5.1.4",\n "write-file-webpack-plugin": "^4.5.1"\n },\n "dependencies": {\n "@nestia/core": "^11.0.1",\n "@nestia/fetcher": "^11.0.1",\n "@nestia/sdk": "^11.0.1",\n "@nestjs/common": "^11.1.16",\n "@nestjs/core": "^11.1.16",\n "@nestjs/platform-express": "^11.1.16",\n "commander": "10.0.0",\n "dotenv": "^16.3.1",\n "dotenv-expand": "^10.0.0",\n "inquirer": "8.2.5",\n "serialize-error": "^4.1.0",\n "tgrid": "^1.2.1",\n "tstl": "^3.0.0",\n "typia": "^12.0.0",\n "uuid": "^9.0.0"\n },\n "stackblitz": {\n "startCommand": "npm run prepare && npm run build:test && npm run test -- --simultaneous 1"\n }\n}',
|
|
55
|
+
"packages/api/.gitignore": "lib/\nnode_modules/\n\nswagger.json\nopenai.json",
|
|
56
|
+
"packages/api/LICENSE": 'MIT License\n\nCopyright (c) 2021 ORGANIZATION\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.',
|
|
57
|
+
"packages/api/README.md": "# SDK Library\nThis is a SDK library generated by [`nestia`](https://nestia.io).\n\nWith this SDK library, you can easily and safely interact with backend server.\n\nJust import and call some API functions like gif image below:\n\n\n\n> Left is server code, and right is client code utilizing the SDK\n\n\n\n\n# What [`Nestia`](https://nestia.io) is:\n\n\n[](https://github.com/samchon/nestia/blob/master/LICENSE)\n[](https://www.npmjs.com/package/@nestia/core)\n[](https://www.npmjs.com/package/@nestia/core)\n[](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\n[](https://nestia.io/docs/)\n\nNestia is a set of helper libraries for NestJS, supporting below features:\n\n - `@nestia/core`: super-fast decorators\n - `@nestia/sdk`:\n - Swagger generator evolved than ever\n - SDK library generator for clients\n - Mockup Simulator for client applications\n - Automatic E2E test functions generator\n - `@nestia/migrate`: migration from Swagger to NestJS\n - `nestia`: just CLI (command line interface) tool\n\n> **Note**\n> \n> - **Only one line** required, with pure TypeScript type\n> - Enhance performance **30x** up\n> - Runtime validator is **20,000x faster** than `class-validator`\n> - JSON serialization is **200x faster** than `class-transformer`\n> - Software Development Kit\n> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://trpc.io/)\n> - Mockup simulator means embedded backend simulator in SDK\n> - similar with [msw](https://mswjs.io/), but fully automated",
|
|
58
|
+
"packages/api/package.json": '{\n "name": "@ORGANIZATION/PROJECT-api",\n "version": "0.1.0",\n "description": "SDK library generated by Nestia",\n "main": "lib/index.js",\n "module": "lib/index.mjs",\n "typings": "lib/index.d.ts",\n "repository": {\n "type": "git",\n "url": "https://github.com/samchon/nestia"\n },\n "author": "Jeongho Nam",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/samchon/nestia/issues"\n },\n "homepage": "https://nestia.io",\n "files": [\n "lib",\n "package.json",\n "swagger.json",\n "openai.json",\n "README.md"\n ],\n "dependencies": {\n "@nestia/fetcher": "^11.0.1",\n "tgrid": "^1.2.1",\n "typia": "^12.0.0"\n }\n}',
|
|
59
|
+
"packages/api/rollup.config.js": 'const typescript = require("@rollup/plugin-typescript");\nconst terser = require("@rollup/plugin-terser");\n\nmodule.exports = {\n input: `${__dirname}/../../src/api/index.ts`,\n output: {\n dir: `${__dirname}/lib`,\n format: "esm",\n entryFileNames: "[name].mjs",\n sourcemap: true,\n },\n plugins: [\n typescript({\n tsconfig: `${__dirname}/tsconfig.json`,\n module: "ESNext",\n target: "ESNext",\n }),\n terser({\n format: {\n comments: "some",\n beautify: true,\n ecma: "2020",\n },\n compress: false,\n mangle: false,\n module: true,\n }),\n ],\n};\n',
|
|
60
|
+
"packages/api/tsconfig.json": '{\n "compilerOptions": {\n /* Visit https://aka.ms/tsconfig to read more about this file */\n /* Projects */\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\n /* Language and Environment */\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\n "lib": [\n "DOM",\n "ES2015"\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\n /* Modules */\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\n // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\n // "resolveJsonModule": true, /* Enable importing .json files. */\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\n /* JavaScript Support */\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\n /* Emit */\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\n // "noEmit": true, /* Disable emitting files from a compilation. */\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\n /* Interop Constraints */\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\n /* Completeness */\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\n "plugins": [\n {\n "transform": "typia/lib/transform"\n }\n ],\n "strictNullChecks": true\n },\n "include": [\n "../../src/api"\n ]\n}',
|
|
61
|
+
"prettier.config.js": 'module.exports = {\n // DEFAULT CONFIGURATIONS\n parser: "typescript",\n printWidth: 80,\n semi: true,\n tabWidth: 2,\n trailingComma: "all",\n\n // PLUG-IN CONFIGURATIONS\n plugins: ["@trivago/prettier-plugin-sort-imports"],\n importOrder: [\n "<THIRD_PARTY_MODULES>",\n "^@ORGANIZATION/PROJECT-api(.*)$",\n "^[./]",\n ],\n importOrderSeparation: true,\n importOrderSortSpecifiers: true,\n importOrderParserPlugins: ["decorators-legacy", "typescript"],\n};\n',
|
|
62
|
+
"src/MyBackend.ts": 'import { WebSocketAdaptor } from "@nestia/core";\nimport { INestApplication } from "@nestjs/common";\nimport { NestFactory } from "@nestjs/core";\n\nimport { MyConfiguration } from "./MyConfiguration";\nimport { MyModule } from "./MyModule";\n\nexport class MyBackend {\n private application_?: INestApplication;\n\n public async open(): Promise<void> {\n //----\n // OPEN THE BACKEND SERVER\n //----\n // MOUNT CONTROLLERS\n this.application_ = await NestFactory.create(MyModule, { logger: false });\n await WebSocketAdaptor.upgrade(this.application_);\n\n // DO OPEN\n this.application_.enableCors();\n await this.application_.listen(MyConfiguration.API_PORT(), "0.0.0.0");\n\n //----\n // POST-PROCESSES\n //----\n // INFORM TO THE PM2\n if (process.send) process.send("ready");\n\n // WHEN KILL COMMAND COMES\n process.on("SIGINT", async () => {\n await this.close();\n process.exit(0);\n });\n }\n\n public async close(): Promise<void> {\n if (this.application_ === undefined) return;\n\n // DO CLOSE\n await this.application_.close();\n delete this.application_;\n }\n}\n',
|
|
63
|
+
"src/MyConfiguration.ts": 'import fs from "fs";\nimport path from "path";\n\nimport { MyGlobal } from "./MyGlobal";\n\nexport namespace MyConfiguration {\n export const API_PORT = () => Number(MyGlobal.env.API_PORT);\n\n export const ROOT = (() => {\n const split: string[] = __dirname.split(path.sep);\n return split.at(-1) === "src" && split.at(-2) === "bin"\n ? path.resolve(__dirname + "/../..")\n : fs.existsSync(__dirname + "/.env")\n ? __dirname\n : path.resolve(__dirname + "/..");\n })();\n}\n',
|
|
64
|
+
"src/MyGlobal.ts": 'import dotenv from "dotenv";\nimport dotenvExpand from "dotenv-expand";\nimport { Singleton } from "tstl";\nimport typia from "typia";\n\n/* eslint-disable */\nexport class MyGlobal {\n public static testing: boolean = false;\n public static get env(): MyGlobal.IEnvironments {\n return environments.get();\n }\n}\nexport namespace MyGlobal {\n export interface IEnvironments {\n API_PORT: `${number}`;\n }\n}\n\nconst environments = new Singleton(() => {\n const env = dotenv.config();\n dotenvExpand.expand(env);\n return typia.assert<MyGlobal.IEnvironments>(process.env);\n});\n',
|
|
65
|
+
"src/api/HttpError.ts": 'export { HttpError } from "@nestia/fetcher";\n',
|
|
66
|
+
"src/api/IConnection.ts": 'export type { IConnection } from "@nestia/fetcher";\n',
|
|
67
|
+
"src/api/Primitive.ts": 'export type { Primitive } from "typia";\n',
|
|
68
|
+
"src/api/Resolved.ts": 'export type { Resolved } from "typia";\n',
|
|
69
|
+
"src/api/index.ts": 'import * as api from "./module";\n\nexport * from "./module";\nexport default api;\n',
|
|
70
|
+
"src/api/module.ts": 'export type * from "./IConnection";\nexport * from "./HttpError";\n\nexport * as functional from "./functional";\n',
|
|
71
|
+
"src/api/structures/bbs/IBbsArticle.ts": 'import { tags } from "typia";\n\nimport { IAttachmentFile } from "../common/IAttachmentFile";\nimport { IPage } from "../common/IPage";\n\n/**\n * BBS article.\n */\nexport interface IBbsArticle {\n /**\n * Primary Key.\n */\n id: string & tags.Format<"uuid">;\n\n /**\n * Section code.\n */\n section: string;\n\n /**\n * Name of nickname of writer.\n */\n writer: string;\n\n /**\n * List of snapshot contents.\n *\n * Whenever updating an article, its contents would be accumulated.\n */\n snapshots: IBbsArticle.ISnapshot[];\n\n /**\n * Creation time of the article.\n */\n created_at: string & tags.Format<"date-time">;\n}\n\nexport namespace IBbsArticle {\n /**\n * Page request info with some options.\n */\n export interface IRequest extends IPage.IRequest {\n /**\n * Searching options.\n */\n search?: IRequest.ISearch;\n\n /**\n * Sorting options.\n *\n * The plus sign means ASC and minus sign means DESC.\n */\n sort?: IPage.Sort<IRequest.SortableColumns>;\n }\n export namespace IRequest {\n /**\n * Searching options.\n */\n export interface ISearch {\n writer?: string;\n title?: string;\n body?: string;\n }\n\n /**\n * List of sortable columns.\n */\n export type SortableColumns =\n | "writer"\n | "title"\n | "created_at"\n | "updated_at";\n }\n\n /**\n * Summarized info.\n */\n export interface ISummary {\n id: string;\n writer: string;\n title: string;\n created_at: string;\n updated_at: string;\n }\n\n /**\n * Content info.\n */\n export interface ISnapshot extends Omit<IUpdate, "password"> {\n /**\n * Primary key of individual content.\n */\n id: string & tags.Format<"uuid">;\n\n /**\n * Creation time of this content.\n */\n created_at: string & tags.Format<"date-time">;\n }\n\n /**\n * Store info.\n */\n export interface ICreate extends IUpdate {\n /**\n * Name or nickname of the writer.\n */\n writer: string;\n }\n\n /**\n * Update info.\n */\n export interface IUpdate {\n /**\n * Title of the article.\n */\n title: string;\n\n /**\n * Content body.\n */\n body: string;\n\n /**\n * Format of the content body.\n */\n format: "md" | "html" | "txt";\n\n /**\n * List of files (to be) attached.\n */\n files: IAttachmentFile[];\n\n /**\n * Password of the article.\n */\n password: string;\n }\n\n /**\n * Erase info.\n */\n export interface IErase {\n /**\n * Password of the article.\n */\n password: string;\n }\n}\n',
|
|
72
|
+
"src/api/structures/common/IAttachmentFile.ts": 'import { tags } from "typia";\n\nexport interface IAttachmentFile {\n name: null | (string & tags.MinLength<1> & tags.MaxLength<255>);\n extension: null | (string & tags.MinLength<1> & tags.MaxLength<8>);\n url: string & tags.Format<"url">;\n}\n',
|
|
73
|
+
"src/api/structures/common/IPage.ts": 'import { tags } from "typia";\n\n/**\n * A page.\n *\n * Collection of records with pagination indformation.\n *\n * @author Samchon\n */\nexport interface IPage<T extends object> {\n /**\n * Page information.\n */\n pagination: IPage.IPagination;\n\n /**\n * List of records.\n */\n data: T[];\n}\nexport namespace IPage {\n /**\n * Page information.\n */\n export interface IPagination {\n /**\n * Current page number.\n */\n current: number & tags.Type<"uint32">;\n\n /**\n * Limitation of records per a page.\n *\n * @default 100\n */\n limit: number & tags.Type<"uint32">;\n\n /**\n * Count of total records in database.\n */\n records: number & tags.Type<"uint32">;\n\n /**\n * Number of total pages.\n *\n * Equal to {@link records} / {@link limit} with ceiling.\n */\n pages: number & tags.Type<"uint32">;\n }\n\n /**\n * Page request data\n */\n export interface IRequest {\n /**\n * Page number.\n */\n page?: number & tags.Type<"uint32">;\n\n /**\n * Limitation of records per a page.\n */\n limit?: number & tags.Type<"uint32">;\n }\n\n /**\n * Sorting column specialization.\n *\n * The plus means ascending order and the minus means descending order.\n */\n export type Sort<Literal extends string> = Array<\n `-${Literal}` | `+${Literal}`\n >;\n}\n',
|
|
74
|
+
"src/executable/server.ts": 'import { MyBackend } from "../MyBackend";\n\nconst EXTENSION = __filename.substring(__filename.length - 2);\nif (EXTENSION === "js") require("source-map-support/register");\n\nasync function main(): Promise<void> {\n // BACKEND SEVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n\n // UNEXPECTED ERRORS\n global.process.on("uncaughtException", console.error);\n global.process.on("unhandledRejection", console.error);\n}\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n',
|
|
75
|
+
"src/executable/swagger.ts": 'import cp from "child_process";\nimport express from "express";\n\nconst execute = (command: string): void => {\n console.log(`\\n$ ${command}\\n`);\n cp.execSync(command, { stdio: "inherit" });\n};\n\nconst main = async (): Promise<void> => {\n if (!process.argv.some((str) => str === "--skipBuild"))\n execute("npm run build:swagger");\n\n const docs = await import("../../packages/api/swagger.json" as any);\n\n const app = express();\n const swaggerUi = require("swagger-ui-express");\n app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(docs));\n app.listen(37810);\n\n console.log("\\n");\n console.log("-----------------------------------------------------------");\n console.log("\\n Swagger UI Address: http://127.0.0.1:37810/api-docs \\n");\n console.log("-----------------------------------------------------------");\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n',
|
|
76
|
+
"src/utils/ErrorUtil.ts": 'import serializeError = require("serialize-error");\n\nexport namespace ErrorUtil {\n export const toJSON = (err: any): object =>\n err instanceof Object && err.toJSON instanceof Function\n ? err.toJSON()\n : serializeError(err);\n}\n',
|
|
77
|
+
"src/utils/MapUtil.ts": "export namespace MapUtil {\n export function take<Key, T>(\n dict: Map<Key, T>,\n key: Key,\n generator: () => T,\n ): T {\n const oldbie: T | undefined = dict.get(key);\n if (oldbie) return oldbie;\n\n const value: T = generator();\n dict.set(key, value);\n return value;\n }\n}\n",
|
|
78
|
+
"test/benchmark/index.ts": 'import { DynamicBenchmarker } from "@nestia/benchmark";\nimport cliProgress from "cli-progress";\nimport fs from "fs";\nimport os from "os";\nimport { IPointer } from "tstl";\n\nimport { MyBackend } from "../../src/MyBackend";\nimport { MyConfiguration } from "../../src/MyConfiguration";\nimport { MyGlobal } from "../../src/MyGlobal";\nimport { ArgumentParser } from "../helpers/ArgumentParser";\n\ninterface IOptions {\n include?: string[];\n exclude?: string[];\n count: number;\n threads: number;\n simultaneous: number;\n}\n\nconst getOptions = () =>\n ArgumentParser.parse<IOptions>(async (command, prompt, action) => {\n // command.option("--mode <string>", "target mode");\n // command.option("--reset <true|false>", "reset local DB or not");\n command.option("--include <string...>", "include feature files");\n command.option("--exclude <string...>", "exclude feature files");\n command.option("--count <number>", "number of requests to make");\n command.option("--threads <number>", "number of threads to use");\n command.option(\n "--simultaneous <number>",\n "number of simultaneous requests to make",\n );\n return action(async (options) => {\n // if (typeof options.reset === "string")\n // options.reset = options.reset === "true";\n // options.mode ??= await prompt.select("mode")("Select mode")([\n // "LOCAL",\n // "DEV",\n // "REAL",\n // ]);\n // options.reset ??= await prompt.boolean("reset")("Reset local DB");\n options.count = Number(\n options.count ??\n (await prompt.number("count")("Number of requests to make")),\n );\n options.threads = Number(\n options.threads ??\n (await prompt.number("threads")("Number of threads to use")),\n );\n options.simultaneous = Number(\n options.simultaneous ??\n (await prompt.number("simultaneous")(\n "Number of simultaneous requests to make",\n )),\n );\n return options as IOptions;\n });\n });\n\nconst main = async (): Promise<void> => {\n // CONFIGURATIONS\n const options: IOptions = await getOptions();\n MyGlobal.testing = true;\n\n // BACKEND SERVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n\n // DO BENCHMARK\n const prev: IPointer<number> = { value: 0 };\n const bar: cliProgress.SingleBar = new cliProgress.SingleBar(\n {},\n cliProgress.Presets.shades_classic,\n );\n bar.start(options.count, 0);\n\n const report: DynamicBenchmarker.IReport = await DynamicBenchmarker.master({\n servant: `${__dirname}/servant.js`,\n count: options.count,\n threads: options.threads,\n simultaneous: options.simultaneous,\n filter: (func) =>\n (!options.include?.length ||\n (options.include ?? []).some((str) => func.includes(str))) &&\n (!options.exclude?.length ||\n (options.exclude ?? []).every((str) => !func.includes(str))),\n progress: (value: number) => {\n if (value >= 100 + prev.value) {\n bar.update(value);\n prev.value = value;\n }\n },\n stdio: "ignore",\n });\n bar.stop();\n\n // DOCUMENTATION\n try {\n await fs.promises.mkdir(`${MyConfiguration.ROOT}/docs/benchmarks`, {\n recursive: true,\n });\n } catch {}\n await fs.promises.writeFile(\n `${MyConfiguration.ROOT}/docs/benchmarks/${os\n .cpus()[0]\n .model.trim()\n .split("\\\\")\n .join("")\n .split("/")\n .join("")}.md`,\n DynamicBenchmarker.markdown(report),\n "utf8",\n );\n\n // CLOSE\n await backend.close();\n};\nmain().catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\n',
|
|
79
|
+
"test/benchmark/servant.ts": 'import { DynamicBenchmarker } from "@nestia/benchmark";\n\nimport { MyConfiguration } from "../../src/MyConfiguration";\n\nDynamicBenchmarker.servant({\n connection: {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n },\n location: `${__dirname}/../features`,\n parameters: (connection) => [connection],\n prefix: "test_api_",\n}).catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\n',
|
|
80
|
+
"test/helpers/ArgumentParser.ts": 'import commander from "commander";\nimport * as inquirer from "inquirer";\n\nexport namespace ArgumentParser {\n export type Inquiry<T> = (\n command: commander.Command,\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\n ) => Promise<T>;\n\n export interface Prompt {\n select: (\n name: string,\n ) => (\n message: string,\n ) => <Choice extends string>(choices: Choice[]) => Promise<Choice>;\n boolean: (name: string) => (message: string) => Promise<boolean>;\n number: (name: string) => (message: string) => Promise<number>;\n }\n\n export const parse = async <T>(\n inquiry: (\n command: commander.Command,\n prompt: Prompt,\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\n ) => Promise<T>,\n ): Promise<T> => {\n // TAKE OPTIONS\n const action = (closure: (options: Partial<T>) => Promise<T>) =>\n new Promise<T>((resolve, reject) => {\n commander.program.action(async (options) => {\n try {\n resolve(await closure(options));\n } catch (exp) {\n reject(exp);\n }\n });\n commander.program.parseAsync().catch(reject);\n });\n\n const select =\n (name: string) =>\n (message: string) =>\n async <Choice extends string>(choices: Choice[]): Promise<Choice> =>\n (\n await inquirer.createPromptModule()({\n type: "list",\n name,\n message,\n choices,\n })\n )[name];\n const boolean = (name: string) => async (message: string) =>\n (\n await inquirer.createPromptModule()({\n type: "confirm",\n name,\n message,\n })\n )[name] as boolean;\n const number = (name: string) => async (message: string) =>\n Number(\n (\n await inquirer.createPromptModule()({\n type: "number",\n name,\n message,\n })\n )[name],\n );\n\n const output: T | Error = await (async () => {\n try {\n return await inquiry(\n commander.program,\n { select, boolean, number },\n action,\n );\n } catch (error) {\n return error as Error;\n }\n })();\n\n // RETURNS\n if (output instanceof Error) throw output;\n return output;\n };\n}\n',
|
|
81
|
+
"test/helpers/TestAutomation.ts": 'import { DynamicExecutor } from "@nestia/e2e";\nimport { sleep_for } from "tstl";\n\nimport api from "@ORGANIZATION/PROJECT-api";\n\nimport { MyConfiguration } from "../../src/MyConfiguration";\n\nexport namespace TestAutomation {\n export interface IProps<T> {\n open(options: IOptions): Promise<T>;\n close(backend: T): Promise<void>;\n onComplete(exec: DynamicExecutor.IExecution): void;\n options: IOptions;\n }\n\n export interface IOptions {\n simultaneous: number;\n include?: string[];\n exclude?: string[];\n }\n\n export const execute = async <T>(\n props: IProps<T>,\n ): Promise<DynamicExecutor.IReport> => {\n // OPEN BACKEND\n const backend: T = await props.open(props.options);\n\n // DO TEST\n const connection: api.IConnection = {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n };\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\n prefix: "test",\n location: __dirname + "/../features",\n parameters: () => [\n {\n host: connection.host,\n encryption: connection.encryption,\n },\n ],\n filter: (func) =>\n (!props.options.include?.length ||\n (props.options.include ?? []).some((str) => func.includes(str))) &&\n (!props.options.exclude?.length ||\n (props.options.exclude ?? []).every((str) => !func.includes(str))),\n onComplete: props.onComplete,\n simultaneous: props.options.simultaneous,\n extension: __filename.endsWith(".ts") ? "ts" : "js",\n });\n\n // TERMINATE - WAIT FOR BACKGROUND EVENTS\n await sleep_for(2500);\n await props.close(backend);\n return report;\n };\n}\n',
|
|
82
|
+
"test/helpers/TestAutomationStdio.ts": 'import { DynamicExecutor } from "@nestia/e2e";\nimport chalk from "chalk";\n\nimport { ArgumentParser } from "./ArgumentParser";\nimport { TestAutomation } from "./TestAutomation";\n\nexport namespace TestAutomationStdio {\n export const getOptions = () =>\n ArgumentParser.parse<TestAutomation.IOptions>(\n async (command, prompt, action) => {\n command.option(\n "--simultaneous <number>",\n "number of simultaneous requests",\n );\n command.option("--include <string...>", "include feature files");\n command.option("--exclude <string...>", "exclude feature files");\n\n return action(async (options) => {\n options.simultaneous = Number(\n options.simultaneous ??\n (await prompt.number("simultaneous")(\n "Number of simultaneous requests to make",\n )),\n );\n if (isNaN(options.simultaneous) || options.simultaneous <= 0)\n options.simultaneous = 1;\n return options as TestAutomation.IOptions;\n });\n },\n );\n\n export const onComplete = (exec: DynamicExecutor.IExecution): void => {\n const trace = (str: string) =>\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\n if (exec.error === null) {\n const elapsed: number =\n new Date(exec.completed_at).getTime() -\n new Date(exec.started_at).getTime();\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\n } else trace(chalk.red(exec.error.name));\n };\n\n export const report = (report: DynamicExecutor.IReport): void => {\n const exceptions: Error[] = report.executions\n .filter((exec) => exec.error !== null)\n .map((exec) => exec.error!);\n if (exceptions.length === 0) {\n console.log("Success");\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\n } else {\n for (const exp of exceptions) console.log(exp);\n console.log("Failed");\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\n process.exit(-1);\n }\n };\n}\n',
|
|
83
|
+
"test/index.ts": 'import { DynamicExecutor } from "@nestia/e2e";\n\nimport { MyBackend } from "../src/MyBackend";\nimport { MyGlobal } from "../src/MyGlobal";\nimport { TestAutomation } from "./helpers/TestAutomation";\nimport { TestAutomationStdio } from "./helpers/TestAutomationStdio";\n\nconst main = async (): Promise<void> => {\n MyGlobal.testing = true;\n\n const report: DynamicExecutor.IReport = await TestAutomation.execute({\n open: async () => {\n const backend: MyBackend = new MyBackend();\n await backend.open();\n return backend;\n },\n close: (backend) => backend.close(),\n options: await TestAutomationStdio.getOptions(),\n onComplete: TestAutomationStdio.onComplete,\n });\n TestAutomationStdio.report(report);\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n',
|
|
84
|
+
"test/tsconfig.json": '{\n "extends": "../tsconfig.json",\n "compilerOptions": {\n "outDir": "../bin",\n },\n "include": [".", "../src"]\n}',
|
|
85
|
+
"test/webpack.ts": 'import { DynamicExecutor } from "@nestia/e2e";\nimport cp from "child_process";\nimport { sleep_for } from "tstl";\n\nimport { MyConfiguration } from "../src/MyConfiguration";\nimport { MyGlobal } from "../src/MyGlobal";\nimport { TestAutomation } from "./helpers/TestAutomation";\nimport { TestAutomationStdio } from "./helpers/TestAutomationStdio";\n\nconst wait = async (): Promise<void> => {\n while (true)\n try {\n await fetch(`http://localhost:${MyConfiguration.API_PORT()}/dsafdsafsd`);\n return;\n } catch (exp) {\n await sleep_for(100);\n }\n};\n\nconst main = async (): Promise<void> => {\n MyGlobal.testing = true;\n\n const report: DynamicExecutor.IReport = await TestAutomation.execute({\n open: async () => {\n const backend: cp.ChildProcess = cp.fork(\n `${MyConfiguration.ROOT}/dist/server.js`,\n {\n cwd: `${MyConfiguration.ROOT}/dist`,\n },\n );\n await wait();\n return backend;\n },\n close: async (backend) => {\n backend.kill();\n },\n options: await TestAutomationStdio.getOptions(),\n onComplete: TestAutomationStdio.onComplete,\n });\n TestAutomationStdio.report(report);\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n',
|
|
86
|
+
"tsconfig.json": '{\n "compilerOptions": {\n /* Visit https://aka.ms/tsconfig to read more about this file */\n\n /* Projects */\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\n\n /* Language and Environment */\n "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\n "lib": [\n "DOM",\n "ESNext",\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */\n // "jsx": "preserve", /* Specify what JSX code is generated. */\n "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\n "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\n\n /* Modules */\n "module": "commonjs", /* Specify what module code is generated. */\n // "rootDir": "./", /* Specify the root folder within your source files. */\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\n "paths": {\n "@ORGANIZATION/PROJECT-api/lib/*": ["./src/api/*"],\n "@ORGANIZATION/PROJECT-api": ["./src/api"],\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\n // "resolveJsonModule": true, /* Enable importing .json files. */\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\n\n /* JavaScript Support */\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\n\n /* Emit */\n // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */\n // "declarationMap": true, /* Create sourcemaps for d.ts files. */\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */\n // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\n "outDir": "./lib", /* Specify an output folder for all emitted files. */\n // "removeComments": true, /* Disable emitting comments. */\n // "noEmit": true, /* Disable emitting files from a compilation. */\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\n // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */\n // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\n "newLine": "lf", /* Set the newline character for emitting files. */\n "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\n\n /* Interop Constraints */\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */\n // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */\n\n /* Type Checking */\n "strict": true, /* Enable all strict type-checking options. */\n // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\n "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\n "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\n "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\n "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\n\n /* Completeness */\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\n "plugins": [\n { "transform": "typescript-transform-paths" },\n { "transform": "typia/lib/transform" },\n { "transform": "@nestia/core/lib/transform" },\n { "transform": "@nestia/sdk/lib/transform" },\n ]\n },\n "include": [\n "src"\n ],\n "exclude": [\n "node_modules",\n "packages",\n ]\n}\n',
|
|
87
|
+
"typos.toml": '[default]\nlocale = \'en-us\'\nextend-ignore-re = [\n "(?Rm)^.*(\x3c!--|#|//)\\\\s*spellchecker:disable-line(--\x3e|\\n)?$",\n "(?s)(\x3c!--|#|//)\\\\s*spellchecker:off\\\\s*(--\x3e|\\n).*?(\x3c!--|#|//)\\\\s*spellchecker:on",\n]\n\n[default.extend-words]\nJeongho = "Jeongho"\nNam = "Nam"\ntypia = "typia"\n\n[files]\nextend-exclude = ["*.json"]',
|
|
88
|
+
"webpack.config.js": 'const path = require("path");\n\nconst CopyWebpackPlugin = require("copy-webpack-plugin");\nconst WriteFilePlugin = require("write-file-webpack-plugin");\nconst { IgnorePlugin } = require("webpack");\n\nconst lazyImports = [\n "@fastify/static",\n "@fastify/view",\n "@nestjs/microservices",\n "@nestjs/websockets",\n "class-transformer",\n "class-validator",\n];\n\n// @reference https://tech-blog.s-yoshiki.com/entry/297\nmodule.exports = {\n // CUSTOMIZE HERE\n entry: {\n server: "./src/executable/server.ts",\n },\n output: {\n path: path.join(__dirname, "dist"),\n filename: "[name].js",\n },\n optimization: {\n minimize: true,\n },\n\n // JUST KEEP THEM\n mode: "production",\n target: "node",\n module: {\n rules: [\n {\n test: /\\.ts$/,\n exclude: /node_modules/,\n loader: "ts-loader",\n },\n ],\n },\n resolve: {\n extensions: [".tsx", ".ts", ".js"],\n },\n plugins: [\n new CopyWebpackPlugin({\n patterns: [\n {\n from: ".env",\n to: "[name][ext]",\n },\n // {\n // from: "./node_modules/.prisma/client/*.node",\n // to: () => Promise.resolve("[path][name][ext]"),\n // globOptions: {\n // dot: true,\n // },\n // },\n ],\n }),\n new WriteFilePlugin(),\n new IgnorePlugin({\n checkResource: (resource) => {\n if (lazyImports.some((modulo) => resource.startsWith(modulo))) {\n try {\n require.resolve(resource);\n } catch (err) {\n return true;\n }\n }\n return false;\n },\n }),\n ],\n};\n'
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
const SDK_TEMPLATE = {
|
|
92
|
-
".gitignore": ".git/\
|
|
93
|
-
".vscode/launch.json": '{\
|
|
94
|
-
".vscode/settings.json": '{\
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"rollup.config.js": 'const typescript = require("@rollup/plugin-typescript");\
|
|
101
|
-
"src/HttpError.ts": 'export { HttpError } from "@nestia/fetcher";\
|
|
102
|
-
"src/IConnection.ts": 'export type { IConnection } from "@nestia/fetcher";\
|
|
103
|
-
"src/index.ts": 'import * as api from "./module";\
|
|
104
|
-
"src/module.ts": 'export type * from "./IConnection";\
|
|
105
|
-
"swagger.json": '{\r\n "openapi": "3.0.1",\r\n "servers": [\r\n {\r\n "url": "http://localhost:37001",\r\n "description": "Local Server"\r\n }\r\n ],\r\n "info": {\r\n "version": "2.2.0",\r\n "title": "@samchon/bbs-backend",\r\n "description": "Backend for bbs",\r\n "license": {\r\n "name": "MIT"\r\n }\r\n },\r\n "paths": {\r\n "/bbs/articles": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated summarized articles.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticle.ISummary"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all summarized articles",\r\n "description": "List up all summarized articles.\\n\\nList up all summarized articles with pagination and searching options."\r\n },\r\n "post": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Article information to create.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.ICreate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "201": {\r\n "description": "Newly created article.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Create a new article",\r\n "description": "Create a new article.\\n\\nCreate a new article with its first {@link IBbsArticle.ISnapshot snapshot}."\r\n }\r\n },\r\n "/bbs/articles/abridges": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated abridged articles.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticle.IAbridge"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all abridged articles",\r\n "description": "List up all abridged articles.\\n\\nList up all abridged articles with pagination and searching options."\r\n }\r\n },\r\n "/bbs/articles/{id}": {\r\n "get": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "responses": {\r\n "200": {\r\n "description": "Article information",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Read individual article",\r\n "description": "Read individual article.\\n\\nReads an article with its every {@link IBbsArticle.ISnapshot snapshots}."\r\n },\r\n "put": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Article information to update.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IUpdate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Newly accumulated snapshot information.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Update an article",\r\n "description": "Update an article.\\n\\nAccumulate a new {@link IBbsArticle.ISnapshot snapshot} record to the article."\r\n },\r\n "delete": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Password of the article.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IErase"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Erase an article",\r\n "description": "Erase an article.\\n\\nPerforms soft deletion to the article."\r\n }\r\n },\r\n "/bbs/articles/{articleId}/comments": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated summarized comments.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all summarized comments",\r\n "description": "List up all summarized comments.\\n\\nList up all summarized comments with pagination and searching options."\r\n },\r\n "post": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Comment information to create.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ICreate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "201": {\r\n "description": "Newly created comment.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Create a new comment",\r\n "description": "Create a new comment.\\n\\nCreate a new comment with its first {@link IBbsArticleComment.ISnapshot snapshot}."\r\n }\r\n },\r\n "/bbs/articles/{articleId}/comments/{id}": {\r\n "get": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "responses": {\r\n "200": {\r\n "description": "Comment information",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Read individual comment",\r\n "description": "Read individual comment.\\n\\nReads a comment with its every {@link IBbsArticleComment.ISnapshot snapshots}."\r\n },\r\n "put": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Comment information to update.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IUpdate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Newly accumulated snapshot information.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Update a comment",\r\n "description": "Update a comment.\\n\\nAccumulate a new {@link IBbsArticleComment.ISnapshot snapshot} record to the comment."\r\n },\r\n "delete": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Password of the comment.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IErase"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Erase a comment",\r\n "description": "Erase a comment.\\n\\nPerforms soft deletion to the comment."\r\n }\r\n },\r\n "/monitors/health": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Health check API",\r\n "description": "Health check API."\r\n }\r\n },\r\n "/monitors/performance": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": "Performance info",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPerformance"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Get performance information",\r\n "description": "Get performance information.\\n\\nGet perofmration information composed with CPU, memory and resource usage."\r\n }\r\n },\r\n "/monitors/system": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": "System info",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/ISystem"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Get system information",\r\n "description": "Get system information.\\n\\nGet system information with commit and package information."\r\n }\r\n }\r\n },\r\n "components": {\r\n "schemas": {\r\n "IBbsArticle.IRequest": {\r\n "type": "object",\r\n "properties": {\r\n "search": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest.ISearch",\r\n "title": "Search condition",\r\n "description": "Search condition."\r\n },\r\n "sort": {\r\n "type": "array",\r\n "items": {\r\n "type": "string",\r\n "enum": [\r\n "+created_at",\r\n "+title",\r\n "+updated_at",\r\n "+writer",\r\n "-created_at",\r\n "-title",\r\n "-updated_at",\r\n "-writer"\r\n ]\r\n },\r\n "title": "Sort condition",\r\n "description": "Sort condition."\r\n },\r\n "page": {\r\n "type": "integer",\r\n "title": "Page number",\r\n "description": "Page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IBbsArticle.IRequest.ISearch": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "title": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n },\r\n "title_or_body": {\r\n "type": "string"\r\n },\r\n "from": {\r\n "type": "string",\r\n "format": "date-time"\r\n },\r\n "to": {\r\n "type": "string",\r\n "format": "date-time"\r\n }\r\n },\r\n "nullable": false,\r\n "description": "검색 정보."\r\n },\r\n "IPageIBbsArticle.ISummary": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISummary"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IPage.IPagination": {\r\n "type": "object",\r\n "properties": {\r\n "current": {\r\n "type": "integer",\r\n "title": "Current page number",\r\n "description": "Current page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n },\r\n "records": {\r\n "type": "integer",\r\n "title": "Total records in the database",\r\n "description": "Total records in the database."\r\n },\r\n "pages": {\r\n "type": "integer",\r\n "title": "Total pages",\r\n "description": "Total pages.\\n\\nEqual to {@link records } / {@link limit } with ceiling."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "current",\r\n "limit",\r\n "records",\r\n "pages"\r\n ],\r\n "description": "Page information."\r\n },\r\n "IBbsArticle.ISummary": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of the article",\r\n "description": "Writer of the article."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of the last snapshot",\r\n "description": "Title of the last snapshot."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of the article",\r\n "description": "Creation time of the article."\r\n },\r\n "updated_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Modification time of the article",\r\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "title",\r\n "created_at",\r\n "updated_at"\r\n ],\r\n "description": "Summarized information of the article."\r\n },\r\n "IPageIBbsArticle.IAbridge": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.IAbridge"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IBbsArticle.IAbridge": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of the article",\r\n "description": "Writer of the article."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of the last snapshot",\r\n "description": "Title of the last snapshot."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of the article",\r\n "description": "Creation time of the article."\r\n },\r\n "updated_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Modification time of the article",\r\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticle.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "title",\r\n "created_at",\r\n "updated_at",\r\n "format",\r\n "body",\r\n "files"\r\n ],\r\n "description": "Abriged information of the article."\r\n },\r\n "IBbsArticle.Format": {\r\n "type": "string",\r\n "enum": [\r\n "txt",\r\n "md",\r\n "html"\r\n ]\r\n },\r\n "IAttachmentFile.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string",\r\n "maxLength": 255,\r\n "title": "File name, except extension",\r\n "description": "File name, except extension."\r\n },\r\n "extension": {\r\n "type": "string",\r\n "maxLength": 8,\r\n "minLength": 1,\r\n "nullable": true,\r\n "title": "Extension",\r\n "description": "Extension.\\n\\nPossible to omit like `README` case."\r\n },\r\n "url": {\r\n "type": "string",\r\n "format": "uri",\r\n "title": "URL path of the real file",\r\n "description": "URL path of the real file."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "extension",\r\n "url"\r\n ]\r\n },\r\n "IBbsArticle": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of article",\r\n "description": "Writer of article."\r\n },\r\n "snapshots": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\r\n },\r\n "minItems": 1,\r\n "title": "List of snapshot contents",\r\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when an article is created, and is\\naccumulated every time the article is modified."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of article",\r\n "description": "Creation time of article."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "snapshots",\r\n "created_at"\r\n ],\r\n "description": "Article entity.\\n\\n`IBbsArticle* is a super-type entity of all kinds of articles in the current\\nbackend system, literally shaping individual articles of the bulletin board.\\n\\nAnd, as you can see, the elements that must inevitably exist in the article,\\nsuch as the `title` or the `body`, do not exist in the `IBbsArticle`, but exist\\nin the subsidiary entity, {@link IBbsArticle.ISnapshot }, as a 1: N relationship,\\nwhich is because a new snapshot record is published every time the article is\\nmodified.\\n\\nThe reason why a new snapshot record is published every time the article is\\nmodified is to preserve the evidence. Due to the nature of e-community, there\\nis always a threat of dispute among the participants. And it can happen that\\ndisputes arise through articles or {@link IBbsArticleComment comments}, and to\\nprevent such things as modifying existing articles to manipulate the situation,\\nthe article is designed in this structure.\\n\\nIn other words, to keep evidence, and prevent fraud."\r\n },\r\n "IBbsArticle.ISnapshot": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of snapshot record",\r\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or article."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticle.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "created_at",\r\n "format",\r\n "body",\r\n "files",\r\n "title"\r\n ],\r\n "description": "Snapshot of article.\\n\\n`IBbsArticle.ISnapshot` is a snapshot entity that contains the contents of\\nthe article, as mentioned in {@link IBbsArticle }, the contents of the article\\nare separated from the article record to keep evidence and prevent fraud."\r\n },\r\n "IBbsArticle.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "writer",\r\n "format",\r\n "title",\r\n "body",\r\n "files",\r\n "password"\r\n ],\r\n "description": "Store content type of the article."\r\n },\r\n "IBbsArticle.IUpdate": {\r\n "type": "object",\r\n "properties": {\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "format",\r\n "title",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticle.IErase": {\r\n "type": "object",\r\n "properties": {\r\n "password": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IRequest": {\r\n "type": "object",\r\n "properties": {\r\n "search": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest.ISearch"\r\n },\r\n "sort": {\r\n "type": "array",\r\n "items": {\r\n "type": "string",\r\n "enum": [\r\n "+created_at",\r\n "+writer",\r\n "-created_at",\r\n "-writer"\r\n ]\r\n }\r\n },\r\n "page": {\r\n "type": "integer",\r\n "title": "Page number",\r\n "description": "Page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IBbsArticleComment.IRequest.ISearch": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IPageIBbsArticleComment": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IBbsArticleComment": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "parent_id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "nullable": true,\r\n "title": "Parent comment\'s ID",\r\n "description": "Parent comment\'s ID."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of comment",\r\n "description": "Writer of comment."\r\n },\r\n "snapshots": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\r\n },\r\n "minItems": 1,\r\n "title": "List of snapshot contents",\r\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when a comment being created, and is\\naccumulated every time the comment is modified."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of comment",\r\n "description": "Creation time of comment."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "parent_id",\r\n "writer",\r\n "snapshots",\r\n "created_at"\r\n ],\r\n "description": "Comment written on an article.\\n\\n`IBbsArticleComment` is an entity that shapes the comments written on an article.\\n\\nAnd for this comment, as in the previous relationship between\\n{@link IBbsArticle } and {@link IBbsArticle.ISnapshot }, the content body of the\\ncomment is stored in the sub {@link IBbsArticleComment.ISnapshot } table for\\nevidentialism, and a new snapshot record is issued every time the comment is modified.\\n\\nAlso, `IBbsArticleComment` is expressing the relationship of the hierarchical reply\\nstructure through the {@link IBbsArticleComment.parent_id } attribute."\r\n },\r\n "IBbsArticleComment.ISnapshot": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of snapshot record",\r\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or comment."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "created_at",\r\n "format",\r\n "body",\r\n "files"\r\n ],\r\n "description": "Snapshot of comment.\\n\\n`IBbsArticleComment.ISnapshot` is a snapshot entity that contains\\nthe contents of the comment.\\n\\nAs mentioned in {@link IBbsArticleComment }, designed to keep evidence\\nand prevent fraud."\r\n },\r\n "IBbsArticleComment.Format": {\r\n "type": "string",\r\n "enum": [\r\n "txt",\r\n "md",\r\n "html"\r\n ]\r\n },\r\n "IBbsArticleComment.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of comment",\r\n "description": "Writer of comment."\r\n },\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "writer",\r\n "format",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IUpdate": {\r\n "type": "object",\r\n "properties": {\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "format",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IErase": {\r\n "type": "object",\r\n "properties": {\r\n "password": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "password"\r\n ]\r\n },\r\n "IPerformance": {\r\n "type": "object",\r\n "properties": {\r\n "cpu": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.CpuUsage"\r\n },\r\n "memory": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.MemoryUsage"\r\n },\r\n "resource": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.ResourceUsage"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "cpu",\r\n "memory",\r\n "resource"\r\n ]\r\n },\r\n "process.global.NodeJS.CpuUsage": {\r\n "type": "object",\r\n "properties": {\r\n "user": {\r\n "type": "number"\r\n },\r\n "system": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "user",\r\n "system"\r\n ]\r\n },\r\n "process.global.NodeJS.MemoryUsage": {\r\n "type": "object",\r\n "properties": {\r\n "rss": {\r\n "type": "number"\r\n },\r\n "heapTotal": {\r\n "type": "number"\r\n },\r\n "heapUsed": {\r\n "type": "number"\r\n },\r\n "external": {\r\n "type": "number"\r\n },\r\n "arrayBuffers": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "rss",\r\n "heapTotal",\r\n "heapUsed",\r\n "external",\r\n "arrayBuffers"\r\n ]\r\n },\r\n "process.global.NodeJS.ResourceUsage": {\r\n "type": "object",\r\n "properties": {\r\n "fsRead": {\r\n "type": "number"\r\n },\r\n "fsWrite": {\r\n "type": "number"\r\n },\r\n "involuntaryContextSwitches": {\r\n "type": "number"\r\n },\r\n "ipcReceived": {\r\n "type": "number"\r\n },\r\n "ipcSent": {\r\n "type": "number"\r\n },\r\n "majorPageFault": {\r\n "type": "number"\r\n },\r\n "maxRSS": {\r\n "type": "number"\r\n },\r\n "minorPageFault": {\r\n "type": "number"\r\n },\r\n "sharedMemorySize": {\r\n "type": "number"\r\n },\r\n "signalsCount": {\r\n "type": "number"\r\n },\r\n "swappedOut": {\r\n "type": "number"\r\n },\r\n "systemCPUTime": {\r\n "type": "number"\r\n },\r\n "unsharedDataSize": {\r\n "type": "number"\r\n },\r\n "unsharedStackSize": {\r\n "type": "number"\r\n },\r\n "userCPUTime": {\r\n "type": "number"\r\n },\r\n "voluntaryContextSwitches": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "fsRead",\r\n "fsWrite",\r\n "involuntaryContextSwitches",\r\n "ipcReceived",\r\n "ipcSent",\r\n "majorPageFault",\r\n "maxRSS",\r\n "minorPageFault",\r\n "sharedMemorySize",\r\n "signalsCount",\r\n "swappedOut",\r\n "systemCPUTime",\r\n "unsharedDataSize",\r\n "unsharedStackSize",\r\n "userCPUTime",\r\n "voluntaryContextSwitches"\r\n ]\r\n },\r\n "ISystem": {\r\n "type": "object",\r\n "properties": {\r\n "uid": {\r\n "type": "number",\r\n "title": "Random Unique ID",\r\n "description": "Random Unique ID."\r\n },\r\n "arguments": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n },\r\n "description": "`process.argv`"\r\n },\r\n "commit": {\r\n "$ref": "#/components/schemas/ISystem.ICommit",\r\n "title": "Git commit info",\r\n "description": "Git commit info."\r\n },\r\n "package": {\r\n "$ref": "#/components/schemas/ISystem.IPackage",\r\n "description": "`package.json`"\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "title": "Creation time of this server",\r\n "description": "Creation time of this server."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "uid",\r\n "arguments",\r\n "commit",\r\n "package",\r\n "created_at"\r\n ],\r\n "description": "System Information."\r\n },\r\n "ISystem.ICommit": {\r\n "type": "object",\r\n "properties": {\r\n "shortHash": {\r\n "type": "string"\r\n },\r\n "branch": {\r\n "type": "string"\r\n },\r\n "hash": {\r\n "type": "string"\r\n },\r\n "subject": {\r\n "type": "string"\r\n },\r\n "sanitizedSubject": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n },\r\n "author": {\r\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\r\n },\r\n "committer": {\r\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\r\n },\r\n "authored_at": {\r\n "type": "string"\r\n },\r\n "commited_at": {\r\n "type": "string"\r\n },\r\n "notes": {\r\n "type": "string"\r\n },\r\n "tags": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n }\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "shortHash",\r\n "branch",\r\n "hash",\r\n "subject",\r\n "sanitizedSubject",\r\n "body",\r\n "author",\r\n "committer",\r\n "authored_at",\r\n "commited_at",\r\n "tags"\r\n ],\r\n "description": "Git commit info."\r\n },\r\n "ISystem.ICommit.IUser": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string"\r\n },\r\n "email": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "email"\r\n ],\r\n "description": "Git user account info."\r\n },\r\n "ISystem.IPackage": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string"\r\n },\r\n "version": {\r\n "type": "string"\r\n },\r\n "description": {\r\n "type": "string"\r\n },\r\n "main": {\r\n "type": "string"\r\n },\r\n "typings": {\r\n "type": "string"\r\n },\r\n "scripts": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "repository": {\r\n "type": "object",\r\n "properties": {\r\n "type": {\r\n "type": "string",\r\n "enum": [\r\n "git"\r\n ]\r\n },\r\n "url": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "type",\r\n "url"\r\n ]\r\n },\r\n "author": {\r\n "type": "string"\r\n },\r\n "license": {\r\n "type": "string"\r\n },\r\n "bugs": {\r\n "type": "object",\r\n "properties": {\r\n "url": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "url"\r\n ]\r\n },\r\n "homepage": {\r\n "type": "string"\r\n },\r\n "devDependencies": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "dependencies": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "publishConfig": {\r\n "type": "object",\r\n "properties": {\r\n "registry": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "registry"\r\n ]\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n }\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "version",\r\n "description",\r\n "scripts",\r\n "repository",\r\n "author",\r\n "license",\r\n "bugs",\r\n "homepage",\r\n "dependencies"\r\n ],\r\n "description": "NPM package info."\r\n },\r\n "Recordstringstring": {\r\n "type": "object",\r\n "properties": {},\r\n "nullable": false,\r\n "description": "Construct a type with a set of properties K of type T"\r\n }\r\n }\r\n }\r\n}',
|
|
106
|
-
"test/
|
|
107
|
-
"test/
|
|
108
|
-
"test/
|
|
109
|
-
"test/
|
|
110
|
-
"test/tsconfig.json": '{\
|
|
111
|
-
"test/utils/ArgumentParser.ts": 'import commander from "commander";\
|
|
112
|
-
"tsconfig.json": '{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n /* Language and Environment */\r\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n "lib": [\r\n "DOM",\r\n "ES2015"\r\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\r\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api": ["../src"],\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\r\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n /* Emit */\r\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "typescript-transform-paths" },\r\n ],\r\n },\r\n "include": ["src"],\r\n}'
|
|
92
|
+
".gitignore": ".git/\nbin/\nlib/\nnode_modules/\n\npackage-lock.json\npnpm-lock.yaml",
|
|
93
|
+
".vscode/launch.json": '{\n // Use IntelliSense to learn about possible Node.js debug attributes.\n // Hover to view descriptions of existing attributes.\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\n "version": "0.2.0",\n "configurations": [\n {\n "type": "node",\n "request": "launch",\n "name": "JavaScript Test using SourceMap",\n "program": "${workspaceRoot}/test/index.ts",\n "cwd": "${workspaceRoot}",\n "args": [\n //----\n // You can run specific test functions\n //----\n // "--include", "something",\n // "--exclude", "nothing",\n ],\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\n }\n ]\n}',
|
|
94
|
+
".vscode/settings.json": '{\n "editor.tabSize": 2,\n "editor.formatOnSave": true,\n "[javascript][typescript]": {\n "editor.defaultFormatter": "esbenp.prettier-vscode",\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n },\n}',
|
|
95
|
+
LICENSE: 'MIT License\n\nCopyright (c) 2024 Jeongho Nam\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n',
|
|
96
|
+
"README.md": '# Software Development Kit\nThis is a SDK library generated by [`@nestia/migrate`](https://nestia.io/docs/migrate) or [`@nestia/editor`](https://nestia.io/docs/editor).\n\nWith this SDK library, you can easily and safely interact with backend server.\n\nJust import and call some API functions like gif image below:\n\n\n\n> Left is server code, and right is client code utilizing the SDK\n\n\n\n\n## How to Test\n```bash\nnpm install\nnpm start # run only "test/start.ts" file\nnpm run test # everything under the "test/features" directory\nnpm run test:simulate # "test/features" with mockup simulation mode\n```\n\nIf you run `npm start` command, only [test/start.ts](test/start.ts) file would be executed.\n\nOtherwise you run `npm run test` command instead, run everything in the [test/features](test/features) directory.\n\nFor reference, the [test/features](test/features) directory and E2E test functions (for each API endpoints) would be automatically composed only when you\'ve configured the "E2E test function generation mode" of the `@nestia/migrate` (or `@nestia/editor`).\n\n```bash\nnpm install -g @nestia/migrate\nnpx @nestia/migrate\n? Migration mode (Use arrow keys):\n NestJS\n > SDK\n? Swagger file location: assets/input/clickhouse.json\n? Output directory path: assets/output/clickhouse-sdk-manual\n? Mokup Simulator: true\n? E2E Test Functions: true\n```\n\n\n\n\n## Deploy\n```bash\nnpm install\nnpm run deploy\n```\n\nJust run `npm run deploy` command, then your SDK library would be published.\n\nBy the way, the initial package name of this template repository is `@ORGANIZATION/PROJECT-api`. I think it would better to change the word to your own organization and project name. If you\'re utilizing `VsCode`, you can do it through `Edit > Replace in Files` (*Ctrl + Shift + H*) feature.\n\n-----------\n\n> ## What [`Nestia`](https://nestia.io) is:\n> \n> \n> [](https://github.com/samchon/nestia/blob/master/LICENSE)\n> [](https://www.npmjs.com/package/@nestia/core)\n> [](https://www.npmjs.com/package/@nestia/core)\n> [](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\n> [](https://nestia.io/docs/)\n> \n> Nestia is a set of helper libraries for NestJS, supporting below features:\n> \n> - `@nestia/core`: Super-fast decorators\n> - `@nestia/sdk`:\n> - Swagger generator evolved than ever\n> - SDK library generator for clients\n> - Mockup Simulator for client applications\n> - Automatic E2E test functions generator\n> - `@nestia/migrate`: Migration from Swagger to NestJS\n> - `@nestia/editor`: Online TypeScript Swagger Editor\n> - `nestia`: Just CLI (command line interface) tool\n> \n>> **Note**\n>> \n>> - **Only one line** required, with pure TypeScript type\n>> - Enhance performance **30x** up\n>> - Runtime validator is **20,000x faster** than `class-validator`\n>> - JSON serialization is **200x faster** than `class-transformer`\n>> - Software Development Kit\n>> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://> trpc.io/)\n>> - Mockup simulator means embedded backend simulator in SDK\n>> - similar with [msw](https://mswjs.io/), but fully automated',
|
|
97
|
+
"hello.js": 'function print(command, description) {\n return console.log(`\\x1b[1m${command}\\x1b[2m: ${description}\\x1b[0m`);\n}\n\nconsole.log("-----------------------------------------");\nconsole.log("\\x1b[7mGenerated by \\x1b[2m@nestia/editor\\x1b[0m");\nconsole.log("");\nconsole.log(" - \\x1b[36mhttps://nestia.io/docs/editor\\x1b[0m");\nconsole.log(" - \\x1b[36mhttps://github.com/samchon/nestia\\x1b[0m");\nconsole.log("-----------------------------------------");\n\nprint("npm run start", "Run only test/start.ts");\nprint("npm run test", "Run every test/features/**/*.ts files");\nprint("npm run test:simulate", "Test with mockup simulator");\n',
|
|
98
|
+
"package.json": '{\n "name": "@ORGANIZATION/PROJECT-api",\n "version": "0.1.0",\n "description": "SDK library generated by Nestia",\n "main": "lib/index.js",\n "module": "lib/index.mjs",\n "typings": "lib/index.d.ts",\n "scripts": {\n "build": "rimraf lib && tsc && rollup -c",\n "build:test": "rimraf bin && tsc --project test/tsconfig.json",\n "deploy": "npm run build && npm publish",\n "dev": "npm run build:test -- --watch",\n "hello": "node hello",\n "prepare": "ts-patch install && typia patch",\n "start": "ts-node test/start.ts",\n "swagger": "ts-node test/swagger.ts",\n "test": "ts-node test/index.ts",\n "test:simulate": "ts-node test/index.ts --simulate true",\n "test:manual": "ts-node test/manual.ts"\n },\n "repository": {\n "type": "git",\n "url": "https://github.com/samchon/nestia"\n },\n "author": "Jeongho Nam",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/samchon/nestia/issues"\n },\n "homepage": "https://nestia.io",\n "files": [\n "lib",\n "swagger.json",\n "package.json",\n "README.md"\n ],\n "dependencies": {\n "@nestia/fetcher": "^11.0.1",\n "tgrid": "^1.2.1",\n "typia": "^12.0.0"\n },\n "devDependencies": {\n "@nestia/e2e": "^11.0.1",\n "@rollup/plugin-terser": "^0.4.4",\n "@rollup/plugin-typescript": "^11.1.6",\n "@trivago/prettier-plugin-sort-imports": "^4.3.0",\n "@types/express": "^4.17.21",\n "@types/inquirer": "8.2.5",\n "@types/swagger-ui-express": "^4.1.6",\n "chalk": "4.1.2",\n "commander": "^10.0.0",\n "express": "^4.19.2",\n "inquirer": "8.2.5",\n "prettier": "^3.2.5",\n "rimraf": "^5.0.5",\n "rollup": "^4.13.2",\n "swagger-ui-express": "^5.0.0",\n "ts-node": "^10.9.2",\n "ts-patch": "^3.3.0",\n "typescript": "~5.9.3",\n "typescript-transform-paths": "^3.5.6"\n }\n}',
|
|
99
|
+
"prettier.config.js": 'module.exports = {\n // DEFAULT CONFIGURATIONS\n parser: "typescript",\n printWidth: 80,\n semi: true,\n tabWidth: 2,\n trailingComma: "all",\n\n // PLUG-IN CONFIGURATIONS\n plugins: ["@trivago/prettier-plugin-sort-imports"],\n importOrder: ["<THIRD_PARTY_MODULES>", "^[./]"],\n importOrderSeparation: true,\n importOrderSortSpecifiers: true,\n importOrderParserPlugins: ["decorators-legacy", "typescript", "jsx"],\n};\n',
|
|
100
|
+
"rollup.config.js": 'const typescript = require("@rollup/plugin-typescript");\nconst terser = require("@rollup/plugin-terser");\n\nmodule.exports = {\n input: "./src/index.ts",\n output: {\n dir: "lib",\n format: "esm",\n entryFileNames: "[name].mjs",\n sourcemap: true,\n },\n plugins: [\n typescript({\n tsconfig: "tsconfig.json",\n module: "ES2020",\n target: "ES2020",\n }),\n terser({\n format: {\n comments: "some",\n beautify: true,\n ecma: "2020",\n },\n compress: false,\n mangle: false,\n module: true,\n }),\n ],\n};\n',
|
|
101
|
+
"src/HttpError.ts": 'export { HttpError } from "@nestia/fetcher";\n',
|
|
102
|
+
"src/IConnection.ts": 'export type { IConnection } from "@nestia/fetcher";\n',
|
|
103
|
+
"src/index.ts": 'import * as api from "./module";\n\nexport * from "./module";\nexport default api;\n',
|
|
104
|
+
"src/module.ts": 'export type * from "./IConnection";\nexport * from "./HttpError";\n\nexport * as functional from "./functional";\n',
|
|
105
|
+
"swagger.json": '{\n "openapi": "3.0.1",\n "servers": [\n {\n "url": "http://localhost:37001",\n "description": "Local Server"\n }\n ],\n "info": {\n "version": "2.2.0",\n "title": "@samchon/bbs-backend",\n "description": "Backend for bbs",\n "license": {\n "name": "MIT"\n }\n },\n "paths": {\n "/bbs/articles": {\n "patch": {\n "tags": [\n "BBS"\n ],\n "parameters": [],\n "requestBody": {\n "description": "Request info of pagination and searching options.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Paginated summarized articles.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IPageIBbsArticle.ISummary"\n }\n }\n }\n }\n },\n "summary": "List up all summarized articles",\n "description": "List up all summarized articles.\\n\\nList up all summarized articles with pagination and searching options."\n },\n "post": {\n "tags": [\n "BBS"\n ],\n "parameters": [],\n "requestBody": {\n "description": "Article information to create.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.ICreate"\n }\n }\n },\n "required": true\n },\n "responses": {\n "201": {\n "description": "Newly created article.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle"\n }\n }\n }\n }\n },\n "summary": "Create a new article",\n "description": "Create a new article.\\n\\nCreate a new article with its first {@link IBbsArticle.ISnapshot snapshot}."\n }\n },\n "/bbs/articles/abridges": {\n "patch": {\n "tags": [\n "BBS"\n ],\n "parameters": [],\n "requestBody": {\n "description": "Request info of pagination and searching options.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Paginated abridged articles.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IPageIBbsArticle.IAbridge"\n }\n }\n }\n }\n },\n "summary": "List up all abridged articles",\n "description": "List up all abridged articles.\\n\\nList up all abridged articles with pagination and searching options."\n }\n },\n "/bbs/articles/{id}": {\n "get": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target article\'s ",\n "required": true\n }\n ],\n "responses": {\n "200": {\n "description": "Article information",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle"\n }\n }\n }\n }\n },\n "summary": "Read individual article",\n "description": "Read individual article.\\n\\nReads an article with its every {@link IBbsArticle.ISnapshot snapshots}."\n },\n "put": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target article\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Article information to update.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.IUpdate"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Newly accumulated snapshot information.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\n }\n }\n }\n }\n },\n "summary": "Update an article",\n "description": "Update an article.\\n\\nAccumulate a new {@link IBbsArticle.ISnapshot snapshot} record to the article."\n },\n "delete": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target article\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Password of the article.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.IErase"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": ""\n }\n },\n "summary": "Erase an article",\n "description": "Erase an article.\\n\\nPerforms soft deletion to the article."\n }\n },\n "/bbs/articles/{articleId}/comments": {\n "patch": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Request info of pagination and searching options.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Paginated summarized comments.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IPageIBbsArticleComment"\n }\n }\n }\n }\n },\n "summary": "List up all summarized comments",\n "description": "List up all summarized comments.\\n\\nList up all summarized comments with pagination and searching options."\n },\n "post": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Belonged article\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Comment information to create.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.ICreate"\n }\n }\n },\n "required": true\n },\n "responses": {\n "201": {\n "description": "Newly created comment.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment"\n }\n }\n }\n }\n },\n "summary": "Create a new comment",\n "description": "Create a new comment.\\n\\nCreate a new comment with its first {@link IBbsArticleComment.ISnapshot snapshot}."\n }\n },\n "/bbs/articles/{articleId}/comments/{id}": {\n "get": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Belonged article\'s ",\n "required": true\n },\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target comment\'s ",\n "required": true\n }\n ],\n "responses": {\n "200": {\n "description": "Comment information",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment"\n }\n }\n }\n }\n },\n "summary": "Read individual comment",\n "description": "Read individual comment.\\n\\nReads a comment with its every {@link IBbsArticleComment.ISnapshot snapshots}."\n },\n "put": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Belonged article\'s ",\n "required": true\n },\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target comment\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Comment information to update.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.IUpdate"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Newly accumulated snapshot information.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\n }\n }\n }\n }\n },\n "summary": "Update a comment",\n "description": "Update a comment.\\n\\nAccumulate a new {@link IBbsArticleComment.ISnapshot snapshot} record to the comment."\n },\n "delete": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Belonged article\'s ",\n "required": true\n },\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target comment\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Password of the comment.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.IErase"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": ""\n }\n },\n "summary": "Erase a comment",\n "description": "Erase a comment.\\n\\nPerforms soft deletion to the comment."\n }\n },\n "/monitors/health": {\n "get": {\n "tags": [\n "Monitor"\n ],\n "parameters": [],\n "responses": {\n "200": {\n "description": ""\n }\n },\n "summary": "Health check API",\n "description": "Health check API."\n }\n },\n "/monitors/performance": {\n "get": {\n "tags": [\n "Monitor"\n ],\n "parameters": [],\n "responses": {\n "200": {\n "description": "Performance info",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IPerformance"\n }\n }\n }\n }\n },\n "summary": "Get performance information",\n "description": "Get performance information.\\n\\nGet perofmration information composed with CPU, memory and resource usage."\n }\n },\n "/monitors/system": {\n "get": {\n "tags": [\n "Monitor"\n ],\n "parameters": [],\n "responses": {\n "200": {\n "description": "System info",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/ISystem"\n }\n }\n }\n }\n },\n "summary": "Get system information",\n "description": "Get system information.\\n\\nGet system information with commit and package information."\n }\n }\n },\n "components": {\n "schemas": {\n "IBbsArticle.IRequest": {\n "type": "object",\n "properties": {\n "search": {\n "$ref": "#/components/schemas/IBbsArticle.IRequest.ISearch",\n "title": "Search condition",\n "description": "Search condition."\n },\n "sort": {\n "type": "array",\n "items": {\n "type": "string",\n "enum": [\n "+created_at",\n "+title",\n "+updated_at",\n "+writer",\n "-created_at",\n "-title",\n "-updated_at",\n "-writer"\n ]\n },\n "title": "Sort condition",\n "description": "Sort condition."\n },\n "page": {\n "type": "integer",\n "title": "Page number",\n "description": "Page number."\n },\n "limit": {\n "type": "integer",\n "default": 100,\n "title": "Limitation of records per a page",\n "description": "Limitation of records per a page."\n }\n },\n "nullable": false\n },\n "IBbsArticle.IRequest.ISearch": {\n "type": "object",\n "properties": {\n "writer": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "body": {\n "type": "string"\n },\n "title_or_body": {\n "type": "string"\n },\n "from": {\n "type": "string",\n "format": "date-time"\n },\n "to": {\n "type": "string",\n "format": "date-time"\n }\n },\n "nullable": false,\n "description": "검색 정보."\n },\n "IPageIBbsArticle.ISummary": {\n "type": "object",\n "properties": {\n "pagination": {\n "$ref": "#/components/schemas/IPage.IPagination",\n "title": "Page information",\n "description": "Page information."\n },\n "data": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticle.ISummary"\n },\n "title": "List of records",\n "description": "List of records."\n }\n },\n "nullable": false,\n "required": [\n "pagination",\n "data"\n ],\n "description": "A page.\\n\\nCollection of records with pagination indformation."\n },\n "IPage.IPagination": {\n "type": "object",\n "properties": {\n "current": {\n "type": "integer",\n "title": "Current page number",\n "description": "Current page number."\n },\n "limit": {\n "type": "integer",\n "default": 100,\n "title": "Limitation of records per a page",\n "description": "Limitation of records per a page."\n },\n "records": {\n "type": "integer",\n "title": "Total records in the database",\n "description": "Total records in the database."\n },\n "pages": {\n "type": "integer",\n "title": "Total pages",\n "description": "Total pages.\\n\\nEqual to {@link records } / {@link limit } with ceiling."\n }\n },\n "nullable": false,\n "required": [\n "current",\n "limit",\n "records",\n "pages"\n ],\n "description": "Page information."\n },\n "IBbsArticle.ISummary": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "writer": {\n "type": "string",\n "title": "Writer of the article",\n "description": "Writer of the article."\n },\n "title": {\n "type": "string",\n "title": "Title of the last snapshot",\n "description": "Title of the last snapshot."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of the article",\n "description": "Creation time of the article."\n },\n "updated_at": {\n "type": "string",\n "format": "date-time",\n "title": "Modification time of the article",\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "writer",\n "title",\n "created_at",\n "updated_at"\n ],\n "description": "Summarized information of the article."\n },\n "IPageIBbsArticle.IAbridge": {\n "type": "object",\n "properties": {\n "pagination": {\n "$ref": "#/components/schemas/IPage.IPagination",\n "title": "Page information",\n "description": "Page information."\n },\n "data": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticle.IAbridge"\n },\n "title": "List of records",\n "description": "List of records."\n }\n },\n "nullable": false,\n "required": [\n "pagination",\n "data"\n ],\n "description": "A page.\\n\\nCollection of records with pagination indformation."\n },\n "IBbsArticle.IAbridge": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "writer": {\n "type": "string",\n "title": "Writer of the article",\n "description": "Writer of the article."\n },\n "title": {\n "type": "string",\n "title": "Title of the last snapshot",\n "description": "Title of the last snapshot."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of the article",\n "description": "Creation time of the article."\n },\n "updated_at": {\n "type": "string",\n "format": "date-time",\n "title": "Modification time of the article",\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\n },\n "format": {\n "$ref": "#/components/schemas/IBbsArticle.Format",\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of article",\n "description": "Content body of article."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "writer",\n "title",\n "created_at",\n "updated_at",\n "format",\n "body",\n "files"\n ],\n "description": "Abriged information of the article."\n },\n "IBbsArticle.Format": {\n "type": "string",\n "enum": [\n "txt",\n "md",\n "html"\n ]\n },\n "IAttachmentFile.ICreate": {\n "type": "object",\n "properties": {\n "name": {\n "type": "string",\n "maxLength": 255,\n "title": "File name, except extension",\n "description": "File name, except extension."\n },\n "extension": {\n "type": "string",\n "maxLength": 8,\n "minLength": 1,\n "nullable": true,\n "title": "Extension",\n "description": "Extension.\\n\\nPossible to omit like `README` case."\n },\n "url": {\n "type": "string",\n "format": "uri",\n "title": "URL path of the real file",\n "description": "URL path of the real file."\n }\n },\n "nullable": false,\n "required": [\n "name",\n "extension",\n "url"\n ]\n },\n "IBbsArticle": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "writer": {\n "type": "string",\n "title": "Writer of article",\n "description": "Writer of article."\n },\n "snapshots": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\n },\n "minItems": 1,\n "title": "List of snapshot contents",\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when an article is created, and is\\naccumulated every time the article is modified."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of article",\n "description": "Creation time of article."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "writer",\n "snapshots",\n "created_at"\n ],\n "description": "Article entity.\\n\\n`IBbsArticle* is a super-type entity of all kinds of articles in the current\\nbackend system, literally shaping individual articles of the bulletin board.\\n\\nAnd, as you can see, the elements that must inevitably exist in the article,\\nsuch as the `title` or the `body`, do not exist in the `IBbsArticle`, but exist\\nin the subsidiary entity, {@link IBbsArticle.ISnapshot }, as a 1: N relationship,\\nwhich is because a new snapshot record is published every time the article is\\nmodified.\\n\\nThe reason why a new snapshot record is published every time the article is\\nmodified is to preserve the evidence. Due to the nature of e-community, there\\nis always a threat of dispute among the participants. And it can happen that\\ndisputes arise through articles or {@link IBbsArticleComment comments}, and to\\nprevent such things as modifying existing articles to manipulate the situation,\\nthe article is designed in this structure.\\n\\nIn other words, to keep evidence, and prevent fraud."\n },\n "IBbsArticle.ISnapshot": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of snapshot record",\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or article."\n },\n "format": {\n "$ref": "#/components/schemas/IBbsArticle.Format",\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of article",\n "description": "Content body of article."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "title": {\n "type": "string",\n "title": "Title of article",\n "description": "Title of article."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "created_at",\n "format",\n "body",\n "files",\n "title"\n ],\n "description": "Snapshot of article.\\n\\n`IBbsArticle.ISnapshot` is a snapshot entity that contains the contents of\\nthe article, as mentioned in {@link IBbsArticle }, the contents of the article\\nare separated from the article record to keep evidence and prevent fraud."\n },\n "IBbsArticle.ICreate": {\n "type": "object",\n "properties": {\n "writer": {\n "type": "string"\n },\n "format": {\n "type": "string",\n "enum": [\n "html",\n "md",\n "txt"\n ],\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "title": {\n "type": "string",\n "title": "Title of article",\n "description": "Title of article."\n },\n "body": {\n "type": "string",\n "title": "Content body of article",\n "description": "Content body of article."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "password": {\n "type": "string",\n "title": "Password for modification",\n "description": "Password for modification."\n }\n },\n "nullable": false,\n "required": [\n "writer",\n "format",\n "title",\n "body",\n "files",\n "password"\n ],\n "description": "Store content type of the article."\n },\n "IBbsArticle.IUpdate": {\n "type": "object",\n "properties": {\n "format": {\n "type": "string",\n "enum": [\n "html",\n "md",\n "txt"\n ],\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "title": {\n "type": "string",\n "title": "Title of article",\n "description": "Title of article."\n },\n "body": {\n "type": "string",\n "title": "Content body of article",\n "description": "Content body of article."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "password": {\n "type": "string",\n "title": "Password for modification",\n "description": "Password for modification."\n }\n },\n "nullable": false,\n "required": [\n "format",\n "title",\n "body",\n "files",\n "password"\n ]\n },\n "IBbsArticle.IErase": {\n "type": "object",\n "properties": {\n "password": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "password"\n ]\n },\n "IBbsArticleComment.IRequest": {\n "type": "object",\n "properties": {\n "search": {\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest.ISearch"\n },\n "sort": {\n "type": "array",\n "items": {\n "type": "string",\n "enum": [\n "+created_at",\n "+writer",\n "-created_at",\n "-writer"\n ]\n }\n },\n "page": {\n "type": "integer",\n "title": "Page number",\n "description": "Page number."\n },\n "limit": {\n "type": "integer",\n "default": 100,\n "title": "Limitation of records per a page",\n "description": "Limitation of records per a page."\n }\n },\n "nullable": false\n },\n "IBbsArticleComment.IRequest.ISearch": {\n "type": "object",\n "properties": {\n "writer": {\n "type": "string"\n },\n "body": {\n "type": "string"\n }\n },\n "nullable": false\n },\n "IPageIBbsArticleComment": {\n "type": "object",\n "properties": {\n "pagination": {\n "$ref": "#/components/schemas/IPage.IPagination",\n "title": "Page information",\n "description": "Page information."\n },\n "data": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticleComment"\n },\n "title": "List of records",\n "description": "List of records."\n }\n },\n "nullable": false,\n "required": [\n "pagination",\n "data"\n ],\n "description": "A page.\\n\\nCollection of records with pagination indformation."\n },\n "IBbsArticleComment": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "parent_id": {\n "type": "string",\n "format": "uuid",\n "nullable": true,\n "title": "Parent comment\'s ID",\n "description": "Parent comment\'s ID."\n },\n "writer": {\n "type": "string",\n "title": "Writer of comment",\n "description": "Writer of comment."\n },\n "snapshots": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\n },\n "minItems": 1,\n "title": "List of snapshot contents",\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when a comment being created, and is\\naccumulated every time the comment is modified."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of comment",\n "description": "Creation time of comment."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "parent_id",\n "writer",\n "snapshots",\n "created_at"\n ],\n "description": "Comment written on an article.\\n\\n`IBbsArticleComment` is an entity that shapes the comments written on an article.\\n\\nAnd for this comment, as in the previous relationship between\\n{@link IBbsArticle } and {@link IBbsArticle.ISnapshot }, the content body of the\\ncomment is stored in the sub {@link IBbsArticleComment.ISnapshot } table for\\nevidentialism, and a new snapshot record is issued every time the comment is modified.\\n\\nAlso, `IBbsArticleComment` is expressing the relationship of the hierarchical reply\\nstructure through the {@link IBbsArticleComment.parent_id } attribute."\n },\n "IBbsArticleComment.ISnapshot": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of snapshot record",\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or comment."\n },\n "format": {\n "$ref": "#/components/schemas/IBbsArticleComment.Format",\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of comment",\n "description": "Content body of comment."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "created_at",\n "format",\n "body",\n "files"\n ],\n "description": "Snapshot of comment.\\n\\n`IBbsArticleComment.ISnapshot` is a snapshot entity that contains\\nthe contents of the comment.\\n\\nAs mentioned in {@link IBbsArticleComment }, designed to keep evidence\\nand prevent fraud."\n },\n "IBbsArticleComment.Format": {\n "type": "string",\n "enum": [\n "txt",\n "md",\n "html"\n ]\n },\n "IBbsArticleComment.ICreate": {\n "type": "object",\n "properties": {\n "writer": {\n "type": "string",\n "title": "Writer of comment",\n "description": "Writer of comment."\n },\n "format": {\n "type": "string",\n "enum": [\n "html",\n "md",\n "txt"\n ],\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of comment",\n "description": "Content body of comment."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "password": {\n "type": "string",\n "title": "Password for modification",\n "description": "Password for modification."\n }\n },\n "nullable": false,\n "required": [\n "writer",\n "format",\n "body",\n "files",\n "password"\n ]\n },\n "IBbsArticleComment.IUpdate": {\n "type": "object",\n "properties": {\n "format": {\n "type": "string",\n "enum": [\n "html",\n "md",\n "txt"\n ],\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of comment",\n "description": "Content body of comment."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "password": {\n "type": "string",\n "title": "Password for modification",\n "description": "Password for modification."\n }\n },\n "nullable": false,\n "required": [\n "format",\n "body",\n "files",\n "password"\n ]\n },\n "IBbsArticleComment.IErase": {\n "type": "object",\n "properties": {\n "password": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "password"\n ]\n },\n "IPerformance": {\n "type": "object",\n "properties": {\n "cpu": {\n "$ref": "#/components/schemas/process.global.NodeJS.CpuUsage"\n },\n "memory": {\n "$ref": "#/components/schemas/process.global.NodeJS.MemoryUsage"\n },\n "resource": {\n "$ref": "#/components/schemas/process.global.NodeJS.ResourceUsage"\n }\n },\n "nullable": false,\n "required": [\n "cpu",\n "memory",\n "resource"\n ]\n },\n "process.global.NodeJS.CpuUsage": {\n "type": "object",\n "properties": {\n "user": {\n "type": "number"\n },\n "system": {\n "type": "number"\n }\n },\n "nullable": false,\n "required": [\n "user",\n "system"\n ]\n },\n "process.global.NodeJS.MemoryUsage": {\n "type": "object",\n "properties": {\n "rss": {\n "type": "number"\n },\n "heapTotal": {\n "type": "number"\n },\n "heapUsed": {\n "type": "number"\n },\n "external": {\n "type": "number"\n },\n "arrayBuffers": {\n "type": "number"\n }\n },\n "nullable": false,\n "required": [\n "rss",\n "heapTotal",\n "heapUsed",\n "external",\n "arrayBuffers"\n ]\n },\n "process.global.NodeJS.ResourceUsage": {\n "type": "object",\n "properties": {\n "fsRead": {\n "type": "number"\n },\n "fsWrite": {\n "type": "number"\n },\n "involuntaryContextSwitches": {\n "type": "number"\n },\n "ipcReceived": {\n "type": "number"\n },\n "ipcSent": {\n "type": "number"\n },\n "majorPageFault": {\n "type": "number"\n },\n "maxRSS": {\n "type": "number"\n },\n "minorPageFault": {\n "type": "number"\n },\n "sharedMemorySize": {\n "type": "number"\n },\n "signalsCount": {\n "type": "number"\n },\n "swappedOut": {\n "type": "number"\n },\n "systemCPUTime": {\n "type": "number"\n },\n "unsharedDataSize": {\n "type": "number"\n },\n "unsharedStackSize": {\n "type": "number"\n },\n "userCPUTime": {\n "type": "number"\n },\n "voluntaryContextSwitches": {\n "type": "number"\n }\n },\n "nullable": false,\n "required": [\n "fsRead",\n "fsWrite",\n "involuntaryContextSwitches",\n "ipcReceived",\n "ipcSent",\n "majorPageFault",\n "maxRSS",\n "minorPageFault",\n "sharedMemorySize",\n "signalsCount",\n "swappedOut",\n "systemCPUTime",\n "unsharedDataSize",\n "unsharedStackSize",\n "userCPUTime",\n "voluntaryContextSwitches"\n ]\n },\n "ISystem": {\n "type": "object",\n "properties": {\n "uid": {\n "type": "number",\n "title": "Random Unique ID",\n "description": "Random Unique ID."\n },\n "arguments": {\n "type": "array",\n "items": {\n "type": "string"\n },\n "description": "`process.argv`"\n },\n "commit": {\n "$ref": "#/components/schemas/ISystem.ICommit",\n "title": "Git commit info",\n "description": "Git commit info."\n },\n "package": {\n "$ref": "#/components/schemas/ISystem.IPackage",\n "description": "`package.json`"\n },\n "created_at": {\n "type": "string",\n "title": "Creation time of this server",\n "description": "Creation time of this server."\n }\n },\n "nullable": false,\n "required": [\n "uid",\n "arguments",\n "commit",\n "package",\n "created_at"\n ],\n "description": "System Information."\n },\n "ISystem.ICommit": {\n "type": "object",\n "properties": {\n "shortHash": {\n "type": "string"\n },\n "branch": {\n "type": "string"\n },\n "hash": {\n "type": "string"\n },\n "subject": {\n "type": "string"\n },\n "sanitizedSubject": {\n "type": "string"\n },\n "body": {\n "type": "string"\n },\n "author": {\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\n },\n "committer": {\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\n },\n "authored_at": {\n "type": "string"\n },\n "commited_at": {\n "type": "string"\n },\n "notes": {\n "type": "string"\n },\n "tags": {\n "type": "array",\n "items": {\n "type": "string"\n }\n }\n },\n "nullable": false,\n "required": [\n "shortHash",\n "branch",\n "hash",\n "subject",\n "sanitizedSubject",\n "body",\n "author",\n "committer",\n "authored_at",\n "commited_at",\n "tags"\n ],\n "description": "Git commit info."\n },\n "ISystem.ICommit.IUser": {\n "type": "object",\n "properties": {\n "name": {\n "type": "string"\n },\n "email": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "name",\n "email"\n ],\n "description": "Git user account info."\n },\n "ISystem.IPackage": {\n "type": "object",\n "properties": {\n "name": {\n "type": "string"\n },\n "version": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "main": {\n "type": "string"\n },\n "typings": {\n "type": "string"\n },\n "scripts": {\n "$ref": "#/components/schemas/Recordstringstring"\n },\n "repository": {\n "type": "object",\n "properties": {\n "type": {\n "type": "string",\n "enum": [\n "git"\n ]\n },\n "url": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "type",\n "url"\n ]\n },\n "author": {\n "type": "string"\n },\n "license": {\n "type": "string"\n },\n "bugs": {\n "type": "object",\n "properties": {\n "url": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "url"\n ]\n },\n "homepage": {\n "type": "string"\n },\n "devDependencies": {\n "$ref": "#/components/schemas/Recordstringstring"\n },\n "dependencies": {\n "$ref": "#/components/schemas/Recordstringstring"\n },\n "publishConfig": {\n "type": "object",\n "properties": {\n "registry": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "registry"\n ]\n },\n "files": {\n "type": "array",\n "items": {\n "type": "string"\n }\n }\n },\n "nullable": false,\n "required": [\n "name",\n "version",\n "description",\n "scripts",\n "repository",\n "author",\n "license",\n "bugs",\n "homepage",\n "dependencies"\n ],\n "description": "NPM package info."\n },\n "Recordstringstring": {\n "type": "object",\n "properties": {},\n "nullable": false,\n "description": "Construct a type with a set of properties K of type T"\n }\n }\n }\n}',
|
|
106
|
+
"test/TestGlobal.ts": 'import api from "@ORGANIZATION/PROJECT-api";\n\nexport namespace TestGlobal {\n export const connection = (): api.IConnection => ({\n host: `http://127.0.0.1:37001`,\n });\n}\n',
|
|
107
|
+
"test/index.ts": 'import { DynamicExecutor } from "@nestia/e2e";\nimport chalk from "chalk";\n\nimport { TestGlobal } from "./TestGlobal";\nimport { ArgumentParser } from "./utils/ArgumentParser";\n\ninterface IOptions {\n simulate: boolean;\n include?: string[];\n exclude?: string[];\n trace: boolean;\n}\n\nconst getOptions = () =>\n ArgumentParser.parse<IOptions>(async (command, prompt, action) => {\n command.option("--simulate <boolean>", "Mockup Simultator");\n command.option("--include <string...>", "include feature files");\n command.option("--exclude <string...>", "exclude feature files");\n command.option("--trace <boolean>", "trace detailed errors");\n\n return action(async (options) => {\n if (typeof options.simulate === "string")\n options.simulate = options.simulate === "true";\n options.simulate ??= await prompt.boolean("simulate")("Mockup Simulator");\n options.trace = options.trace !== ("false" as any);\n return options as IOptions;\n });\n });\n\nconst main = async (): Promise<void> => {\n // DO TEST\n const options: IOptions = await getOptions();\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\n prefix: "test",\n location: __dirname + "/features",\n extension: __filename.substring(__filename.length - 2),\n parameters: () => [\n {\n ...TestGlobal.connection(),\n simulate: options.simulate,\n },\n ],\n filter: (func) =>\n (!options.include?.length ||\n (options.include ?? []).some((str) => func.includes(str))) &&\n (!options.exclude?.length ||\n (options.exclude ?? []).every((str) => !func.includes(str))),\n onComplete: (exec) => {\n const trace = (str: string) =>\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\n if (exec.error === null) {\n const elapsed: number =\n new Date(exec.completed_at).getTime() -\n new Date(exec.started_at).getTime();\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\n } else trace(chalk.red(exec.error.name));\n },\n });\n\n // REPORT EXCEPTIONS\n const exceptions: Error[] = report.executions\n .filter((exec) => exec.error !== null)\n .map((exec) => exec.error!);\n if (exceptions.length === 0) {\n console.log("Success");\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\n } else {\n if (options.trace !== false) for (const exp of exceptions) console.log(exp);\n console.log("Failed");\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\n }\n\n // TERMINATE\n if (exceptions.length) process.exit(-1);\n else process.exit(0);\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n',
|
|
108
|
+
"test/start.ts": 'import api from "@ORGANIZATION/PROJECT-api";\nimport { IBbsArticleComment } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticleComment";\nimport typia, { tags } from "typia";\n\nimport { TestGlobal } from "./TestGlobal";\n\nconst main = async () => {\n const connection: api.IConnection = {\n ...TestGlobal.connection(),\n simulate: true,\n };\n const output: IBbsArticleComment =\n await api.functional.bbs.articles.comments.create(\n connection,\n typia.random<string & tags.Format<"uuid">>(),\n typia.random<IBbsArticleComment.ICreate>(),\n );\n typia.assert(output);\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n',
|
|
109
|
+
"test/swagger.ts": 'import express from "express";\nimport ui from "swagger-ui-express";\n\nimport swagger from "../swagger.json";\n\nconst main = async (): Promise<void> => {\n const app = express();\n app.use("/", ui.serve, ui.setup(swagger));\n app.listen(3000);\n\n console.log("-----------------------------------------------------------");\n console.log("\\n Swagger UI Address: http://127.0.0.1:3000 \\n");\n console.log("-----------------------------------------------------------");\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n',
|
|
110
|
+
"test/tsconfig.json": '{\n "extends": "../tsconfig.json",\n "compilerOptions": {\n "outDir": "../bin",\n "paths": {\n "@ORGANIZATION/PROJECT-api": ["../src"],\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\n },\n "plugins": [\n { "transform": "typia/lib/transform" },\n { "transform": "typescript-transform-paths" },\n ],\n },\n "include": [\n ".", \n "../src",\n ],\n}',
|
|
111
|
+
"test/utils/ArgumentParser.ts": 'import commander from "commander";\nimport * as inquirer from "inquirer";\n\nexport namespace ArgumentParser {\n export type Inquiry<T> = (\n command: commander.Command,\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\n ) => Promise<T>;\n\n export interface Prompt {\n select: (\n name: string,\n ) => (\n message: string,\n ) => <Choice extends string>(choices: Choice[]) => Promise<Choice>;\n boolean: (name: string) => (message: string) => Promise<boolean>;\n }\n\n export const parse = async <T>(\n inquiry: (\n command: commander.Command,\n prompt: Prompt,\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\n ) => Promise<T>,\n ): Promise<T> => {\n // TAKE OPTIONS\n const action = (closure: (options: Partial<T>) => Promise<T>) =>\n new Promise<T>((resolve, reject) => {\n commander.program.action(async (options) => {\n try {\n resolve(await closure(options));\n } catch (exp) {\n reject(exp);\n }\n });\n commander.program.parseAsync().catch(reject);\n });\n\n const select =\n (name: string) =>\n (message: string) =>\n async <Choice extends string>(choices: Choice[]): Promise<Choice> =>\n (\n await inquirer.createPromptModule()({\n type: "list",\n name,\n message,\n choices,\n })\n )[name];\n const boolean = (name: string) => async (message: string) =>\n (\n await inquirer.createPromptModule()({\n type: "confirm",\n name,\n message,\n })\n )[name] as boolean;\n\n const output: T | Error = await (async () => {\n try {\n return await inquiry(commander.program, { select, boolean }, action);\n } catch (error) {\n return error as Error;\n }\n })();\n\n // RETURNS\n if (output instanceof Error) throw output;\n return output;\n };\n}\n',
|
|
112
|
+
"tsconfig.json": '{\n "compilerOptions": {\n /* Visit https://aka.ms/tsconfig to read more about this file */\n /* Projects */\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\n /* Language and Environment */\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\n "lib": [\n "DOM",\n "ES2015"\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\n /* Modules */\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\n "paths": {\n "@ORGANIZATION/PROJECT-api": ["../src"],\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\n "resolveJsonModule": true, /* Enable importing .json files. */\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\n /* JavaScript Support */\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\n /* Emit */\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\n // "noEmit": true, /* Disable emitting files from a compilation. */\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\n /* Interop Constraints */\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\n /* Completeness */\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\n "plugins": [\n { "transform": "typia/lib/transform" },\n { "transform": "typescript-transform-paths" },\n ],\n },\n "include": ["src"],\n}'
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
var FilePrinter;
|
|
@@ -1119,7 +1119,7 @@ class NestiaMigrateApplication {
|
|
|
1119
1119
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io38(value);
|
|
1120
1120
|
});
|
|
1121
1121
|
const _io38 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _io39(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io42(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io45(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io48(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]) && (undefined === input["x-samchon-accessor"] || Array.isArray(input["x-samchon-accessor"]) && input["x-samchon-accessor"].every(elem => "string" === typeof elem)) && (undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"]);
|
|
1122
|
-
const _io39 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "
|
|
1122
|
+
const _io39 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || "querystring" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu0(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io40(input.examples));
|
|
1123
1123
|
const _io40 = input => Object.keys(input).every(key => {
|
|
1124
1124
|
const value = input[key];
|
|
1125
1125
|
if (undefined === value) return true;
|
|
@@ -1160,12 +1160,12 @@ class NestiaMigrateApplication {
|
|
|
1160
1160
|
if (undefined === value) return true;
|
|
1161
1161
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu2(value);
|
|
1162
1162
|
});
|
|
1163
|
-
const _io55 = input => (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)) &&
|
|
1164
|
-
const _io56 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) &&
|
|
1165
|
-
const _io57 = input => (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) &&
|
|
1166
|
-
const _io58 = input => (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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
1167
|
-
const _io59 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
1168
|
-
const _io60 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io54(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) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
1163
|
+
const _io55 = input => (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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type;
|
|
1164
|
+
const _io56 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type;
|
|
1165
|
+
const _io57 = input => (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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type;
|
|
1166
|
+
const _io58 = input => (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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type;
|
|
1167
|
+
const _io59 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type;
|
|
1168
|
+
const _io60 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io54(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) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type;
|
|
1169
1169
|
const _io61 = input => "string" === typeof input.$ref;
|
|
1170
1170
|
const _io62 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem));
|
|
1171
1171
|
const _io63 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem));
|
|
@@ -1176,12 +1176,12 @@ class NestiaMigrateApplication {
|
|
|
1176
1176
|
if (undefined === value) return true;
|
|
1177
1177
|
return "object" === typeof value && null !== value && _iu12(value);
|
|
1178
1178
|
});
|
|
1179
|
-
const _io67 = input => (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)) &&
|
|
1180
|
-
const _io68 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) &&
|
|
1181
|
-
const _io69 = input => (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) &&
|
|
1182
|
-
const _io70 = input => (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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
1183
|
-
const _io71 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
1184
|
-
const _io72 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io54(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) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
1179
|
+
const _io67 = input => (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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
1180
|
+
const _io68 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
1181
|
+
const _io69 = input => (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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
1182
|
+
const _io70 = input => (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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
1183
|
+
const _io71 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
1184
|
+
const _io72 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io54(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) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
1185
1185
|
const _io73 = input => "string" === typeof input.$ref && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description);
|
|
1186
1186
|
const _io74 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem)) && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description);
|
|
1187
1187
|
const _io75 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem)) && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description);
|
|
@@ -1243,19 +1243,19 @@ class NestiaMigrateApplication {
|
|
|
1243
1243
|
if (undefined === value) return true;
|
|
1244
1244
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
1245
1245
|
});
|
|
1246
|
-
const _io106 = 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)) &&
|
|
1247
|
-
const _io107 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) &&
|
|
1248
|
-
const _io108 = 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) &&
|
|
1249
|
-
const _io109 = 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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
1250
|
-
const _io110 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
1251
|
-
const _io111 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io105(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) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
1246
|
+
const _io106 = 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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type;
|
|
1247
|
+
const _io107 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type;
|
|
1248
|
+
const _io108 = 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type;
|
|
1249
|
+
const _io109 = 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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type;
|
|
1250
|
+
const _io110 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type;
|
|
1251
|
+
const _io111 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io105(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) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type;
|
|
1252
1252
|
const _io112 = input => "string" === typeof input.$ref;
|
|
1253
1253
|
const _io113 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem));
|
|
1254
1254
|
const _io114 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem));
|
|
1255
1255
|
const _io115 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io116(input.discriminator));
|
|
1256
1256
|
const _io116 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io23(input.mapping));
|
|
1257
|
-
const _io117 = input => (null === input["default"] || undefined === input["default"]) &&
|
|
1258
|
-
const _io118 = input =>
|
|
1257
|
+
const _io117 = input => (null === input["default"] || undefined === input["default"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "null" === input.type;
|
|
1258
|
+
const _io118 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && (null !== input.type && undefined === input.type);
|
|
1259
1259
|
const _io119 = input => Object.keys(input).every(key => {
|
|
1260
1260
|
const value = input[key];
|
|
1261
1261
|
if (undefined === value) return true;
|
|
@@ -1287,7 +1287,7 @@ class NestiaMigrateApplication {
|
|
|
1287
1287
|
if (undefined === value) return true;
|
|
1288
1288
|
return "object" === typeof value && null !== value && _io130(value);
|
|
1289
1289
|
});
|
|
1290
|
-
const _io130 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "
|
|
1290
|
+
const _io130 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu5(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io123(input.examples));
|
|
1291
1291
|
const _io131 = input => Object.keys(input).every(key => {
|
|
1292
1292
|
const value = input[key];
|
|
1293
1293
|
if (undefined === value) return true;
|
|
@@ -1358,19 +1358,19 @@ class NestiaMigrateApplication {
|
|
|
1358
1358
|
});
|
|
1359
1359
|
const _io163 = input => Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu7(input.items)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu7(input.additionalItems))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io162(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu7(input.additionalProperties))) && (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) && _iu7(elem))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io176(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && (Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && "string" === typeof input.$ref;
|
|
1360
1360
|
const _io164 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable);
|
|
1361
|
-
const _io165 = 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)) &&
|
|
1362
|
-
const _io166 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(input.maximum)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMinimum) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMaximum) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) &&
|
|
1363
|
-
const _io167 = 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) &&
|
|
1364
|
-
const _io168 = 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 && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
1365
|
-
const _io169 = 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) && _iu7(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu7(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(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) && _iu7(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
1366
|
-
const _io170 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io162(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) && _iu7(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
1361
|
+
const _io165 = 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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type;
|
|
1362
|
+
const _io166 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(input.maximum)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMinimum) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMaximum) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type;
|
|
1363
|
+
const _io167 = 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type;
|
|
1364
|
+
const _io168 = 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 && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type;
|
|
1365
|
+
const _io169 = 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) && _iu7(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu7(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(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) && _iu7(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type;
|
|
1366
|
+
const _io170 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io162(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) && _iu7(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type;
|
|
1367
1367
|
const _io171 = input => "string" === typeof input.$ref;
|
|
1368
1368
|
const _io172 = input => "string" === typeof input.$recursiveRef;
|
|
1369
1369
|
const _io173 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem));
|
|
1370
1370
|
const _io174 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem));
|
|
1371
1371
|
const _io175 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io176(input.discriminator));
|
|
1372
1372
|
const _io176 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io23(input.mapping));
|
|
1373
|
-
const _io177 = input => (null === input["default"] || undefined === input["default"]) &&
|
|
1373
|
+
const _io177 = input => (null === input["default"] || undefined === input["default"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "null" === input.type;
|
|
1374
1374
|
const _io178 = input => null !== input.type && undefined === input.type && true && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly);
|
|
1375
1375
|
const _io179 = input => Object.keys(input).every(key => {
|
|
1376
1376
|
const value = input[key];
|
|
@@ -1378,7 +1378,7 @@ class NestiaMigrateApplication {
|
|
|
1378
1378
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io180(value);
|
|
1379
1379
|
});
|
|
1380
1380
|
const _io180 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _iu8(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && _io155(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input["x-additionalOperations"] || "object" === typeof input["x-additionalOperations"] && null !== input["x-additionalOperations"] && false === Array.isArray(input["x-additionalOperations"]) && _io187(input["x-additionalOperations"])) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io188(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io188(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io188(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io188(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io188(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io188(input.patch)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io188(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io188(input.trace));
|
|
1381
|
-
const _io181 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "
|
|
1381
|
+
const _io181 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io182(input.examples));
|
|
1382
1382
|
const _io182 = input => Object.keys(input).every(key => {
|
|
1383
1383
|
const value = input[key];
|
|
1384
1384
|
if (undefined === value) return true;
|
|
@@ -1480,19 +1480,19 @@ class NestiaMigrateApplication {
|
|
|
1480
1480
|
});
|
|
1481
1481
|
const _io225 = input => Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu9(input.items)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu9(input.additionalItems))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io224(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu9(input.additionalProperties))) && (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) && _iu9(elem))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io238(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem))) && (Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem))) && "string" === typeof input.$ref;
|
|
1482
1482
|
const _io226 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable);
|
|
1483
|
-
const _io227 = 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)) &&
|
|
1484
|
-
const _io228 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(input.maximum)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMinimum) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMaximum) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) &&
|
|
1485
|
-
const _io229 = 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) &&
|
|
1486
|
-
const _io230 = 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 && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
1487
|
-
const _io231 = 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) && _iu9(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu9(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(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) && _iu9(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
1488
|
-
const _io232 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io224(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) && _iu9(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
1483
|
+
const _io227 = 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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type;
|
|
1484
|
+
const _io228 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(input.maximum)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMinimum) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMaximum) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type;
|
|
1485
|
+
const _io229 = 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type;
|
|
1486
|
+
const _io230 = 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 && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type;
|
|
1487
|
+
const _io231 = 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) && _iu9(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu9(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(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) && _iu9(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type;
|
|
1488
|
+
const _io232 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io224(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) && _iu9(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type;
|
|
1489
1489
|
const _io233 = input => "string" === typeof input.$ref;
|
|
1490
1490
|
const _io234 = input => "string" === typeof input.$recursiveRef;
|
|
1491
1491
|
const _io235 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem));
|
|
1492
1492
|
const _io236 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem));
|
|
1493
1493
|
const _io237 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io238(input.discriminator));
|
|
1494
1494
|
const _io238 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io23(input.mapping));
|
|
1495
|
-
const _io239 = input => (null === input["default"] || undefined === input["default"]) &&
|
|
1495
|
+
const _io239 = input => (null === input["default"] || undefined === input["default"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "null" === input.type;
|
|
1496
1496
|
const _io240 = input => null !== input.type && undefined === input.type && true && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly);
|
|
1497
1497
|
const _io241 = input => Object.keys(input).every(key => {
|
|
1498
1498
|
const value = input[key];
|
|
@@ -1500,7 +1500,7 @@ class NestiaMigrateApplication {
|
|
|
1500
1500
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io242(value);
|
|
1501
1501
|
});
|
|
1502
1502
|
const _io242 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _iu10(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && _io217(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.additionalOperations || "object" === typeof input.additionalOperations && null !== input.additionalOperations && false === Array.isArray(input.additionalOperations) && _io249(input.additionalOperations)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io250(input["delete"])) && (undefined === input.query || "object" === typeof input.query && null !== input.query && false === Array.isArray(input.query) && _io250(input.query)) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io250(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io250(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io250(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io250(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io250(input.patch)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io250(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io250(input.trace));
|
|
1503
|
-
const _io243 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "
|
|
1503
|
+
const _io243 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || "querystring" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu9(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io244(input.examples));
|
|
1504
1504
|
const _io244 = input => Object.keys(input).every(key => {
|
|
1505
1505
|
const value = input[key];
|
|
1506
1506
|
if (undefined === value) return true;
|
|
@@ -3389,7 +3389,7 @@ class NestiaMigrateApplication {
|
|
|
3389
3389
|
path: _path + ".name",
|
|
3390
3390
|
expected: "(string | undefined)",
|
|
3391
3391
|
value: input.name
|
|
3392
|
-
}, _errorFactory)) && ("query" === input["in"] || "
|
|
3392
|
+
}, _errorFactory)) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || "querystring" === input["in"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
3393
3393
|
method: "typia.assert",
|
|
3394
3394
|
path: _path + '["in"]',
|
|
3395
3395
|
expected: '("cookie" | "header" | "path" | "query" | "querystring")',
|
|
@@ -3950,11 +3950,6 @@ class NestiaMigrateApplication {
|
|
|
3950
3950
|
path: _path + '["enum"]',
|
|
3951
3951
|
expected: "(Array<boolean | null> | undefined)",
|
|
3952
3952
|
value: input["enum"]
|
|
3953
|
-
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
3954
|
-
method: "typia.assert",
|
|
3955
|
-
path: _path + ".type",
|
|
3956
|
-
expected: '"boolean"',
|
|
3957
|
-
value: input.type
|
|
3958
3953
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
3959
3954
|
method: "typia.assert",
|
|
3960
3955
|
path: _path + ".title",
|
|
@@ -3980,6 +3975,11 @@ class NestiaMigrateApplication {
|
|
|
3980
3975
|
path: _path + ".writeOnly",
|
|
3981
3976
|
expected: "(boolean | undefined)",
|
|
3982
3977
|
value: input.writeOnly
|
|
3978
|
+
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
3979
|
+
method: "typia.assert",
|
|
3980
|
+
path: _path + ".type",
|
|
3981
|
+
expected: '"boolean"',
|
|
3982
|
+
value: input.type
|
|
3983
3983
|
}, _errorFactory));
|
|
3984
3984
|
const _ao56 = (input, _path, _exceptionable = true) => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (__typia_transform__isTypeInt64._isTypeInt64(input["default"]) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
3985
3985
|
method: "typia.assert",
|
|
@@ -4051,11 +4051,6 @@ class NestiaMigrateApplication {
|
|
|
4051
4051
|
path: _path + ".multipleOf",
|
|
4052
4052
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
4053
4053
|
value: input.multipleOf
|
|
4054
|
-
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4055
|
-
method: "typia.assert",
|
|
4056
|
-
path: _path + ".type",
|
|
4057
|
-
expected: '"integer"',
|
|
4058
|
-
value: input.type
|
|
4059
4054
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4060
4055
|
method: "typia.assert",
|
|
4061
4056
|
path: _path + ".title",
|
|
@@ -4081,6 +4076,11 @@ class NestiaMigrateApplication {
|
|
|
4081
4076
|
path: _path + ".writeOnly",
|
|
4082
4077
|
expected: "(boolean | undefined)",
|
|
4083
4078
|
value: input.writeOnly
|
|
4079
|
+
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4080
|
+
method: "typia.assert",
|
|
4081
|
+
path: _path + ".type",
|
|
4082
|
+
expected: '"integer"',
|
|
4083
|
+
value: input.type
|
|
4084
4084
|
}, _errorFactory));
|
|
4085
4085
|
const _ao57 = (input, _path, _exceptionable = true) => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4086
4086
|
method: "typia.assert",
|
|
@@ -4132,11 +4132,6 @@ class NestiaMigrateApplication {
|
|
|
4132
4132
|
path: _path + ".multipleOf",
|
|
4133
4133
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
4134
4134
|
value: input.multipleOf
|
|
4135
|
-
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4136
|
-
method: "typia.assert",
|
|
4137
|
-
path: _path + ".type",
|
|
4138
|
-
expected: '"number"',
|
|
4139
|
-
value: input.type
|
|
4140
4135
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4141
4136
|
method: "typia.assert",
|
|
4142
4137
|
path: _path + ".title",
|
|
@@ -4162,6 +4157,11 @@ class NestiaMigrateApplication {
|
|
|
4162
4157
|
path: _path + ".writeOnly",
|
|
4163
4158
|
expected: "(boolean | undefined)",
|
|
4164
4159
|
value: input.writeOnly
|
|
4160
|
+
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4161
|
+
method: "typia.assert",
|
|
4162
|
+
path: _path + ".type",
|
|
4163
|
+
expected: '"number"',
|
|
4164
|
+
value: input.type
|
|
4165
4165
|
}, _errorFactory));
|
|
4166
4166
|
const _ao58 = (input, _path, _exceptionable = true) => (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4167
4167
|
method: "typia.assert",
|
|
@@ -4213,11 +4213,6 @@ class NestiaMigrateApplication {
|
|
|
4213
4213
|
path: _path + ".maxLength",
|
|
4214
4214
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
4215
4215
|
value: input.maxLength
|
|
4216
|
-
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4217
|
-
method: "typia.assert",
|
|
4218
|
-
path: _path + ".type",
|
|
4219
|
-
expected: '"string"',
|
|
4220
|
-
value: input.type
|
|
4221
4216
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4222
4217
|
method: "typia.assert",
|
|
4223
4218
|
path: _path + ".title",
|
|
@@ -4243,6 +4238,11 @@ class NestiaMigrateApplication {
|
|
|
4243
4238
|
path: _path + ".writeOnly",
|
|
4244
4239
|
expected: "(boolean | undefined)",
|
|
4245
4240
|
value: input.writeOnly
|
|
4241
|
+
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4242
|
+
method: "typia.assert",
|
|
4243
|
+
path: _path + ".type",
|
|
4244
|
+
expected: '"string"',
|
|
4245
|
+
value: input.type
|
|
4246
4246
|
}, _errorFactory));
|
|
4247
4247
|
const _ao59 = (input, _path, _exceptionable = true) => (("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4248
4248
|
method: "typia.assert",
|
|
@@ -4279,11 +4279,6 @@ class NestiaMigrateApplication {
|
|
|
4279
4279
|
path: _path + ".maxItems",
|
|
4280
4280
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
4281
4281
|
value: input.maxItems
|
|
4282
|
-
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4283
|
-
method: "typia.assert",
|
|
4284
|
-
path: _path + ".type",
|
|
4285
|
-
expected: '"array"',
|
|
4286
|
-
value: input.type
|
|
4287
4282
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4288
4283
|
method: "typia.assert",
|
|
4289
4284
|
path: _path + ".title",
|
|
@@ -4309,6 +4304,11 @@ class NestiaMigrateApplication {
|
|
|
4309
4304
|
path: _path + ".writeOnly",
|
|
4310
4305
|
expected: "(boolean | undefined)",
|
|
4311
4306
|
value: input.writeOnly
|
|
4307
|
+
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4308
|
+
method: "typia.assert",
|
|
4309
|
+
path: _path + ".type",
|
|
4310
|
+
expected: '"array"',
|
|
4311
|
+
value: input.type
|
|
4312
4312
|
}, _errorFactory));
|
|
4313
4313
|
const _ao60 = (input, _path, _exceptionable = true) => (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4314
4314
|
method: "typia.assert",
|
|
@@ -4360,11 +4360,6 @@ class NestiaMigrateApplication {
|
|
|
4360
4360
|
path: _path + ".minProperties",
|
|
4361
4361
|
expected: "(number | undefined)",
|
|
4362
4362
|
value: input.minProperties
|
|
4363
|
-
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4364
|
-
method: "typia.assert",
|
|
4365
|
-
path: _path + ".type",
|
|
4366
|
-
expected: '"object"',
|
|
4367
|
-
value: input.type
|
|
4368
4363
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4369
4364
|
method: "typia.assert",
|
|
4370
4365
|
path: _path + ".title",
|
|
@@ -4390,6 +4385,11 @@ class NestiaMigrateApplication {
|
|
|
4390
4385
|
path: _path + ".writeOnly",
|
|
4391
4386
|
expected: "(boolean | undefined)",
|
|
4392
4387
|
value: input.writeOnly
|
|
4388
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4389
|
+
method: "typia.assert",
|
|
4390
|
+
path: _path + ".type",
|
|
4391
|
+
expected: '"object"',
|
|
4392
|
+
value: input.type
|
|
4393
4393
|
}, _errorFactory));
|
|
4394
4394
|
const _ao61 = (input, _path, _exceptionable = true) => "string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4395
4395
|
method: "typia.assert",
|
|
@@ -4496,11 +4496,6 @@ class NestiaMigrateApplication {
|
|
|
4496
4496
|
path: _path + '["enum"]',
|
|
4497
4497
|
expected: "(Array<boolean | null> | undefined)",
|
|
4498
4498
|
value: input["enum"]
|
|
4499
|
-
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4500
|
-
method: "typia.assert",
|
|
4501
|
-
path: _path + ".type",
|
|
4502
|
-
expected: '"boolean"',
|
|
4503
|
-
value: input.type
|
|
4504
4499
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4505
4500
|
method: "typia.assert",
|
|
4506
4501
|
path: _path + ".title",
|
|
@@ -4526,6 +4521,11 @@ class NestiaMigrateApplication {
|
|
|
4526
4521
|
path: _path + ".writeOnly",
|
|
4527
4522
|
expected: "(boolean | undefined)",
|
|
4528
4523
|
value: input.writeOnly
|
|
4524
|
+
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4525
|
+
method: "typia.assert",
|
|
4526
|
+
path: _path + ".type",
|
|
4527
|
+
expected: '"boolean"',
|
|
4528
|
+
value: input.type
|
|
4529
4529
|
}, _errorFactory)) && ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4530
4530
|
method: "typia.assert",
|
|
4531
4531
|
path: _path + ".name",
|
|
@@ -4607,11 +4607,6 @@ class NestiaMigrateApplication {
|
|
|
4607
4607
|
path: _path + ".multipleOf",
|
|
4608
4608
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
4609
4609
|
value: input.multipleOf
|
|
4610
|
-
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4611
|
-
method: "typia.assert",
|
|
4612
|
-
path: _path + ".type",
|
|
4613
|
-
expected: '"integer"',
|
|
4614
|
-
value: input.type
|
|
4615
4610
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4616
4611
|
method: "typia.assert",
|
|
4617
4612
|
path: _path + ".title",
|
|
@@ -4637,6 +4632,11 @@ class NestiaMigrateApplication {
|
|
|
4637
4632
|
path: _path + ".writeOnly",
|
|
4638
4633
|
expected: "(boolean | undefined)",
|
|
4639
4634
|
value: input.writeOnly
|
|
4635
|
+
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4636
|
+
method: "typia.assert",
|
|
4637
|
+
path: _path + ".type",
|
|
4638
|
+
expected: '"integer"',
|
|
4639
|
+
value: input.type
|
|
4640
4640
|
}, _errorFactory)) && ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4641
4641
|
method: "typia.assert",
|
|
4642
4642
|
path: _path + ".name",
|
|
@@ -4698,11 +4698,6 @@ class NestiaMigrateApplication {
|
|
|
4698
4698
|
path: _path + ".multipleOf",
|
|
4699
4699
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
4700
4700
|
value: input.multipleOf
|
|
4701
|
-
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4702
|
-
method: "typia.assert",
|
|
4703
|
-
path: _path + ".type",
|
|
4704
|
-
expected: '"number"',
|
|
4705
|
-
value: input.type
|
|
4706
4701
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4707
4702
|
method: "typia.assert",
|
|
4708
4703
|
path: _path + ".title",
|
|
@@ -4728,6 +4723,11 @@ class NestiaMigrateApplication {
|
|
|
4728
4723
|
path: _path + ".writeOnly",
|
|
4729
4724
|
expected: "(boolean | undefined)",
|
|
4730
4725
|
value: input.writeOnly
|
|
4726
|
+
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4727
|
+
method: "typia.assert",
|
|
4728
|
+
path: _path + ".type",
|
|
4729
|
+
expected: '"number"',
|
|
4730
|
+
value: input.type
|
|
4731
4731
|
}, _errorFactory)) && ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4732
4732
|
method: "typia.assert",
|
|
4733
4733
|
path: _path + ".name",
|
|
@@ -4789,11 +4789,6 @@ class NestiaMigrateApplication {
|
|
|
4789
4789
|
path: _path + ".maxLength",
|
|
4790
4790
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
4791
4791
|
value: input.maxLength
|
|
4792
|
-
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4793
|
-
method: "typia.assert",
|
|
4794
|
-
path: _path + ".type",
|
|
4795
|
-
expected: '"string"',
|
|
4796
|
-
value: input.type
|
|
4797
4792
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4798
4793
|
method: "typia.assert",
|
|
4799
4794
|
path: _path + ".title",
|
|
@@ -4819,6 +4814,11 @@ class NestiaMigrateApplication {
|
|
|
4819
4814
|
path: _path + ".writeOnly",
|
|
4820
4815
|
expected: "(boolean | undefined)",
|
|
4821
4816
|
value: input.writeOnly
|
|
4817
|
+
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4818
|
+
method: "typia.assert",
|
|
4819
|
+
path: _path + ".type",
|
|
4820
|
+
expected: '"string"',
|
|
4821
|
+
value: input.type
|
|
4822
4822
|
}, _errorFactory)) && ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4823
4823
|
method: "typia.assert",
|
|
4824
4824
|
path: _path + ".name",
|
|
@@ -4865,11 +4865,6 @@ class NestiaMigrateApplication {
|
|
|
4865
4865
|
path: _path + ".maxItems",
|
|
4866
4866
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
4867
4867
|
value: input.maxItems
|
|
4868
|
-
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4869
|
-
method: "typia.assert",
|
|
4870
|
-
path: _path + ".type",
|
|
4871
|
-
expected: '"array"',
|
|
4872
|
-
value: input.type
|
|
4873
4868
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4874
4869
|
method: "typia.assert",
|
|
4875
4870
|
path: _path + ".title",
|
|
@@ -4895,6 +4890,11 @@ class NestiaMigrateApplication {
|
|
|
4895
4890
|
path: _path + ".writeOnly",
|
|
4896
4891
|
expected: "(boolean | undefined)",
|
|
4897
4892
|
value: input.writeOnly
|
|
4893
|
+
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4894
|
+
method: "typia.assert",
|
|
4895
|
+
path: _path + ".type",
|
|
4896
|
+
expected: '"array"',
|
|
4897
|
+
value: input.type
|
|
4898
4898
|
}, _errorFactory)) && ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4899
4899
|
method: "typia.assert",
|
|
4900
4900
|
path: _path + ".name",
|
|
@@ -4956,11 +4956,6 @@ class NestiaMigrateApplication {
|
|
|
4956
4956
|
path: _path + ".minProperties",
|
|
4957
4957
|
expected: "(number | undefined)",
|
|
4958
4958
|
value: input.minProperties
|
|
4959
|
-
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4960
|
-
method: "typia.assert",
|
|
4961
|
-
path: _path + ".type",
|
|
4962
|
-
expected: '"object"',
|
|
4963
|
-
value: input.type
|
|
4964
4959
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4965
4960
|
method: "typia.assert",
|
|
4966
4961
|
path: _path + ".title",
|
|
@@ -4986,6 +4981,11 @@ class NestiaMigrateApplication {
|
|
|
4986
4981
|
path: _path + ".writeOnly",
|
|
4987
4982
|
expected: "(boolean | undefined)",
|
|
4988
4983
|
value: input.writeOnly
|
|
4984
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4985
|
+
method: "typia.assert",
|
|
4986
|
+
path: _path + ".type",
|
|
4987
|
+
expected: '"object"',
|
|
4988
|
+
value: input.type
|
|
4989
4989
|
}, _errorFactory)) && ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4990
4990
|
method: "typia.assert",
|
|
4991
4991
|
path: _path + ".name",
|
|
@@ -6018,11 +6018,6 @@ class NestiaMigrateApplication {
|
|
|
6018
6018
|
path: _path + '["enum"]',
|
|
6019
6019
|
expected: "(Array<boolean | null> | undefined)",
|
|
6020
6020
|
value: input["enum"]
|
|
6021
|
-
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6022
|
-
method: "typia.assert",
|
|
6023
|
-
path: _path + ".type",
|
|
6024
|
-
expected: '"boolean"',
|
|
6025
|
-
value: input.type
|
|
6026
6021
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6027
6022
|
method: "typia.assert",
|
|
6028
6023
|
path: _path + ".title",
|
|
@@ -6048,6 +6043,11 @@ class NestiaMigrateApplication {
|
|
|
6048
6043
|
path: _path + ".writeOnly",
|
|
6049
6044
|
expected: "(boolean | undefined)",
|
|
6050
6045
|
value: input.writeOnly
|
|
6046
|
+
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6047
|
+
method: "typia.assert",
|
|
6048
|
+
path: _path + ".type",
|
|
6049
|
+
expected: '"boolean"',
|
|
6050
|
+
value: input.type
|
|
6051
6051
|
}, _errorFactory));
|
|
6052
6052
|
const _ao107 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6053
6053
|
method: "typia.assert",
|
|
@@ -6124,11 +6124,6 @@ class NestiaMigrateApplication {
|
|
|
6124
6124
|
path: _path + ".multipleOf",
|
|
6125
6125
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
6126
6126
|
value: input.multipleOf
|
|
6127
|
-
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6128
|
-
method: "typia.assert",
|
|
6129
|
-
path: _path + ".type",
|
|
6130
|
-
expected: '"integer"',
|
|
6131
|
-
value: input.type
|
|
6132
6127
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6133
6128
|
method: "typia.assert",
|
|
6134
6129
|
path: _path + ".title",
|
|
@@ -6154,6 +6149,11 @@ class NestiaMigrateApplication {
|
|
|
6154
6149
|
path: _path + ".writeOnly",
|
|
6155
6150
|
expected: "(boolean | undefined)",
|
|
6156
6151
|
value: input.writeOnly
|
|
6152
|
+
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6153
|
+
method: "typia.assert",
|
|
6154
|
+
path: _path + ".type",
|
|
6155
|
+
expected: '"integer"',
|
|
6156
|
+
value: input.type
|
|
6157
6157
|
}, _errorFactory));
|
|
6158
6158
|
const _ao108 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6159
6159
|
method: "typia.assert",
|
|
@@ -6210,11 +6210,6 @@ class NestiaMigrateApplication {
|
|
|
6210
6210
|
path: _path + ".multipleOf",
|
|
6211
6211
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
6212
6212
|
value: input.multipleOf
|
|
6213
|
-
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6214
|
-
method: "typia.assert",
|
|
6215
|
-
path: _path + ".type",
|
|
6216
|
-
expected: '"number"',
|
|
6217
|
-
value: input.type
|
|
6218
6213
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6219
6214
|
method: "typia.assert",
|
|
6220
6215
|
path: _path + ".title",
|
|
@@ -6240,6 +6235,11 @@ class NestiaMigrateApplication {
|
|
|
6240
6235
|
path: _path + ".writeOnly",
|
|
6241
6236
|
expected: "(boolean | undefined)",
|
|
6242
6237
|
value: input.writeOnly
|
|
6238
|
+
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6239
|
+
method: "typia.assert",
|
|
6240
|
+
path: _path + ".type",
|
|
6241
|
+
expected: '"number"',
|
|
6242
|
+
value: input.type
|
|
6243
6243
|
}, _errorFactory));
|
|
6244
6244
|
const _ao109 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6245
6245
|
method: "typia.assert",
|
|
@@ -6296,11 +6296,6 @@ class NestiaMigrateApplication {
|
|
|
6296
6296
|
path: _path + ".maxLength",
|
|
6297
6297
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
6298
6298
|
value: input.maxLength
|
|
6299
|
-
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6300
|
-
method: "typia.assert",
|
|
6301
|
-
path: _path + ".type",
|
|
6302
|
-
expected: '"string"',
|
|
6303
|
-
value: input.type
|
|
6304
6299
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6305
6300
|
method: "typia.assert",
|
|
6306
6301
|
path: _path + ".title",
|
|
@@ -6326,6 +6321,11 @@ class NestiaMigrateApplication {
|
|
|
6326
6321
|
path: _path + ".writeOnly",
|
|
6327
6322
|
expected: "(boolean | undefined)",
|
|
6328
6323
|
value: input.writeOnly
|
|
6324
|
+
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6325
|
+
method: "typia.assert",
|
|
6326
|
+
path: _path + ".type",
|
|
6327
|
+
expected: '"string"',
|
|
6328
|
+
value: input.type
|
|
6329
6329
|
}, _errorFactory));
|
|
6330
6330
|
const _ao110 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6331
6331
|
method: "typia.assert",
|
|
@@ -6367,11 +6367,6 @@ class NestiaMigrateApplication {
|
|
|
6367
6367
|
path: _path + ".maxItems",
|
|
6368
6368
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
6369
6369
|
value: input.maxItems
|
|
6370
|
-
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6371
|
-
method: "typia.assert",
|
|
6372
|
-
path: _path + ".type",
|
|
6373
|
-
expected: '"array"',
|
|
6374
|
-
value: input.type
|
|
6375
6370
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6376
6371
|
method: "typia.assert",
|
|
6377
6372
|
path: _path + ".title",
|
|
@@ -6397,6 +6392,11 @@ class NestiaMigrateApplication {
|
|
|
6397
6392
|
path: _path + ".writeOnly",
|
|
6398
6393
|
expected: "(boolean | undefined)",
|
|
6399
6394
|
value: input.writeOnly
|
|
6395
|
+
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6396
|
+
method: "typia.assert",
|
|
6397
|
+
path: _path + ".type",
|
|
6398
|
+
expected: '"array"',
|
|
6399
|
+
value: input.type
|
|
6400
6400
|
}, _errorFactory));
|
|
6401
6401
|
const _ao111 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6402
6402
|
method: "typia.assert",
|
|
@@ -6453,11 +6453,6 @@ class NestiaMigrateApplication {
|
|
|
6453
6453
|
path: _path + ".minProperties",
|
|
6454
6454
|
expected: "(number | undefined)",
|
|
6455
6455
|
value: input.minProperties
|
|
6456
|
-
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6457
|
-
method: "typia.assert",
|
|
6458
|
-
path: _path + ".type",
|
|
6459
|
-
expected: '"object"',
|
|
6460
|
-
value: input.type
|
|
6461
6456
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6462
6457
|
method: "typia.assert",
|
|
6463
6458
|
path: _path + ".title",
|
|
@@ -6483,6 +6478,11 @@ class NestiaMigrateApplication {
|
|
|
6483
6478
|
path: _path + ".writeOnly",
|
|
6484
6479
|
expected: "(boolean | undefined)",
|
|
6485
6480
|
value: input.writeOnly
|
|
6481
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6482
|
+
method: "typia.assert",
|
|
6483
|
+
path: _path + ".type",
|
|
6484
|
+
expected: '"object"',
|
|
6485
|
+
value: input.type
|
|
6486
6486
|
}, _errorFactory));
|
|
6487
6487
|
const _ao112 = (input, _path, _exceptionable = true) => "string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6488
6488
|
method: "typia.assert",
|
|
@@ -6584,11 +6584,6 @@ class NestiaMigrateApplication {
|
|
|
6584
6584
|
path: _path + '["default"]',
|
|
6585
6585
|
expected: "(null | undefined)",
|
|
6586
6586
|
value: input["default"]
|
|
6587
|
-
}, _errorFactory)) && ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6588
|
-
method: "typia.assert",
|
|
6589
|
-
path: _path + ".type",
|
|
6590
|
-
expected: '"null"',
|
|
6591
|
-
value: input.type
|
|
6592
6587
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6593
6588
|
method: "typia.assert",
|
|
6594
6589
|
path: _path + ".title",
|
|
@@ -6614,18 +6609,13 @@ class NestiaMigrateApplication {
|
|
|
6614
6609
|
path: _path + ".writeOnly",
|
|
6615
6610
|
expected: "(boolean | undefined)",
|
|
6616
6611
|
value: input.writeOnly
|
|
6617
|
-
}, _errorFactory))
|
|
6618
|
-
const _ao118 = (input, _path, _exceptionable = true) => (null !== input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6619
|
-
method: "typia.assert",
|
|
6620
|
-
path: _path + ".type",
|
|
6621
|
-
expected: "undefined",
|
|
6622
|
-
value: input.type
|
|
6623
|
-
}, _errorFactory)) && (undefined === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6612
|
+
}, _errorFactory)) && ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6624
6613
|
method: "typia.assert",
|
|
6625
6614
|
path: _path + ".type",
|
|
6626
|
-
expected: "
|
|
6615
|
+
expected: '"null"',
|
|
6627
6616
|
value: input.type
|
|
6628
|
-
}, _errorFactory))
|
|
6617
|
+
}, _errorFactory));
|
|
6618
|
+
const _ao118 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6629
6619
|
method: "typia.assert",
|
|
6630
6620
|
path: _path + ".title",
|
|
6631
6621
|
expected: "(string | undefined)",
|
|
@@ -6650,7 +6640,17 @@ class NestiaMigrateApplication {
|
|
|
6650
6640
|
path: _path + ".writeOnly",
|
|
6651
6641
|
expected: "(boolean | undefined)",
|
|
6652
6642
|
value: input.writeOnly
|
|
6653
|
-
}, _errorFactory))
|
|
6643
|
+
}, _errorFactory)) && ((null !== input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6644
|
+
method: "typia.assert",
|
|
6645
|
+
path: _path + ".type",
|
|
6646
|
+
expected: "undefined",
|
|
6647
|
+
value: input.type
|
|
6648
|
+
}, _errorFactory)) && (undefined === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6649
|
+
method: "typia.assert",
|
|
6650
|
+
path: _path + ".type",
|
|
6651
|
+
expected: "undefined",
|
|
6652
|
+
value: input.type
|
|
6653
|
+
}, _errorFactory)));
|
|
6654
6654
|
const _ao119 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
6655
6655
|
const value = input[key];
|
|
6656
6656
|
if (undefined === value) return true;
|
|
@@ -6842,7 +6842,7 @@ class NestiaMigrateApplication {
|
|
|
6842
6842
|
path: _path + ".name",
|
|
6843
6843
|
expected: "(string | undefined)",
|
|
6844
6844
|
value: input.name
|
|
6845
|
-
}, _errorFactory)) && ("query" === input["in"] || "
|
|
6845
|
+
}, _errorFactory)) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6846
6846
|
method: "typia.assert",
|
|
6847
6847
|
path: _path + '["in"]',
|
|
6848
6848
|
expected: '("cookie" | "header" | "path" | "query")',
|
|
@@ -8218,11 +8218,6 @@ class NestiaMigrateApplication {
|
|
|
8218
8218
|
path: _path + '["enum"]',
|
|
8219
8219
|
expected: "(Array<boolean | null> | undefined)",
|
|
8220
8220
|
value: input["enum"]
|
|
8221
|
-
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8222
|
-
method: "typia.assert",
|
|
8223
|
-
path: _path + ".type",
|
|
8224
|
-
expected: '"boolean"',
|
|
8225
|
-
value: input.type
|
|
8226
8221
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8227
8222
|
method: "typia.assert",
|
|
8228
8223
|
path: _path + ".title",
|
|
@@ -8248,6 +8243,11 @@ class NestiaMigrateApplication {
|
|
|
8248
8243
|
path: _path + ".writeOnly",
|
|
8249
8244
|
expected: "(boolean | undefined)",
|
|
8250
8245
|
value: input.writeOnly
|
|
8246
|
+
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8247
|
+
method: "typia.assert",
|
|
8248
|
+
path: _path + ".type",
|
|
8249
|
+
expected: '"boolean"',
|
|
8250
|
+
value: input.type
|
|
8251
8251
|
}, _errorFactory));
|
|
8252
8252
|
const _ao166 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8253
8253
|
method: "typia.assert",
|
|
@@ -8334,11 +8334,6 @@ class NestiaMigrateApplication {
|
|
|
8334
8334
|
path: _path + ".multipleOf",
|
|
8335
8335
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
8336
8336
|
value: input.multipleOf
|
|
8337
|
-
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8338
|
-
method: "typia.assert",
|
|
8339
|
-
path: _path + ".type",
|
|
8340
|
-
expected: '"integer"',
|
|
8341
|
-
value: input.type
|
|
8342
8337
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8343
8338
|
method: "typia.assert",
|
|
8344
8339
|
path: _path + ".title",
|
|
@@ -8364,6 +8359,11 @@ class NestiaMigrateApplication {
|
|
|
8364
8359
|
path: _path + ".writeOnly",
|
|
8365
8360
|
expected: "(boolean | undefined)",
|
|
8366
8361
|
value: input.writeOnly
|
|
8362
|
+
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8363
|
+
method: "typia.assert",
|
|
8364
|
+
path: _path + ".type",
|
|
8365
|
+
expected: '"integer"',
|
|
8366
|
+
value: input.type
|
|
8367
8367
|
}, _errorFactory));
|
|
8368
8368
|
const _ao167 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8369
8369
|
method: "typia.assert",
|
|
@@ -8420,11 +8420,6 @@ class NestiaMigrateApplication {
|
|
|
8420
8420
|
path: _path + ".multipleOf",
|
|
8421
8421
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
8422
8422
|
value: input.multipleOf
|
|
8423
|
-
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8424
|
-
method: "typia.assert",
|
|
8425
|
-
path: _path + ".type",
|
|
8426
|
-
expected: '"number"',
|
|
8427
|
-
value: input.type
|
|
8428
8423
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8429
8424
|
method: "typia.assert",
|
|
8430
8425
|
path: _path + ".title",
|
|
@@ -8450,6 +8445,11 @@ class NestiaMigrateApplication {
|
|
|
8450
8445
|
path: _path + ".writeOnly",
|
|
8451
8446
|
expected: "(boolean | undefined)",
|
|
8452
8447
|
value: input.writeOnly
|
|
8448
|
+
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8449
|
+
method: "typia.assert",
|
|
8450
|
+
path: _path + ".type",
|
|
8451
|
+
expected: '"number"',
|
|
8452
|
+
value: input.type
|
|
8453
8453
|
}, _errorFactory));
|
|
8454
8454
|
const _ao168 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8455
8455
|
method: "typia.assert",
|
|
@@ -8511,11 +8511,6 @@ class NestiaMigrateApplication {
|
|
|
8511
8511
|
path: _path + ".maxLength",
|
|
8512
8512
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
8513
8513
|
value: input.maxLength
|
|
8514
|
-
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8515
|
-
method: "typia.assert",
|
|
8516
|
-
path: _path + ".type",
|
|
8517
|
-
expected: '"string"',
|
|
8518
|
-
value: input.type
|
|
8519
8514
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8520
8515
|
method: "typia.assert",
|
|
8521
8516
|
path: _path + ".title",
|
|
@@ -8541,6 +8536,11 @@ class NestiaMigrateApplication {
|
|
|
8541
8536
|
path: _path + ".writeOnly",
|
|
8542
8537
|
expected: "(boolean | undefined)",
|
|
8543
8538
|
value: input.writeOnly
|
|
8539
|
+
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8540
|
+
method: "typia.assert",
|
|
8541
|
+
path: _path + ".type",
|
|
8542
|
+
expected: '"string"',
|
|
8543
|
+
value: input.type
|
|
8544
8544
|
}, _errorFactory));
|
|
8545
8545
|
const _ao169 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8546
8546
|
method: "typia.assert",
|
|
@@ -8632,11 +8632,6 @@ class NestiaMigrateApplication {
|
|
|
8632
8632
|
path: _path + ".maxItems",
|
|
8633
8633
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
8634
8634
|
value: input.maxItems
|
|
8635
|
-
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8636
|
-
method: "typia.assert",
|
|
8637
|
-
path: _path + ".type",
|
|
8638
|
-
expected: '"array"',
|
|
8639
|
-
value: input.type
|
|
8640
8635
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8641
8636
|
method: "typia.assert",
|
|
8642
8637
|
path: _path + ".title",
|
|
@@ -8662,6 +8657,11 @@ class NestiaMigrateApplication {
|
|
|
8662
8657
|
path: _path + ".writeOnly",
|
|
8663
8658
|
expected: "(boolean | undefined)",
|
|
8664
8659
|
value: input.writeOnly
|
|
8660
|
+
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8661
|
+
method: "typia.assert",
|
|
8662
|
+
path: _path + ".type",
|
|
8663
|
+
expected: '"array"',
|
|
8664
|
+
value: input.type
|
|
8665
8665
|
}, _errorFactory));
|
|
8666
8666
|
const _ao170 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8667
8667
|
method: "typia.assert",
|
|
@@ -8718,11 +8718,6 @@ class NestiaMigrateApplication {
|
|
|
8718
8718
|
path: _path + ".minProperties",
|
|
8719
8719
|
expected: "(number | undefined)",
|
|
8720
8720
|
value: input.minProperties
|
|
8721
|
-
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8722
|
-
method: "typia.assert",
|
|
8723
|
-
path: _path + ".type",
|
|
8724
|
-
expected: '"object"',
|
|
8725
|
-
value: input.type
|
|
8726
8721
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8727
8722
|
method: "typia.assert",
|
|
8728
8723
|
path: _path + ".title",
|
|
@@ -8748,6 +8743,11 @@ class NestiaMigrateApplication {
|
|
|
8748
8743
|
path: _path + ".writeOnly",
|
|
8749
8744
|
expected: "(boolean | undefined)",
|
|
8750
8745
|
value: input.writeOnly
|
|
8746
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8747
|
+
method: "typia.assert",
|
|
8748
|
+
path: _path + ".type",
|
|
8749
|
+
expected: '"object"',
|
|
8750
|
+
value: input.type
|
|
8751
8751
|
}, _errorFactory));
|
|
8752
8752
|
const _ao171 = (input, _path, _exceptionable = true) => "string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8753
8753
|
method: "typia.assert",
|
|
@@ -8855,11 +8855,6 @@ class NestiaMigrateApplication {
|
|
|
8855
8855
|
path: _path + '["default"]',
|
|
8856
8856
|
expected: "(null | undefined)",
|
|
8857
8857
|
value: input["default"]
|
|
8858
|
-
}, _errorFactory)) && ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8859
|
-
method: "typia.assert",
|
|
8860
|
-
path: _path + ".type",
|
|
8861
|
-
expected: '"null"',
|
|
8862
|
-
value: input.type
|
|
8863
8858
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8864
8859
|
method: "typia.assert",
|
|
8865
8860
|
path: _path + ".title",
|
|
@@ -8885,6 +8880,11 @@ class NestiaMigrateApplication {
|
|
|
8885
8880
|
path: _path + ".writeOnly",
|
|
8886
8881
|
expected: "(boolean | undefined)",
|
|
8887
8882
|
value: input.writeOnly
|
|
8883
|
+
}, _errorFactory)) && ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8884
|
+
method: "typia.assert",
|
|
8885
|
+
path: _path + ".type",
|
|
8886
|
+
expected: '"null"',
|
|
8887
|
+
value: input.type
|
|
8888
8888
|
}, _errorFactory));
|
|
8889
8889
|
const _ao178 = (input, _path, _exceptionable = true) => (null !== input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8890
8890
|
method: "typia.assert",
|
|
@@ -9083,7 +9083,7 @@ class NestiaMigrateApplication {
|
|
|
9083
9083
|
path: _path + ".name",
|
|
9084
9084
|
expected: "(string | undefined)",
|
|
9085
9085
|
value: input.name
|
|
9086
|
-
}, _errorFactory)) && ("query" === input["in"] || "
|
|
9086
|
+
}, _errorFactory)) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9087
9087
|
method: "typia.assert",
|
|
9088
9088
|
path: _path + '["in"]',
|
|
9089
9089
|
expected: '("cookie" | "header" | "path" | "query")',
|
|
@@ -10510,11 +10510,6 @@ class NestiaMigrateApplication {
|
|
|
10510
10510
|
path: _path + '["enum"]',
|
|
10511
10511
|
expected: "(Array<boolean | null> | undefined)",
|
|
10512
10512
|
value: input["enum"]
|
|
10513
|
-
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10514
|
-
method: "typia.assert",
|
|
10515
|
-
path: _path + ".type",
|
|
10516
|
-
expected: '"boolean"',
|
|
10517
|
-
value: input.type
|
|
10518
10513
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10519
10514
|
method: "typia.assert",
|
|
10520
10515
|
path: _path + ".title",
|
|
@@ -10540,6 +10535,11 @@ class NestiaMigrateApplication {
|
|
|
10540
10535
|
path: _path + ".writeOnly",
|
|
10541
10536
|
expected: "(boolean | undefined)",
|
|
10542
10537
|
value: input.writeOnly
|
|
10538
|
+
}, _errorFactory)) && ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10539
|
+
method: "typia.assert",
|
|
10540
|
+
path: _path + ".type",
|
|
10541
|
+
expected: '"boolean"',
|
|
10542
|
+
value: input.type
|
|
10543
10543
|
}, _errorFactory));
|
|
10544
10544
|
const _ao228 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10545
10545
|
method: "typia.assert",
|
|
@@ -10626,11 +10626,6 @@ class NestiaMigrateApplication {
|
|
|
10626
10626
|
path: _path + ".multipleOf",
|
|
10627
10627
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
10628
10628
|
value: input.multipleOf
|
|
10629
|
-
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10630
|
-
method: "typia.assert",
|
|
10631
|
-
path: _path + ".type",
|
|
10632
|
-
expected: '"integer"',
|
|
10633
|
-
value: input.type
|
|
10634
10629
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10635
10630
|
method: "typia.assert",
|
|
10636
10631
|
path: _path + ".title",
|
|
@@ -10656,6 +10651,11 @@ class NestiaMigrateApplication {
|
|
|
10656
10651
|
path: _path + ".writeOnly",
|
|
10657
10652
|
expected: "(boolean | undefined)",
|
|
10658
10653
|
value: input.writeOnly
|
|
10654
|
+
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10655
|
+
method: "typia.assert",
|
|
10656
|
+
path: _path + ".type",
|
|
10657
|
+
expected: '"integer"',
|
|
10658
|
+
value: input.type
|
|
10659
10659
|
}, _errorFactory));
|
|
10660
10660
|
const _ao229 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10661
10661
|
method: "typia.assert",
|
|
@@ -10712,11 +10712,6 @@ class NestiaMigrateApplication {
|
|
|
10712
10712
|
path: _path + ".multipleOf",
|
|
10713
10713
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
10714
10714
|
value: input.multipleOf
|
|
10715
|
-
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10716
|
-
method: "typia.assert",
|
|
10717
|
-
path: _path + ".type",
|
|
10718
|
-
expected: '"number"',
|
|
10719
|
-
value: input.type
|
|
10720
10715
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10721
10716
|
method: "typia.assert",
|
|
10722
10717
|
path: _path + ".title",
|
|
@@ -10742,6 +10737,11 @@ class NestiaMigrateApplication {
|
|
|
10742
10737
|
path: _path + ".writeOnly",
|
|
10743
10738
|
expected: "(boolean | undefined)",
|
|
10744
10739
|
value: input.writeOnly
|
|
10740
|
+
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10741
|
+
method: "typia.assert",
|
|
10742
|
+
path: _path + ".type",
|
|
10743
|
+
expected: '"number"',
|
|
10744
|
+
value: input.type
|
|
10745
10745
|
}, _errorFactory));
|
|
10746
10746
|
const _ao230 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10747
10747
|
method: "typia.assert",
|
|
@@ -10803,11 +10803,6 @@ class NestiaMigrateApplication {
|
|
|
10803
10803
|
path: _path + ".maxLength",
|
|
10804
10804
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
10805
10805
|
value: input.maxLength
|
|
10806
|
-
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10807
|
-
method: "typia.assert",
|
|
10808
|
-
path: _path + ".type",
|
|
10809
|
-
expected: '"string"',
|
|
10810
|
-
value: input.type
|
|
10811
10806
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10812
10807
|
method: "typia.assert",
|
|
10813
10808
|
path: _path + ".title",
|
|
@@ -10833,6 +10828,11 @@ class NestiaMigrateApplication {
|
|
|
10833
10828
|
path: _path + ".writeOnly",
|
|
10834
10829
|
expected: "(boolean | undefined)",
|
|
10835
10830
|
value: input.writeOnly
|
|
10831
|
+
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10832
|
+
method: "typia.assert",
|
|
10833
|
+
path: _path + ".type",
|
|
10834
|
+
expected: '"string"',
|
|
10835
|
+
value: input.type
|
|
10836
10836
|
}, _errorFactory));
|
|
10837
10837
|
const _ao231 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10838
10838
|
method: "typia.assert",
|
|
@@ -10924,11 +10924,6 @@ class NestiaMigrateApplication {
|
|
|
10924
10924
|
path: _path + ".maxItems",
|
|
10925
10925
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
10926
10926
|
value: input.maxItems
|
|
10927
|
-
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10928
|
-
method: "typia.assert",
|
|
10929
|
-
path: _path + ".type",
|
|
10930
|
-
expected: '"array"',
|
|
10931
|
-
value: input.type
|
|
10932
10927
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10933
10928
|
method: "typia.assert",
|
|
10934
10929
|
path: _path + ".title",
|
|
@@ -10954,6 +10949,11 @@ class NestiaMigrateApplication {
|
|
|
10954
10949
|
path: _path + ".writeOnly",
|
|
10955
10950
|
expected: "(boolean | undefined)",
|
|
10956
10951
|
value: input.writeOnly
|
|
10952
|
+
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10953
|
+
method: "typia.assert",
|
|
10954
|
+
path: _path + ".type",
|
|
10955
|
+
expected: '"array"',
|
|
10956
|
+
value: input.type
|
|
10957
10957
|
}, _errorFactory));
|
|
10958
10958
|
const _ao232 = (input, _path, _exceptionable = true) => (undefined === input.nullable || "boolean" === typeof input.nullable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10959
10959
|
method: "typia.assert",
|
|
@@ -11010,11 +11010,6 @@ class NestiaMigrateApplication {
|
|
|
11010
11010
|
path: _path + ".minProperties",
|
|
11011
11011
|
expected: "(number | undefined)",
|
|
11012
11012
|
value: input.minProperties
|
|
11013
|
-
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11014
|
-
method: "typia.assert",
|
|
11015
|
-
path: _path + ".type",
|
|
11016
|
-
expected: '"object"',
|
|
11017
|
-
value: input.type
|
|
11018
11013
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11019
11014
|
method: "typia.assert",
|
|
11020
11015
|
path: _path + ".title",
|
|
@@ -11040,6 +11035,11 @@ class NestiaMigrateApplication {
|
|
|
11040
11035
|
path: _path + ".writeOnly",
|
|
11041
11036
|
expected: "(boolean | undefined)",
|
|
11042
11037
|
value: input.writeOnly
|
|
11038
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11039
|
+
method: "typia.assert",
|
|
11040
|
+
path: _path + ".type",
|
|
11041
|
+
expected: '"object"',
|
|
11042
|
+
value: input.type
|
|
11043
11043
|
}, _errorFactory));
|
|
11044
11044
|
const _ao233 = (input, _path, _exceptionable = true) => "string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11045
11045
|
method: "typia.assert",
|
|
@@ -11147,11 +11147,6 @@ class NestiaMigrateApplication {
|
|
|
11147
11147
|
path: _path + '["default"]',
|
|
11148
11148
|
expected: "(null | undefined)",
|
|
11149
11149
|
value: input["default"]
|
|
11150
|
-
}, _errorFactory)) && ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11151
|
-
method: "typia.assert",
|
|
11152
|
-
path: _path + ".type",
|
|
11153
|
-
expected: '"null"',
|
|
11154
|
-
value: input.type
|
|
11155
11150
|
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11156
11151
|
method: "typia.assert",
|
|
11157
11152
|
path: _path + ".title",
|
|
@@ -11177,6 +11172,11 @@ class NestiaMigrateApplication {
|
|
|
11177
11172
|
path: _path + ".writeOnly",
|
|
11178
11173
|
expected: "(boolean | undefined)",
|
|
11179
11174
|
value: input.writeOnly
|
|
11175
|
+
}, _errorFactory)) && ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11176
|
+
method: "typia.assert",
|
|
11177
|
+
path: _path + ".type",
|
|
11178
|
+
expected: '"null"',
|
|
11179
|
+
value: input.type
|
|
11180
11180
|
}, _errorFactory));
|
|
11181
11181
|
const _ao240 = (input, _path, _exceptionable = true) => (null !== input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11182
11182
|
method: "typia.assert",
|
|
@@ -11385,7 +11385,7 @@ class NestiaMigrateApplication {
|
|
|
11385
11385
|
path: _path + ".name",
|
|
11386
11386
|
expected: "(string | undefined)",
|
|
11387
11387
|
value: input.name
|
|
11388
|
-
}, _errorFactory)) && ("query" === input["in"] || "
|
|
11388
|
+
}, _errorFactory)) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || "querystring" === input["in"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11389
11389
|
method: "typia.assert",
|
|
11390
11390
|
path: _path + '["in"]',
|
|
11391
11391
|
expected: '("cookie" | "header" | "path" | "query" | "querystring")',
|
|
@@ -12417,7 +12417,7 @@ class NestiaMigrateApplication {
|
|
|
12417
12417
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io38(value);
|
|
12418
12418
|
});
|
|
12419
12419
|
const _io38 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _io39(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io42(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io45(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io48(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]) && (undefined === input["x-samchon-accessor"] || Array.isArray(input["x-samchon-accessor"]) && input["x-samchon-accessor"].every(elem => "string" === typeof elem)) && (undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"]);
|
|
12420
|
-
const _io39 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "
|
|
12420
|
+
const _io39 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || "querystring" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu0(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io40(input.examples));
|
|
12421
12421
|
const _io40 = input => Object.keys(input).every(key => {
|
|
12422
12422
|
const value = input[key];
|
|
12423
12423
|
if (undefined === value) return true;
|
|
@@ -12458,12 +12458,12 @@ class NestiaMigrateApplication {
|
|
|
12458
12458
|
if (undefined === value) return true;
|
|
12459
12459
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu2(value);
|
|
12460
12460
|
});
|
|
12461
|
-
const _io55 = input => (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)) &&
|
|
12462
|
-
const _io56 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) &&
|
|
12463
|
-
const _io57 = input => (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) &&
|
|
12464
|
-
const _io58 = input => (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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
12465
|
-
const _io59 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
12466
|
-
const _io60 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io54(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) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
12461
|
+
const _io55 = input => (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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type;
|
|
12462
|
+
const _io56 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type;
|
|
12463
|
+
const _io57 = input => (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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type;
|
|
12464
|
+
const _io58 = input => (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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type;
|
|
12465
|
+
const _io59 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type;
|
|
12466
|
+
const _io60 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io54(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) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type;
|
|
12467
12467
|
const _io61 = input => "string" === typeof input.$ref;
|
|
12468
12468
|
const _io62 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem));
|
|
12469
12469
|
const _io63 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem));
|
|
@@ -12474,12 +12474,12 @@ class NestiaMigrateApplication {
|
|
|
12474
12474
|
if (undefined === value) return true;
|
|
12475
12475
|
return "object" === typeof value && null !== value && _iu12(value);
|
|
12476
12476
|
});
|
|
12477
|
-
const _io67 = input => (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)) &&
|
|
12478
|
-
const _io68 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) &&
|
|
12479
|
-
const _io69 = input => (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) &&
|
|
12480
|
-
const _io70 = input => (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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
12481
|
-
const _io71 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
12482
|
-
const _io72 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io54(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) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
12477
|
+
const _io67 = input => (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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
12478
|
+
const _io68 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
12479
|
+
const _io69 = input => (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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
12480
|
+
const _io70 = input => (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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
12481
|
+
const _io71 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
12482
|
+
const _io72 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io54(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) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type && "string" === typeof input.name && "string" === typeof input["in"];
|
|
12483
12483
|
const _io73 = input => "string" === typeof input.$ref && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description);
|
|
12484
12484
|
const _io74 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem)) && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description);
|
|
12485
12485
|
const _io75 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem)) && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description);
|
|
@@ -12541,19 +12541,19 @@ class NestiaMigrateApplication {
|
|
|
12541
12541
|
if (undefined === value) return true;
|
|
12542
12542
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
|
12543
12543
|
});
|
|
12544
|
-
const _io106 = 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)) &&
|
|
12545
|
-
const _io107 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) &&
|
|
12546
|
-
const _io108 = 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) &&
|
|
12547
|
-
const _io109 = 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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
12548
|
-
const _io110 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
12549
|
-
const _io111 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io105(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) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
12544
|
+
const _io106 = 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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type;
|
|
12545
|
+
const _io107 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type;
|
|
12546
|
+
const _io108 = 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type;
|
|
12547
|
+
const _io109 = 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.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type;
|
|
12548
|
+
const _io110 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type;
|
|
12549
|
+
const _io111 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io105(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) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type;
|
|
12550
12550
|
const _io112 = input => "string" === typeof input.$ref;
|
|
12551
12551
|
const _io113 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem));
|
|
12552
12552
|
const _io114 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem));
|
|
12553
12553
|
const _io115 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io116(input.discriminator));
|
|
12554
12554
|
const _io116 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io23(input.mapping));
|
|
12555
|
-
const _io117 = input => (null === input["default"] || undefined === input["default"]) &&
|
|
12556
|
-
const _io118 = input =>
|
|
12555
|
+
const _io117 = input => (null === input["default"] || undefined === input["default"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "null" === input.type;
|
|
12556
|
+
const _io118 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && (null !== input.type && undefined === input.type);
|
|
12557
12557
|
const _io119 = input => Object.keys(input).every(key => {
|
|
12558
12558
|
const value = input[key];
|
|
12559
12559
|
if (undefined === value) return true;
|
|
@@ -12585,7 +12585,7 @@ class NestiaMigrateApplication {
|
|
|
12585
12585
|
if (undefined === value) return true;
|
|
12586
12586
|
return "object" === typeof value && null !== value && _io130(value);
|
|
12587
12587
|
});
|
|
12588
|
-
const _io130 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "
|
|
12588
|
+
const _io130 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu5(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io123(input.examples));
|
|
12589
12589
|
const _io131 = input => Object.keys(input).every(key => {
|
|
12590
12590
|
const value = input[key];
|
|
12591
12591
|
if (undefined === value) return true;
|
|
@@ -12656,19 +12656,19 @@ class NestiaMigrateApplication {
|
|
|
12656
12656
|
});
|
|
12657
12657
|
const _io163 = input => Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu7(input.items)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu7(input.additionalItems))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io162(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu7(input.additionalProperties))) && (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) && _iu7(elem))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io176(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && (Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && "string" === typeof input.$ref;
|
|
12658
12658
|
const _io164 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable);
|
|
12659
|
-
const _io165 = 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)) &&
|
|
12660
|
-
const _io166 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(input.maximum)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMinimum) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMaximum) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) &&
|
|
12661
|
-
const _io167 = 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) &&
|
|
12662
|
-
const _io168 = 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 && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
12663
|
-
const _io169 = 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) && _iu7(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu7(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(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) && _iu7(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
12664
|
-
const _io170 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io162(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) && _iu7(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
12659
|
+
const _io165 = 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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type;
|
|
12660
|
+
const _io166 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(input.maximum)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMinimum) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMaximum) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type;
|
|
12661
|
+
const _io167 = 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type;
|
|
12662
|
+
const _io168 = 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 && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type;
|
|
12663
|
+
const _io169 = 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) && _iu7(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu7(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(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) && _iu7(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type;
|
|
12664
|
+
const _io170 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io162(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) && _iu7(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type;
|
|
12665
12665
|
const _io171 = input => "string" === typeof input.$ref;
|
|
12666
12666
|
const _io172 = input => "string" === typeof input.$recursiveRef;
|
|
12667
12667
|
const _io173 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem));
|
|
12668
12668
|
const _io174 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem));
|
|
12669
12669
|
const _io175 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io176(input.discriminator));
|
|
12670
12670
|
const _io176 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io23(input.mapping));
|
|
12671
|
-
const _io177 = input => (null === input["default"] || undefined === input["default"]) &&
|
|
12671
|
+
const _io177 = input => (null === input["default"] || undefined === input["default"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "null" === input.type;
|
|
12672
12672
|
const _io178 = input => null !== input.type && undefined === input.type && true && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly);
|
|
12673
12673
|
const _io179 = input => Object.keys(input).every(key => {
|
|
12674
12674
|
const value = input[key];
|
|
@@ -12676,7 +12676,7 @@ class NestiaMigrateApplication {
|
|
|
12676
12676
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io180(value);
|
|
12677
12677
|
});
|
|
12678
12678
|
const _io180 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _iu8(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && _io155(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input["x-additionalOperations"] || "object" === typeof input["x-additionalOperations"] && null !== input["x-additionalOperations"] && false === Array.isArray(input["x-additionalOperations"]) && _io187(input["x-additionalOperations"])) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io188(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io188(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io188(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io188(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io188(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io188(input.patch)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io188(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io188(input.trace));
|
|
12679
|
-
const _io181 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "
|
|
12679
|
+
const _io181 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io182(input.examples));
|
|
12680
12680
|
const _io182 = input => Object.keys(input).every(key => {
|
|
12681
12681
|
const value = input[key];
|
|
12682
12682
|
if (undefined === value) return true;
|
|
@@ -12778,19 +12778,19 @@ class NestiaMigrateApplication {
|
|
|
12778
12778
|
});
|
|
12779
12779
|
const _io225 = input => Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu9(input.items)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu9(input.additionalItems))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io224(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu9(input.additionalProperties))) && (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) && _iu9(elem))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io238(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem))) && (Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem))) && "string" === typeof input.$ref;
|
|
12780
12780
|
const _io226 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable);
|
|
12781
|
-
const _io227 = 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)) &&
|
|
12782
|
-
const _io228 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(input.maximum)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMinimum) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMaximum) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) &&
|
|
12783
|
-
const _io229 = 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) &&
|
|
12784
|
-
const _io230 = 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 && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) &&
|
|
12785
|
-
const _io231 = 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) && _iu9(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu9(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(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) && _iu9(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) &&
|
|
12786
|
-
const _io232 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io224(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) && _iu9(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
|
12781
|
+
const _io227 = 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)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "boolean" === input.type;
|
|
12782
|
+
const _io228 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && __typia_transform__isTypeInt64._isTypeInt64(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => null === elem || "number" === typeof elem && __typia_transform__isTypeInt64._isTypeInt64(elem))) && (undefined === input.minimum || "number" === typeof input.minimum && __typia_transform__isTypeInt64._isTypeInt64(input.minimum)) && (undefined === input.maximum || "number" === typeof input.maximum && __typia_transform__isTypeInt64._isTypeInt64(input.maximum)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMinimum) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && __typia_transform__isTypeInt64._isTypeInt64(input.exclusiveMaximum) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "integer" === input.type;
|
|
12783
|
+
const _io229 = 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) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "number" === input.type;
|
|
12784
|
+
const _io230 = 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 && __typia_transform__isTypeUint64._isTypeUint64(input.minLength)) && (undefined === input.maxLength || "number" === typeof input.maxLength && __typia_transform__isTypeUint64._isTypeUint64(input.maxLength)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "string" === input.type;
|
|
12785
|
+
const _io231 = 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) && _iu9(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu9(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(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) && _iu9(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && __typia_transform__isTypeUint64._isTypeUint64(input.minItems)) && (undefined === input.maxItems || "number" === typeof input.maxItems && __typia_transform__isTypeUint64._isTypeUint64(input.maxItems)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "array" === input.type;
|
|
12786
|
+
const _io232 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io224(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) && _iu9(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "object" === input.type;
|
|
12787
12787
|
const _io233 = input => "string" === typeof input.$ref;
|
|
12788
12788
|
const _io234 = input => "string" === typeof input.$recursiveRef;
|
|
12789
12789
|
const _io235 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem));
|
|
12790
12790
|
const _io236 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem));
|
|
12791
12791
|
const _io237 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu9(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io238(input.discriminator));
|
|
12792
12792
|
const _io238 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io23(input.mapping));
|
|
12793
|
-
const _io239 = input => (null === input["default"] || undefined === input["default"]) &&
|
|
12793
|
+
const _io239 = input => (null === input["default"] || undefined === input["default"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly) && "null" === input.type;
|
|
12794
12794
|
const _io240 = input => null !== input.type && undefined === input.type && true && (undefined === input.title || "string" === typeof input.title) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (undefined === input.writeOnly || "boolean" === typeof input.writeOnly);
|
|
12795
12795
|
const _io241 = input => Object.keys(input).every(key => {
|
|
12796
12796
|
const value = input[key];
|
|
@@ -12798,7 +12798,7 @@ class NestiaMigrateApplication {
|
|
|
12798
12798
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io242(value);
|
|
12799
12799
|
});
|
|
12800
12800
|
const _io242 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _iu10(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && _io217(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.additionalOperations || "object" === typeof input.additionalOperations && null !== input.additionalOperations && false === Array.isArray(input.additionalOperations) && _io249(input.additionalOperations)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io250(input["delete"])) && (undefined === input.query || "object" === typeof input.query && null !== input.query && false === Array.isArray(input.query) && _io250(input.query)) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io250(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io250(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io250(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io250(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io250(input.patch)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io250(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io250(input.trace));
|
|
12801
|
-
const _io243 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "
|
|
12801
|
+
const _io243 = input => (undefined === input.name || "string" === typeof input.name) && ("query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || "querystring" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu9(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io244(input.examples));
|
|
12802
12802
|
const _io244 = input => Object.keys(input).every(key => {
|
|
12803
12803
|
const value = input[key];
|
|
12804
12804
|
if (undefined === value) return true;
|
|
@@ -14362,7 +14362,7 @@ class NestiaMigrateApplication {
|
|
|
14362
14362
|
path: _path + ".name",
|
|
14363
14363
|
expected: "(string | undefined)",
|
|
14364
14364
|
value: input.name
|
|
14365
|
-
}), "query" === input["in"] || "
|
|
14365
|
+
}), "query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || "querystring" === input["in"] || _report(_exceptionable, {
|
|
14366
14366
|
path: _path + '["in"]',
|
|
14367
14367
|
expected: '("cookie" | "header" | "path" | "query" | "querystring")',
|
|
14368
14368
|
value: input["in"]
|
|
@@ -14819,10 +14819,6 @@ class NestiaMigrateApplication {
|
|
|
14819
14819
|
path: _path + '["enum"]',
|
|
14820
14820
|
expected: "(Array<boolean | null> | undefined)",
|
|
14821
14821
|
value: input["enum"]
|
|
14822
|
-
}), "boolean" === input.type || _report(_exceptionable, {
|
|
14823
|
-
path: _path + ".type",
|
|
14824
|
-
expected: '"boolean"',
|
|
14825
|
-
value: input.type
|
|
14826
14822
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
14827
14823
|
path: _path + ".title",
|
|
14828
14824
|
expected: "(string | undefined)",
|
|
@@ -14843,6 +14839,10 @@ class NestiaMigrateApplication {
|
|
|
14843
14839
|
path: _path + ".writeOnly",
|
|
14844
14840
|
expected: "(boolean | undefined)",
|
|
14845
14841
|
value: input.writeOnly
|
|
14842
|
+
}), "boolean" === input.type || _report(_exceptionable, {
|
|
14843
|
+
path: _path + ".type",
|
|
14844
|
+
expected: '"boolean"',
|
|
14845
|
+
value: input.type
|
|
14846
14846
|
}) ].every(flag => flag);
|
|
14847
14847
|
const _vo56 = (input, _path, _exceptionable = true) => [ null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (__typia_transform__isTypeInt64._isTypeInt64(input["default"]) || _report(_exceptionable, {
|
|
14848
14848
|
path: _path + '["default"]',
|
|
@@ -14900,10 +14900,6 @@ class NestiaMigrateApplication {
|
|
|
14900
14900
|
path: _path + ".multipleOf",
|
|
14901
14901
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
14902
14902
|
value: input.multipleOf
|
|
14903
|
-
}), "integer" === input.type || _report(_exceptionable, {
|
|
14904
|
-
path: _path + ".type",
|
|
14905
|
-
expected: '"integer"',
|
|
14906
|
-
value: input.type
|
|
14907
14903
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
14908
14904
|
path: _path + ".title",
|
|
14909
14905
|
expected: "(string | undefined)",
|
|
@@ -14924,6 +14920,10 @@ class NestiaMigrateApplication {
|
|
|
14924
14920
|
path: _path + ".writeOnly",
|
|
14925
14921
|
expected: "(boolean | undefined)",
|
|
14926
14922
|
value: input.writeOnly
|
|
14923
|
+
}), "integer" === input.type || _report(_exceptionable, {
|
|
14924
|
+
path: _path + ".type",
|
|
14925
|
+
expected: '"integer"',
|
|
14926
|
+
value: input.type
|
|
14927
14927
|
}) ].every(flag => flag);
|
|
14928
14928
|
const _vo57 = (input, _path, _exceptionable = true) => [ null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] || _report(_exceptionable, {
|
|
14929
14929
|
path: _path + '["default"]',
|
|
@@ -14965,10 +14965,6 @@ class NestiaMigrateApplication {
|
|
|
14965
14965
|
path: _path + ".multipleOf",
|
|
14966
14966
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
14967
14967
|
value: input.multipleOf
|
|
14968
|
-
}), "number" === input.type || _report(_exceptionable, {
|
|
14969
|
-
path: _path + ".type",
|
|
14970
|
-
expected: '"number"',
|
|
14971
|
-
value: input.type
|
|
14972
14968
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
14973
14969
|
path: _path + ".title",
|
|
14974
14970
|
expected: "(string | undefined)",
|
|
@@ -14989,6 +14985,10 @@ class NestiaMigrateApplication {
|
|
|
14989
14985
|
path: _path + ".writeOnly",
|
|
14990
14986
|
expected: "(boolean | undefined)",
|
|
14991
14987
|
value: input.writeOnly
|
|
14988
|
+
}), "number" === input.type || _report(_exceptionable, {
|
|
14989
|
+
path: _path + ".type",
|
|
14990
|
+
expected: '"number"',
|
|
14991
|
+
value: input.type
|
|
14992
14992
|
}) ].every(flag => flag);
|
|
14993
14993
|
const _vo58 = (input, _path, _exceptionable = true) => [ null === input["default"] || undefined === input["default"] || "string" === typeof input["default"] || _report(_exceptionable, {
|
|
14994
14994
|
path: _path + '["default"]',
|
|
@@ -15030,10 +15030,6 @@ class NestiaMigrateApplication {
|
|
|
15030
15030
|
path: _path + ".maxLength",
|
|
15031
15031
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
15032
15032
|
value: input.maxLength
|
|
15033
|
-
}), "string" === input.type || _report(_exceptionable, {
|
|
15034
|
-
path: _path + ".type",
|
|
15035
|
-
expected: '"string"',
|
|
15036
|
-
value: input.type
|
|
15037
15033
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15038
15034
|
path: _path + ".title",
|
|
15039
15035
|
expected: "(string | undefined)",
|
|
@@ -15054,6 +15050,10 @@ class NestiaMigrateApplication {
|
|
|
15054
15050
|
path: _path + ".writeOnly",
|
|
15055
15051
|
expected: "(boolean | undefined)",
|
|
15056
15052
|
value: input.writeOnly
|
|
15053
|
+
}), "string" === input.type || _report(_exceptionable, {
|
|
15054
|
+
path: _path + ".type",
|
|
15055
|
+
expected: '"string"',
|
|
15056
|
+
value: input.type
|
|
15057
15057
|
}) ].every(flag => flag);
|
|
15058
15058
|
const _vo59 = (input, _path, _exceptionable = true) => [ ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
15059
15059
|
path: _path + ".items",
|
|
@@ -15083,10 +15083,6 @@ class NestiaMigrateApplication {
|
|
|
15083
15083
|
path: _path + ".maxItems",
|
|
15084
15084
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
15085
15085
|
value: input.maxItems
|
|
15086
|
-
}), "array" === input.type || _report(_exceptionable, {
|
|
15087
|
-
path: _path + ".type",
|
|
15088
|
-
expected: '"array"',
|
|
15089
|
-
value: input.type
|
|
15090
15086
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15091
15087
|
path: _path + ".title",
|
|
15092
15088
|
expected: "(string | undefined)",
|
|
@@ -15107,6 +15103,10 @@ class NestiaMigrateApplication {
|
|
|
15107
15103
|
path: _path + ".writeOnly",
|
|
15108
15104
|
expected: "(boolean | undefined)",
|
|
15109
15105
|
value: input.writeOnly
|
|
15106
|
+
}), "array" === input.type || _report(_exceptionable, {
|
|
15107
|
+
path: _path + ".type",
|
|
15108
|
+
expected: '"array"',
|
|
15109
|
+
value: input.type
|
|
15110
15110
|
}) ].every(flag => flag);
|
|
15111
15111
|
const _vo60 = (input, _path, _exceptionable = true) => [ undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
15112
15112
|
path: _path + ".properties",
|
|
@@ -15148,10 +15148,6 @@ class NestiaMigrateApplication {
|
|
|
15148
15148
|
path: _path + ".minProperties",
|
|
15149
15149
|
expected: "(number | undefined)",
|
|
15150
15150
|
value: input.minProperties
|
|
15151
|
-
}), "object" === input.type || _report(_exceptionable, {
|
|
15152
|
-
path: _path + ".type",
|
|
15153
|
-
expected: '"object"',
|
|
15154
|
-
value: input.type
|
|
15155
15151
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15156
15152
|
path: _path + ".title",
|
|
15157
15153
|
expected: "(string | undefined)",
|
|
@@ -15172,6 +15168,10 @@ class NestiaMigrateApplication {
|
|
|
15172
15168
|
path: _path + ".writeOnly",
|
|
15173
15169
|
expected: "(boolean | undefined)",
|
|
15174
15170
|
value: input.writeOnly
|
|
15171
|
+
}), "object" === input.type || _report(_exceptionable, {
|
|
15172
|
+
path: _path + ".type",
|
|
15173
|
+
expected: '"object"',
|
|
15174
|
+
value: input.type
|
|
15175
15175
|
}) ].every(flag => flag);
|
|
15176
15176
|
const _vo61 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref || _report(_exceptionable, {
|
|
15177
15177
|
path: _path + ".$ref",
|
|
@@ -15259,10 +15259,6 @@ class NestiaMigrateApplication {
|
|
|
15259
15259
|
path: _path + '["enum"]',
|
|
15260
15260
|
expected: "(Array<boolean | null> | undefined)",
|
|
15261
15261
|
value: input["enum"]
|
|
15262
|
-
}), "boolean" === input.type || _report(_exceptionable, {
|
|
15263
|
-
path: _path + ".type",
|
|
15264
|
-
expected: '"boolean"',
|
|
15265
|
-
value: input.type
|
|
15266
15262
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15267
15263
|
path: _path + ".title",
|
|
15268
15264
|
expected: "(string | undefined)",
|
|
@@ -15283,6 +15279,10 @@ class NestiaMigrateApplication {
|
|
|
15283
15279
|
path: _path + ".writeOnly",
|
|
15284
15280
|
expected: "(boolean | undefined)",
|
|
15285
15281
|
value: input.writeOnly
|
|
15282
|
+
}), "boolean" === input.type || _report(_exceptionable, {
|
|
15283
|
+
path: _path + ".type",
|
|
15284
|
+
expected: '"boolean"',
|
|
15285
|
+
value: input.type
|
|
15286
15286
|
}), "string" === typeof input.name || _report(_exceptionable, {
|
|
15287
15287
|
path: _path + ".name",
|
|
15288
15288
|
expected: "string",
|
|
@@ -15348,10 +15348,6 @@ class NestiaMigrateApplication {
|
|
|
15348
15348
|
path: _path + ".multipleOf",
|
|
15349
15349
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
15350
15350
|
value: input.multipleOf
|
|
15351
|
-
}), "integer" === input.type || _report(_exceptionable, {
|
|
15352
|
-
path: _path + ".type",
|
|
15353
|
-
expected: '"integer"',
|
|
15354
|
-
value: input.type
|
|
15355
15351
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15356
15352
|
path: _path + ".title",
|
|
15357
15353
|
expected: "(string | undefined)",
|
|
@@ -15372,6 +15368,10 @@ class NestiaMigrateApplication {
|
|
|
15372
15368
|
path: _path + ".writeOnly",
|
|
15373
15369
|
expected: "(boolean | undefined)",
|
|
15374
15370
|
value: input.writeOnly
|
|
15371
|
+
}), "integer" === input.type || _report(_exceptionable, {
|
|
15372
|
+
path: _path + ".type",
|
|
15373
|
+
expected: '"integer"',
|
|
15374
|
+
value: input.type
|
|
15375
15375
|
}), "string" === typeof input.name || _report(_exceptionable, {
|
|
15376
15376
|
path: _path + ".name",
|
|
15377
15377
|
expected: "string",
|
|
@@ -15421,10 +15421,6 @@ class NestiaMigrateApplication {
|
|
|
15421
15421
|
path: _path + ".multipleOf",
|
|
15422
15422
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
15423
15423
|
value: input.multipleOf
|
|
15424
|
-
}), "number" === input.type || _report(_exceptionable, {
|
|
15425
|
-
path: _path + ".type",
|
|
15426
|
-
expected: '"number"',
|
|
15427
|
-
value: input.type
|
|
15428
15424
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15429
15425
|
path: _path + ".title",
|
|
15430
15426
|
expected: "(string | undefined)",
|
|
@@ -15445,6 +15441,10 @@ class NestiaMigrateApplication {
|
|
|
15445
15441
|
path: _path + ".writeOnly",
|
|
15446
15442
|
expected: "(boolean | undefined)",
|
|
15447
15443
|
value: input.writeOnly
|
|
15444
|
+
}), "number" === input.type || _report(_exceptionable, {
|
|
15445
|
+
path: _path + ".type",
|
|
15446
|
+
expected: '"number"',
|
|
15447
|
+
value: input.type
|
|
15448
15448
|
}), "string" === typeof input.name || _report(_exceptionable, {
|
|
15449
15449
|
path: _path + ".name",
|
|
15450
15450
|
expected: "string",
|
|
@@ -15494,10 +15494,6 @@ class NestiaMigrateApplication {
|
|
|
15494
15494
|
path: _path + ".maxLength",
|
|
15495
15495
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
15496
15496
|
value: input.maxLength
|
|
15497
|
-
}), "string" === input.type || _report(_exceptionable, {
|
|
15498
|
-
path: _path + ".type",
|
|
15499
|
-
expected: '"string"',
|
|
15500
|
-
value: input.type
|
|
15501
15497
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15502
15498
|
path: _path + ".title",
|
|
15503
15499
|
expected: "(string | undefined)",
|
|
@@ -15518,6 +15514,10 @@ class NestiaMigrateApplication {
|
|
|
15518
15514
|
path: _path + ".writeOnly",
|
|
15519
15515
|
expected: "(boolean | undefined)",
|
|
15520
15516
|
value: input.writeOnly
|
|
15517
|
+
}), "string" === input.type || _report(_exceptionable, {
|
|
15518
|
+
path: _path + ".type",
|
|
15519
|
+
expected: '"string"',
|
|
15520
|
+
value: input.type
|
|
15521
15521
|
}), "string" === typeof input.name || _report(_exceptionable, {
|
|
15522
15522
|
path: _path + ".name",
|
|
15523
15523
|
expected: "string",
|
|
@@ -15555,10 +15555,6 @@ class NestiaMigrateApplication {
|
|
|
15555
15555
|
path: _path + ".maxItems",
|
|
15556
15556
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
15557
15557
|
value: input.maxItems
|
|
15558
|
-
}), "array" === input.type || _report(_exceptionable, {
|
|
15559
|
-
path: _path + ".type",
|
|
15560
|
-
expected: '"array"',
|
|
15561
|
-
value: input.type
|
|
15562
15558
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15563
15559
|
path: _path + ".title",
|
|
15564
15560
|
expected: "(string | undefined)",
|
|
@@ -15579,6 +15575,10 @@ class NestiaMigrateApplication {
|
|
|
15579
15575
|
path: _path + ".writeOnly",
|
|
15580
15576
|
expected: "(boolean | undefined)",
|
|
15581
15577
|
value: input.writeOnly
|
|
15578
|
+
}), "array" === input.type || _report(_exceptionable, {
|
|
15579
|
+
path: _path + ".type",
|
|
15580
|
+
expected: '"array"',
|
|
15581
|
+
value: input.type
|
|
15582
15582
|
}), "string" === typeof input.name || _report(_exceptionable, {
|
|
15583
15583
|
path: _path + ".name",
|
|
15584
15584
|
expected: "string",
|
|
@@ -15628,10 +15628,6 @@ class NestiaMigrateApplication {
|
|
|
15628
15628
|
path: _path + ".minProperties",
|
|
15629
15629
|
expected: "(number | undefined)",
|
|
15630
15630
|
value: input.minProperties
|
|
15631
|
-
}), "object" === input.type || _report(_exceptionable, {
|
|
15632
|
-
path: _path + ".type",
|
|
15633
|
-
expected: '"object"',
|
|
15634
|
-
value: input.type
|
|
15635
15631
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15636
15632
|
path: _path + ".title",
|
|
15637
15633
|
expected: "(string | undefined)",
|
|
@@ -15652,6 +15648,10 @@ class NestiaMigrateApplication {
|
|
|
15652
15648
|
path: _path + ".writeOnly",
|
|
15653
15649
|
expected: "(boolean | undefined)",
|
|
15654
15650
|
value: input.writeOnly
|
|
15651
|
+
}), "object" === input.type || _report(_exceptionable, {
|
|
15652
|
+
path: _path + ".type",
|
|
15653
|
+
expected: '"object"',
|
|
15654
|
+
value: input.type
|
|
15655
15655
|
}), "string" === typeof input.name || _report(_exceptionable, {
|
|
15656
15656
|
path: _path + ".name",
|
|
15657
15657
|
expected: "string",
|
|
@@ -16490,10 +16490,6 @@ class NestiaMigrateApplication {
|
|
|
16490
16490
|
path: _path + '["enum"]',
|
|
16491
16491
|
expected: "(Array<boolean | null> | undefined)",
|
|
16492
16492
|
value: input["enum"]
|
|
16493
|
-
}), "boolean" === input.type || _report(_exceptionable, {
|
|
16494
|
-
path: _path + ".type",
|
|
16495
|
-
expected: '"boolean"',
|
|
16496
|
-
value: input.type
|
|
16497
16493
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
16498
16494
|
path: _path + ".title",
|
|
16499
16495
|
expected: "(string | undefined)",
|
|
@@ -16514,6 +16510,10 @@ class NestiaMigrateApplication {
|
|
|
16514
16510
|
path: _path + ".writeOnly",
|
|
16515
16511
|
expected: "(boolean | undefined)",
|
|
16516
16512
|
value: input.writeOnly
|
|
16513
|
+
}), "boolean" === input.type || _report(_exceptionable, {
|
|
16514
|
+
path: _path + ".type",
|
|
16515
|
+
expected: '"boolean"',
|
|
16516
|
+
value: input.type
|
|
16517
16517
|
}) ].every(flag => flag);
|
|
16518
16518
|
const _vo107 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
16519
16519
|
path: _path + ".nullable",
|
|
@@ -16575,10 +16575,6 @@ class NestiaMigrateApplication {
|
|
|
16575
16575
|
path: _path + ".multipleOf",
|
|
16576
16576
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
16577
16577
|
value: input.multipleOf
|
|
16578
|
-
}), "integer" === input.type || _report(_exceptionable, {
|
|
16579
|
-
path: _path + ".type",
|
|
16580
|
-
expected: '"integer"',
|
|
16581
|
-
value: input.type
|
|
16582
16578
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
16583
16579
|
path: _path + ".title",
|
|
16584
16580
|
expected: "(string | undefined)",
|
|
@@ -16599,6 +16595,10 @@ class NestiaMigrateApplication {
|
|
|
16599
16595
|
path: _path + ".writeOnly",
|
|
16600
16596
|
expected: "(boolean | undefined)",
|
|
16601
16597
|
value: input.writeOnly
|
|
16598
|
+
}), "integer" === input.type || _report(_exceptionable, {
|
|
16599
|
+
path: _path + ".type",
|
|
16600
|
+
expected: '"integer"',
|
|
16601
|
+
value: input.type
|
|
16602
16602
|
}) ].every(flag => flag);
|
|
16603
16603
|
const _vo108 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
16604
16604
|
path: _path + ".nullable",
|
|
@@ -16644,10 +16644,6 @@ class NestiaMigrateApplication {
|
|
|
16644
16644
|
path: _path + ".multipleOf",
|
|
16645
16645
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
16646
16646
|
value: input.multipleOf
|
|
16647
|
-
}), "number" === input.type || _report(_exceptionable, {
|
|
16648
|
-
path: _path + ".type",
|
|
16649
|
-
expected: '"number"',
|
|
16650
|
-
value: input.type
|
|
16651
16647
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
16652
16648
|
path: _path + ".title",
|
|
16653
16649
|
expected: "(string | undefined)",
|
|
@@ -16668,6 +16664,10 @@ class NestiaMigrateApplication {
|
|
|
16668
16664
|
path: _path + ".writeOnly",
|
|
16669
16665
|
expected: "(boolean | undefined)",
|
|
16670
16666
|
value: input.writeOnly
|
|
16667
|
+
}), "number" === input.type || _report(_exceptionable, {
|
|
16668
|
+
path: _path + ".type",
|
|
16669
|
+
expected: '"number"',
|
|
16670
|
+
value: input.type
|
|
16671
16671
|
}) ].every(flag => flag);
|
|
16672
16672
|
const _vo109 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
16673
16673
|
path: _path + ".nullable",
|
|
@@ -16713,10 +16713,6 @@ class NestiaMigrateApplication {
|
|
|
16713
16713
|
path: _path + ".maxLength",
|
|
16714
16714
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
16715
16715
|
value: input.maxLength
|
|
16716
|
-
}), "string" === input.type || _report(_exceptionable, {
|
|
16717
|
-
path: _path + ".type",
|
|
16718
|
-
expected: '"string"',
|
|
16719
|
-
value: input.type
|
|
16720
16716
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
16721
16717
|
path: _path + ".title",
|
|
16722
16718
|
expected: "(string | undefined)",
|
|
@@ -16737,6 +16733,10 @@ class NestiaMigrateApplication {
|
|
|
16737
16733
|
path: _path + ".writeOnly",
|
|
16738
16734
|
expected: "(boolean | undefined)",
|
|
16739
16735
|
value: input.writeOnly
|
|
16736
|
+
}), "string" === input.type || _report(_exceptionable, {
|
|
16737
|
+
path: _path + ".type",
|
|
16738
|
+
expected: '"string"',
|
|
16739
|
+
value: input.type
|
|
16740
16740
|
}) ].every(flag => flag);
|
|
16741
16741
|
const _vo110 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
16742
16742
|
path: _path + ".nullable",
|
|
@@ -16770,10 +16770,6 @@ class NestiaMigrateApplication {
|
|
|
16770
16770
|
path: _path + ".maxItems",
|
|
16771
16771
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
16772
16772
|
value: input.maxItems
|
|
16773
|
-
}), "array" === input.type || _report(_exceptionable, {
|
|
16774
|
-
path: _path + ".type",
|
|
16775
|
-
expected: '"array"',
|
|
16776
|
-
value: input.type
|
|
16777
16773
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
16778
16774
|
path: _path + ".title",
|
|
16779
16775
|
expected: "(string | undefined)",
|
|
@@ -16794,6 +16790,10 @@ class NestiaMigrateApplication {
|
|
|
16794
16790
|
path: _path + ".writeOnly",
|
|
16795
16791
|
expected: "(boolean | undefined)",
|
|
16796
16792
|
value: input.writeOnly
|
|
16793
|
+
}), "array" === input.type || _report(_exceptionable, {
|
|
16794
|
+
path: _path + ".type",
|
|
16795
|
+
expected: '"array"',
|
|
16796
|
+
value: input.type
|
|
16797
16797
|
}) ].every(flag => flag);
|
|
16798
16798
|
const _vo111 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
16799
16799
|
path: _path + ".nullable",
|
|
@@ -16839,10 +16839,6 @@ class NestiaMigrateApplication {
|
|
|
16839
16839
|
path: _path + ".minProperties",
|
|
16840
16840
|
expected: "(number | undefined)",
|
|
16841
16841
|
value: input.minProperties
|
|
16842
|
-
}), "object" === input.type || _report(_exceptionable, {
|
|
16843
|
-
path: _path + ".type",
|
|
16844
|
-
expected: '"object"',
|
|
16845
|
-
value: input.type
|
|
16846
16842
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
16847
16843
|
path: _path + ".title",
|
|
16848
16844
|
expected: "(string | undefined)",
|
|
@@ -16863,6 +16859,10 @@ class NestiaMigrateApplication {
|
|
|
16863
16859
|
path: _path + ".writeOnly",
|
|
16864
16860
|
expected: "(boolean | undefined)",
|
|
16865
16861
|
value: input.writeOnly
|
|
16862
|
+
}), "object" === input.type || _report(_exceptionable, {
|
|
16863
|
+
path: _path + ".type",
|
|
16864
|
+
expected: '"object"',
|
|
16865
|
+
value: input.type
|
|
16866
16866
|
}) ].every(flag => flag);
|
|
16867
16867
|
const _vo112 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref || _report(_exceptionable, {
|
|
16868
16868
|
path: _path + ".$ref",
|
|
@@ -16945,10 +16945,6 @@ class NestiaMigrateApplication {
|
|
|
16945
16945
|
path: _path + '["default"]',
|
|
16946
16946
|
expected: "(null | undefined)",
|
|
16947
16947
|
value: input["default"]
|
|
16948
|
-
}), "null" === input.type || _report(_exceptionable, {
|
|
16949
|
-
path: _path + ".type",
|
|
16950
|
-
expected: '"null"',
|
|
16951
|
-
value: input.type
|
|
16952
16948
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
16953
16949
|
path: _path + ".title",
|
|
16954
16950
|
expected: "(string | undefined)",
|
|
@@ -16969,16 +16965,12 @@ class NestiaMigrateApplication {
|
|
|
16969
16965
|
path: _path + ".writeOnly",
|
|
16970
16966
|
expected: "(boolean | undefined)",
|
|
16971
16967
|
value: input.writeOnly
|
|
16972
|
-
})
|
|
16973
|
-
const _vo118 = (input, _path, _exceptionable = true) => [ true, (null !== input.type || _report(_exceptionable, {
|
|
16974
|
-
path: _path + ".type",
|
|
16975
|
-
expected: "undefined",
|
|
16976
|
-
value: input.type
|
|
16977
|
-
})) && (undefined === input.type || _report(_exceptionable, {
|
|
16968
|
+
}), "null" === input.type || _report(_exceptionable, {
|
|
16978
16969
|
path: _path + ".type",
|
|
16979
|
-
expected: "
|
|
16970
|
+
expected: '"null"',
|
|
16980
16971
|
value: input.type
|
|
16981
|
-
})
|
|
16972
|
+
}) ].every(flag => flag);
|
|
16973
|
+
const _vo118 = (input, _path, _exceptionable = true) => [ true, undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
16982
16974
|
path: _path + ".title",
|
|
16983
16975
|
expected: "(string | undefined)",
|
|
16984
16976
|
value: input.title
|
|
@@ -16998,7 +16990,15 @@ class NestiaMigrateApplication {
|
|
|
16998
16990
|
path: _path + ".writeOnly",
|
|
16999
16991
|
expected: "(boolean | undefined)",
|
|
17000
16992
|
value: input.writeOnly
|
|
17001
|
-
})
|
|
16993
|
+
}), (null !== input.type || _report(_exceptionable, {
|
|
16994
|
+
path: _path + ".type",
|
|
16995
|
+
expected: "undefined",
|
|
16996
|
+
value: input.type
|
|
16997
|
+
})) && (undefined === input.type || _report(_exceptionable, {
|
|
16998
|
+
path: _path + ".type",
|
|
16999
|
+
expected: "undefined",
|
|
17000
|
+
value: input.type
|
|
17001
|
+
})) ].every(flag => flag);
|
|
17002
17002
|
const _vo119 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map(key => {
|
|
17003
17003
|
const value = input[key];
|
|
17004
17004
|
if (undefined === value) return true;
|
|
@@ -17158,7 +17158,7 @@ class NestiaMigrateApplication {
|
|
|
17158
17158
|
path: _path + ".name",
|
|
17159
17159
|
expected: "(string | undefined)",
|
|
17160
17160
|
value: input.name
|
|
17161
|
-
}), "query" === input["in"] || "
|
|
17161
|
+
}), "query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || _report(_exceptionable, {
|
|
17162
17162
|
path: _path + '["in"]',
|
|
17163
17163
|
expected: '("cookie" | "header" | "path" | "query")',
|
|
17164
17164
|
value: input["in"]
|
|
@@ -18273,10 +18273,6 @@ class NestiaMigrateApplication {
|
|
|
18273
18273
|
path: _path + '["enum"]',
|
|
18274
18274
|
expected: "(Array<boolean | null> | undefined)",
|
|
18275
18275
|
value: input["enum"]
|
|
18276
|
-
}), "boolean" === input.type || _report(_exceptionable, {
|
|
18277
|
-
path: _path + ".type",
|
|
18278
|
-
expected: '"boolean"',
|
|
18279
|
-
value: input.type
|
|
18280
18276
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
18281
18277
|
path: _path + ".title",
|
|
18282
18278
|
expected: "(string | undefined)",
|
|
@@ -18297,6 +18293,10 @@ class NestiaMigrateApplication {
|
|
|
18297
18293
|
path: _path + ".writeOnly",
|
|
18298
18294
|
expected: "(boolean | undefined)",
|
|
18299
18295
|
value: input.writeOnly
|
|
18296
|
+
}), "boolean" === input.type || _report(_exceptionable, {
|
|
18297
|
+
path: _path + ".type",
|
|
18298
|
+
expected: '"boolean"',
|
|
18299
|
+
value: input.type
|
|
18300
18300
|
}) ].every(flag => flag);
|
|
18301
18301
|
const _vo166 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
18302
18302
|
path: _path + ".nullable",
|
|
@@ -18366,10 +18366,6 @@ class NestiaMigrateApplication {
|
|
|
18366
18366
|
path: _path + ".multipleOf",
|
|
18367
18367
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
18368
18368
|
value: input.multipleOf
|
|
18369
|
-
}), "integer" === input.type || _report(_exceptionable, {
|
|
18370
|
-
path: _path + ".type",
|
|
18371
|
-
expected: '"integer"',
|
|
18372
|
-
value: input.type
|
|
18373
18369
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
18374
18370
|
path: _path + ".title",
|
|
18375
18371
|
expected: "(string | undefined)",
|
|
@@ -18390,6 +18386,10 @@ class NestiaMigrateApplication {
|
|
|
18390
18386
|
path: _path + ".writeOnly",
|
|
18391
18387
|
expected: "(boolean | undefined)",
|
|
18392
18388
|
value: input.writeOnly
|
|
18389
|
+
}), "integer" === input.type || _report(_exceptionable, {
|
|
18390
|
+
path: _path + ".type",
|
|
18391
|
+
expected: '"integer"',
|
|
18392
|
+
value: input.type
|
|
18393
18393
|
}) ].every(flag => flag);
|
|
18394
18394
|
const _vo167 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
18395
18395
|
path: _path + ".nullable",
|
|
@@ -18435,10 +18435,6 @@ class NestiaMigrateApplication {
|
|
|
18435
18435
|
path: _path + ".multipleOf",
|
|
18436
18436
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
18437
18437
|
value: input.multipleOf
|
|
18438
|
-
}), "number" === input.type || _report(_exceptionable, {
|
|
18439
|
-
path: _path + ".type",
|
|
18440
|
-
expected: '"number"',
|
|
18441
|
-
value: input.type
|
|
18442
18438
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
18443
18439
|
path: _path + ".title",
|
|
18444
18440
|
expected: "(string | undefined)",
|
|
@@ -18459,6 +18455,10 @@ class NestiaMigrateApplication {
|
|
|
18459
18455
|
path: _path + ".writeOnly",
|
|
18460
18456
|
expected: "(boolean | undefined)",
|
|
18461
18457
|
value: input.writeOnly
|
|
18458
|
+
}), "number" === input.type || _report(_exceptionable, {
|
|
18459
|
+
path: _path + ".type",
|
|
18460
|
+
expected: '"number"',
|
|
18461
|
+
value: input.type
|
|
18462
18462
|
}) ].every(flag => flag);
|
|
18463
18463
|
const _vo168 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
18464
18464
|
path: _path + ".nullable",
|
|
@@ -18508,10 +18508,6 @@ class NestiaMigrateApplication {
|
|
|
18508
18508
|
path: _path + ".maxLength",
|
|
18509
18509
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
18510
18510
|
value: input.maxLength
|
|
18511
|
-
}), "string" === input.type || _report(_exceptionable, {
|
|
18512
|
-
path: _path + ".type",
|
|
18513
|
-
expected: '"string"',
|
|
18514
|
-
value: input.type
|
|
18515
18511
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
18516
18512
|
path: _path + ".title",
|
|
18517
18513
|
expected: "(string | undefined)",
|
|
@@ -18532,6 +18528,10 @@ class NestiaMigrateApplication {
|
|
|
18532
18528
|
path: _path + ".writeOnly",
|
|
18533
18529
|
expected: "(boolean | undefined)",
|
|
18534
18530
|
value: input.writeOnly
|
|
18531
|
+
}), "string" === input.type || _report(_exceptionable, {
|
|
18532
|
+
path: _path + ".type",
|
|
18533
|
+
expected: '"string"',
|
|
18534
|
+
value: input.type
|
|
18535
18535
|
}) ].every(flag => flag);
|
|
18536
18536
|
const _vo169 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
18537
18537
|
path: _path + ".nullable",
|
|
@@ -18605,10 +18605,6 @@ class NestiaMigrateApplication {
|
|
|
18605
18605
|
path: _path + ".maxItems",
|
|
18606
18606
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
18607
18607
|
value: input.maxItems
|
|
18608
|
-
}), "array" === input.type || _report(_exceptionable, {
|
|
18609
|
-
path: _path + ".type",
|
|
18610
|
-
expected: '"array"',
|
|
18611
|
-
value: input.type
|
|
18612
18608
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
18613
18609
|
path: _path + ".title",
|
|
18614
18610
|
expected: "(string | undefined)",
|
|
@@ -18629,6 +18625,10 @@ class NestiaMigrateApplication {
|
|
|
18629
18625
|
path: _path + ".writeOnly",
|
|
18630
18626
|
expected: "(boolean | undefined)",
|
|
18631
18627
|
value: input.writeOnly
|
|
18628
|
+
}), "array" === input.type || _report(_exceptionable, {
|
|
18629
|
+
path: _path + ".type",
|
|
18630
|
+
expected: '"array"',
|
|
18631
|
+
value: input.type
|
|
18632
18632
|
}) ].every(flag => flag);
|
|
18633
18633
|
const _vo170 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
18634
18634
|
path: _path + ".nullable",
|
|
@@ -18674,10 +18674,6 @@ class NestiaMigrateApplication {
|
|
|
18674
18674
|
path: _path + ".minProperties",
|
|
18675
18675
|
expected: "(number | undefined)",
|
|
18676
18676
|
value: input.minProperties
|
|
18677
|
-
}), "object" === input.type || _report(_exceptionable, {
|
|
18678
|
-
path: _path + ".type",
|
|
18679
|
-
expected: '"object"',
|
|
18680
|
-
value: input.type
|
|
18681
18677
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
18682
18678
|
path: _path + ".title",
|
|
18683
18679
|
expected: "(string | undefined)",
|
|
@@ -18698,6 +18694,10 @@ class NestiaMigrateApplication {
|
|
|
18698
18694
|
path: _path + ".writeOnly",
|
|
18699
18695
|
expected: "(boolean | undefined)",
|
|
18700
18696
|
value: input.writeOnly
|
|
18697
|
+
}), "object" === input.type || _report(_exceptionable, {
|
|
18698
|
+
path: _path + ".type",
|
|
18699
|
+
expected: '"object"',
|
|
18700
|
+
value: input.type
|
|
18701
18701
|
}) ].every(flag => flag);
|
|
18702
18702
|
const _vo171 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref || _report(_exceptionable, {
|
|
18703
18703
|
path: _path + ".$ref",
|
|
@@ -18785,10 +18785,6 @@ class NestiaMigrateApplication {
|
|
|
18785
18785
|
path: _path + '["default"]',
|
|
18786
18786
|
expected: "(null | undefined)",
|
|
18787
18787
|
value: input["default"]
|
|
18788
|
-
}), "null" === input.type || _report(_exceptionable, {
|
|
18789
|
-
path: _path + ".type",
|
|
18790
|
-
expected: '"null"',
|
|
18791
|
-
value: input.type
|
|
18792
18788
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
18793
18789
|
path: _path + ".title",
|
|
18794
18790
|
expected: "(string | undefined)",
|
|
@@ -18809,6 +18805,10 @@ class NestiaMigrateApplication {
|
|
|
18809
18805
|
path: _path + ".writeOnly",
|
|
18810
18806
|
expected: "(boolean | undefined)",
|
|
18811
18807
|
value: input.writeOnly
|
|
18808
|
+
}), "null" === input.type || _report(_exceptionable, {
|
|
18809
|
+
path: _path + ".type",
|
|
18810
|
+
expected: '"null"',
|
|
18811
|
+
value: input.type
|
|
18812
18812
|
}) ].every(flag => flag);
|
|
18813
18813
|
const _vo178 = (input, _path, _exceptionable = true) => [ (null !== input.type || _report(_exceptionable, {
|
|
18814
18814
|
path: _path + ".type",
|
|
@@ -18969,7 +18969,7 @@ class NestiaMigrateApplication {
|
|
|
18969
18969
|
path: _path + ".name",
|
|
18970
18970
|
expected: "(string | undefined)",
|
|
18971
18971
|
value: input.name
|
|
18972
|
-
}), "query" === input["in"] || "
|
|
18972
|
+
}), "query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || _report(_exceptionable, {
|
|
18973
18973
|
path: _path + '["in"]',
|
|
18974
18974
|
expected: '("cookie" | "header" | "path" | "query")',
|
|
18975
18975
|
value: input["in"]
|
|
@@ -20131,10 +20131,6 @@ class NestiaMigrateApplication {
|
|
|
20131
20131
|
path: _path + '["enum"]',
|
|
20132
20132
|
expected: "(Array<boolean | null> | undefined)",
|
|
20133
20133
|
value: input["enum"]
|
|
20134
|
-
}), "boolean" === input.type || _report(_exceptionable, {
|
|
20135
|
-
path: _path + ".type",
|
|
20136
|
-
expected: '"boolean"',
|
|
20137
|
-
value: input.type
|
|
20138
20134
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
20139
20135
|
path: _path + ".title",
|
|
20140
20136
|
expected: "(string | undefined)",
|
|
@@ -20155,6 +20151,10 @@ class NestiaMigrateApplication {
|
|
|
20155
20151
|
path: _path + ".writeOnly",
|
|
20156
20152
|
expected: "(boolean | undefined)",
|
|
20157
20153
|
value: input.writeOnly
|
|
20154
|
+
}), "boolean" === input.type || _report(_exceptionable, {
|
|
20155
|
+
path: _path + ".type",
|
|
20156
|
+
expected: '"boolean"',
|
|
20157
|
+
value: input.type
|
|
20158
20158
|
}) ].every(flag => flag);
|
|
20159
20159
|
const _vo228 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
20160
20160
|
path: _path + ".nullable",
|
|
@@ -20224,10 +20224,6 @@ class NestiaMigrateApplication {
|
|
|
20224
20224
|
path: _path + ".multipleOf",
|
|
20225
20225
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
20226
20226
|
value: input.multipleOf
|
|
20227
|
-
}), "integer" === input.type || _report(_exceptionable, {
|
|
20228
|
-
path: _path + ".type",
|
|
20229
|
-
expected: '"integer"',
|
|
20230
|
-
value: input.type
|
|
20231
20227
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
20232
20228
|
path: _path + ".title",
|
|
20233
20229
|
expected: "(string | undefined)",
|
|
@@ -20248,6 +20244,10 @@ class NestiaMigrateApplication {
|
|
|
20248
20244
|
path: _path + ".writeOnly",
|
|
20249
20245
|
expected: "(boolean | undefined)",
|
|
20250
20246
|
value: input.writeOnly
|
|
20247
|
+
}), "integer" === input.type || _report(_exceptionable, {
|
|
20248
|
+
path: _path + ".type",
|
|
20249
|
+
expected: '"integer"',
|
|
20250
|
+
value: input.type
|
|
20251
20251
|
}) ].every(flag => flag);
|
|
20252
20252
|
const _vo229 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
20253
20253
|
path: _path + ".nullable",
|
|
@@ -20293,10 +20293,6 @@ class NestiaMigrateApplication {
|
|
|
20293
20293
|
path: _path + ".multipleOf",
|
|
20294
20294
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
20295
20295
|
value: input.multipleOf
|
|
20296
|
-
}), "number" === input.type || _report(_exceptionable, {
|
|
20297
|
-
path: _path + ".type",
|
|
20298
|
-
expected: '"number"',
|
|
20299
|
-
value: input.type
|
|
20300
20296
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
20301
20297
|
path: _path + ".title",
|
|
20302
20298
|
expected: "(string | undefined)",
|
|
@@ -20317,6 +20313,10 @@ class NestiaMigrateApplication {
|
|
|
20317
20313
|
path: _path + ".writeOnly",
|
|
20318
20314
|
expected: "(boolean | undefined)",
|
|
20319
20315
|
value: input.writeOnly
|
|
20316
|
+
}), "number" === input.type || _report(_exceptionable, {
|
|
20317
|
+
path: _path + ".type",
|
|
20318
|
+
expected: '"number"',
|
|
20319
|
+
value: input.type
|
|
20320
20320
|
}) ].every(flag => flag);
|
|
20321
20321
|
const _vo230 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
20322
20322
|
path: _path + ".nullable",
|
|
@@ -20366,10 +20366,6 @@ class NestiaMigrateApplication {
|
|
|
20366
20366
|
path: _path + ".maxLength",
|
|
20367
20367
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
20368
20368
|
value: input.maxLength
|
|
20369
|
-
}), "string" === input.type || _report(_exceptionable, {
|
|
20370
|
-
path: _path + ".type",
|
|
20371
|
-
expected: '"string"',
|
|
20372
|
-
value: input.type
|
|
20373
20369
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
20374
20370
|
path: _path + ".title",
|
|
20375
20371
|
expected: "(string | undefined)",
|
|
@@ -20390,6 +20386,10 @@ class NestiaMigrateApplication {
|
|
|
20390
20386
|
path: _path + ".writeOnly",
|
|
20391
20387
|
expected: "(boolean | undefined)",
|
|
20392
20388
|
value: input.writeOnly
|
|
20389
|
+
}), "string" === input.type || _report(_exceptionable, {
|
|
20390
|
+
path: _path + ".type",
|
|
20391
|
+
expected: '"string"',
|
|
20392
|
+
value: input.type
|
|
20393
20393
|
}) ].every(flag => flag);
|
|
20394
20394
|
const _vo231 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
20395
20395
|
path: _path + ".nullable",
|
|
@@ -20463,10 +20463,6 @@ class NestiaMigrateApplication {
|
|
|
20463
20463
|
path: _path + ".maxItems",
|
|
20464
20464
|
expected: '((number & Type<"uint64">) | undefined)',
|
|
20465
20465
|
value: input.maxItems
|
|
20466
|
-
}), "array" === input.type || _report(_exceptionable, {
|
|
20467
|
-
path: _path + ".type",
|
|
20468
|
-
expected: '"array"',
|
|
20469
|
-
value: input.type
|
|
20470
20466
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
20471
20467
|
path: _path + ".title",
|
|
20472
20468
|
expected: "(string | undefined)",
|
|
@@ -20487,6 +20483,10 @@ class NestiaMigrateApplication {
|
|
|
20487
20483
|
path: _path + ".writeOnly",
|
|
20488
20484
|
expected: "(boolean | undefined)",
|
|
20489
20485
|
value: input.writeOnly
|
|
20486
|
+
}), "array" === input.type || _report(_exceptionable, {
|
|
20487
|
+
path: _path + ".type",
|
|
20488
|
+
expected: '"array"',
|
|
20489
|
+
value: input.type
|
|
20490
20490
|
}) ].every(flag => flag);
|
|
20491
20491
|
const _vo232 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
|
20492
20492
|
path: _path + ".nullable",
|
|
@@ -20532,10 +20532,6 @@ class NestiaMigrateApplication {
|
|
|
20532
20532
|
path: _path + ".minProperties",
|
|
20533
20533
|
expected: "(number | undefined)",
|
|
20534
20534
|
value: input.minProperties
|
|
20535
|
-
}), "object" === input.type || _report(_exceptionable, {
|
|
20536
|
-
path: _path + ".type",
|
|
20537
|
-
expected: '"object"',
|
|
20538
|
-
value: input.type
|
|
20539
20535
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
20540
20536
|
path: _path + ".title",
|
|
20541
20537
|
expected: "(string | undefined)",
|
|
@@ -20556,6 +20552,10 @@ class NestiaMigrateApplication {
|
|
|
20556
20552
|
path: _path + ".writeOnly",
|
|
20557
20553
|
expected: "(boolean | undefined)",
|
|
20558
20554
|
value: input.writeOnly
|
|
20555
|
+
}), "object" === input.type || _report(_exceptionable, {
|
|
20556
|
+
path: _path + ".type",
|
|
20557
|
+
expected: '"object"',
|
|
20558
|
+
value: input.type
|
|
20559
20559
|
}) ].every(flag => flag);
|
|
20560
20560
|
const _vo233 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref || _report(_exceptionable, {
|
|
20561
20561
|
path: _path + ".$ref",
|
|
@@ -20643,10 +20643,6 @@ class NestiaMigrateApplication {
|
|
|
20643
20643
|
path: _path + '["default"]',
|
|
20644
20644
|
expected: "(null | undefined)",
|
|
20645
20645
|
value: input["default"]
|
|
20646
|
-
}), "null" === input.type || _report(_exceptionable, {
|
|
20647
|
-
path: _path + ".type",
|
|
20648
|
-
expected: '"null"',
|
|
20649
|
-
value: input.type
|
|
20650
20646
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
20651
20647
|
path: _path + ".title",
|
|
20652
20648
|
expected: "(string | undefined)",
|
|
@@ -20667,6 +20663,10 @@ class NestiaMigrateApplication {
|
|
|
20667
20663
|
path: _path + ".writeOnly",
|
|
20668
20664
|
expected: "(boolean | undefined)",
|
|
20669
20665
|
value: input.writeOnly
|
|
20666
|
+
}), "null" === input.type || _report(_exceptionable, {
|
|
20667
|
+
path: _path + ".type",
|
|
20668
|
+
expected: '"null"',
|
|
20669
|
+
value: input.type
|
|
20670
20670
|
}) ].every(flag => flag);
|
|
20671
20671
|
const _vo240 = (input, _path, _exceptionable = true) => [ (null !== input.type || _report(_exceptionable, {
|
|
20672
20672
|
path: _path + ".type",
|
|
@@ -20835,7 +20835,7 @@ class NestiaMigrateApplication {
|
|
|
20835
20835
|
path: _path + ".name",
|
|
20836
20836
|
expected: "(string | undefined)",
|
|
20837
20837
|
value: input.name
|
|
20838
|
-
}), "query" === input["in"] || "
|
|
20838
|
+
}), "query" === input["in"] || "path" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || "querystring" === input["in"] || _report(_exceptionable, {
|
|
20839
20839
|
path: _path + '["in"]',
|
|
20840
20840
|
expected: '("cookie" | "header" | "path" | "query" | "querystring")',
|
|
20841
20841
|
value: input["in"]
|