|
1 | 1 | import typia, { tags } from "typia"; |
2 | 2 | import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js"; |
3 | 3 | import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard.js"; |
| 4 | +import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js"; |
4 | 5 | import * as __typia_transform__isFormatEmail from "typia/lib/internal/_isFormatEmail.js"; |
5 | 6 | import * as __typia_transform__isFormatUuid from "typia/lib/internal/_isFormatUuid.js"; |
6 | 7 | import * as __typia_transform__isTypeUint32 from "typia/lib/internal/_isTypeUint32.js"; |
@@ -1443,42 +1444,44 @@ export const createValidate = (() => { |
1443 | 1444 | "object" === typeof input && null !== input && _io0(input); |
1444 | 1445 | let errors: any; |
1445 | 1446 | let _report: any; |
1446 | | - return (input: any): import("typia").IValidation<ICitizen> => { |
1447 | | - if (false === __is(input)) { |
1448 | | - errors = []; |
1449 | | - _report = (__typia_transform__validateReport._validateReport as any)( |
1450 | | - errors, |
1451 | | - ); |
1452 | | - ((input: any, _path: string, _exceptionable: boolean = true) => |
1453 | | - ((("object" === typeof input && null !== input) || |
| 1447 | + return __typia_transform__createStandardSchema._createStandardSchema( |
| 1448 | + (input: any): import("typia").IValidation<ICitizen> => { |
| 1449 | + if (false === __is(input)) { |
| 1450 | + errors = []; |
| 1451 | + _report = (__typia_transform__validateReport._validateReport as any)( |
| 1452 | + errors, |
| 1453 | + ); |
| 1454 | + ((input: any, _path: string, _exceptionable: boolean = true) => |
| 1455 | + ((("object" === typeof input && null !== input) || |
| 1456 | + _report(true, { |
| 1457 | + path: _path + "", |
| 1458 | + expected: "ICitizen", |
| 1459 | + value: input, |
| 1460 | + })) && |
| 1461 | + _vo0(input, _path + "", true)) || |
1454 | 1462 | _report(true, { |
1455 | 1463 | path: _path + "", |
1456 | 1464 | expected: "ICitizen", |
1457 | 1465 | value: input, |
1458 | | - })) && |
1459 | | - _vo0(input, _path + "", true)) || |
1460 | | - _report(true, { |
1461 | | - path: _path + "", |
1462 | | - expected: "ICitizen", |
1463 | | - value: input, |
1464 | | - }))(input, "$input", true); |
1465 | | - const success = 0 === errors.length; |
1466 | | - return success |
1467 | | - ? { |
1468 | | - success, |
1469 | | - data: input, |
1470 | | - } |
1471 | | - : ({ |
1472 | | - success, |
1473 | | - errors, |
1474 | | - data: input, |
1475 | | - } as any); |
1476 | | - } |
1477 | | - return { |
1478 | | - success: true, |
1479 | | - data: input, |
1480 | | - } as any; |
1481 | | - }; |
| 1466 | + }))(input, "$input", true); |
| 1467 | + const success = 0 === errors.length; |
| 1468 | + return success |
| 1469 | + ? { |
| 1470 | + success, |
| 1471 | + data: input, |
| 1472 | + } |
| 1473 | + : ({ |
| 1474 | + success, |
| 1475 | + errors, |
| 1476 | + data: input, |
| 1477 | + } as any); |
| 1478 | + } |
| 1479 | + return { |
| 1480 | + success: true, |
| 1481 | + data: input, |
| 1482 | + } as any; |
| 1483 | + }, |
| 1484 | + ); |
1482 | 1485 | })(); |
1483 | 1486 | export const createValidateEquals = (() => { |
1484 | 1487 | const _io0 = (input: any, _exceptionable: boolean = true): boolean => |
@@ -1688,42 +1691,44 @@ export const createValidateEquals = (() => { |
1688 | 1691 | "object" === typeof input && null !== input && _io0(input, true); |
1689 | 1692 | let errors: any; |
1690 | 1693 | let _report: any; |
1691 | | - return (input: any): import("typia").IValidation<ICitizen> => { |
1692 | | - if (false === __is(input)) { |
1693 | | - errors = []; |
1694 | | - _report = (__typia_transform__validateReport._validateReport as any)( |
1695 | | - errors, |
1696 | | - ); |
1697 | | - ((input: any, _path: string, _exceptionable: boolean = true) => |
1698 | | - ((("object" === typeof input && null !== input) || |
| 1694 | + return __typia_transform__createStandardSchema._createStandardSchema( |
| 1695 | + (input: any): import("typia").IValidation<ICitizen> => { |
| 1696 | + if (false === __is(input)) { |
| 1697 | + errors = []; |
| 1698 | + _report = (__typia_transform__validateReport._validateReport as any)( |
| 1699 | + errors, |
| 1700 | + ); |
| 1701 | + ((input: any, _path: string, _exceptionable: boolean = true) => |
| 1702 | + ((("object" === typeof input && null !== input) || |
| 1703 | + _report(true, { |
| 1704 | + path: _path + "", |
| 1705 | + expected: "ICitizen", |
| 1706 | + value: input, |
| 1707 | + })) && |
| 1708 | + _vo0(input, _path + "", true)) || |
1699 | 1709 | _report(true, { |
1700 | 1710 | path: _path + "", |
1701 | 1711 | expected: "ICitizen", |
1702 | 1712 | value: input, |
1703 | | - })) && |
1704 | | - _vo0(input, _path + "", true)) || |
1705 | | - _report(true, { |
1706 | | - path: _path + "", |
1707 | | - expected: "ICitizen", |
1708 | | - value: input, |
1709 | | - }))(input, "$input", true); |
1710 | | - const success = 0 === errors.length; |
1711 | | - return success |
1712 | | - ? { |
1713 | | - success, |
1714 | | - data: input, |
1715 | | - } |
1716 | | - : ({ |
1717 | | - success, |
1718 | | - errors, |
1719 | | - data: input, |
1720 | | - } as any); |
1721 | | - } |
1722 | | - return { |
1723 | | - success: true, |
1724 | | - data: input, |
1725 | | - } as any; |
1726 | | - }; |
| 1713 | + }))(input, "$input", true); |
| 1714 | + const success = 0 === errors.length; |
| 1715 | + return success |
| 1716 | + ? { |
| 1717 | + success, |
| 1718 | + data: input, |
| 1719 | + } |
| 1720 | + : ({ |
| 1721 | + success, |
| 1722 | + errors, |
| 1723 | + data: input, |
| 1724 | + } as any); |
| 1725 | + } |
| 1726 | + return { |
| 1727 | + success: true, |
| 1728 | + data: input, |
| 1729 | + } as any; |
| 1730 | + }, |
| 1731 | + ); |
1727 | 1732 | })(); |
1728 | 1733 | export const createRandom = (() => { |
1729 | 1734 | const _ro0 = (_recursive: boolean = true, _depth: number = 0): any => ({ |
|
0 commit comments