@typia/utils 13.0.0-dev.20260427-3 → 13.0.0-dev.20260501
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/converters/LlmSchemaConverter.js +6 -6
- package/lib/converters/LlmSchemaConverter.js.map +1 -1
- package/lib/converters/LlmSchemaConverter.mjs +2 -7
- package/lib/converters/LlmSchemaConverter.mjs.map +1 -1
- package/lib/converters/LlmSchemaConverter2.mjs +449 -451
- package/lib/converters/LlmSchemaConverter2.mjs.map +1 -1
- package/lib/converters/OpenApiConverter.mjs +2 -7
- package/lib/converters/OpenApiConverter.mjs.map +1 -1
- package/lib/converters/OpenApiConverter2.mjs +163 -164
- package/lib/converters/OpenApiConverter2.mjs.map +1 -1
- package/lib/converters/index.mjs +1 -7
- package/lib/converters/index.mjs.map +1 -1
- package/lib/converters/index2.mjs +31 -32
- package/lib/converters/index2.mjs.map +1 -1
- package/lib/converters/internal/LlmDescriptionInverter.mjs +2 -7
- package/lib/converters/internal/LlmDescriptionInverter.mjs.map +1 -1
- package/lib/converters/internal/LlmDescriptionInverter2.mjs +143 -150
- package/lib/converters/internal/LlmDescriptionInverter2.mjs.map +1 -1
- package/lib/converters/internal/LlmParametersComposer.mjs +2 -7
- package/lib/converters/internal/LlmParametersComposer.mjs.map +1 -1
- package/lib/converters/internal/LlmParametersComposer2.mjs +37 -44
- package/lib/converters/internal/LlmParametersComposer2.mjs.map +1 -1
- package/lib/converters/internal/OpenApiConstraintShifter.mjs +2 -7
- package/lib/converters/internal/OpenApiConstraintShifter.mjs.map +1 -1
- package/lib/converters/internal/OpenApiConstraintShifter2.mjs +105 -112
- package/lib/converters/internal/OpenApiConstraintShifter2.mjs.map +1 -1
- package/lib/converters/internal/OpenApiExclusiveEmender.mjs +2 -7
- package/lib/converters/internal/OpenApiExclusiveEmender.mjs.map +1 -1
- package/lib/converters/internal/OpenApiExclusiveEmender2.mjs +32 -40
- package/lib/converters/internal/OpenApiExclusiveEmender2.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3Downgrader.mjs +2 -7
- package/lib/converters/internal/OpenApiV3Downgrader.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3Downgrader2.mjs +237 -244
- package/lib/converters/internal/OpenApiV3Downgrader2.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3Upgrader.mjs +2 -7
- package/lib/converters/internal/OpenApiV3Upgrader.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3Upgrader2.mjs +300 -305
- package/lib/converters/internal/OpenApiV3Upgrader2.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3_1Downgrader.mjs +2 -7
- package/lib/converters/internal/OpenApiV3_1Downgrader.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3_1Downgrader2.mjs +193 -200
- package/lib/converters/internal/OpenApiV3_1Downgrader2.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3_1Upgrader.mjs +2 -7
- package/lib/converters/internal/OpenApiV3_1Upgrader.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3_1Upgrader2.mjs +424 -429
- package/lib/converters/internal/OpenApiV3_1Upgrader2.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3_2Upgrader.mjs +2 -7
- package/lib/converters/internal/OpenApiV3_2Upgrader.mjs.map +1 -1
- package/lib/converters/internal/OpenApiV3_2Upgrader2.mjs +202 -208
- package/lib/converters/internal/OpenApiV3_2Upgrader2.mjs.map +1 -1
- package/lib/converters/internal/SwaggerV2Downgrader.mjs +2 -7
- package/lib/converters/internal/SwaggerV2Downgrader.mjs.map +1 -1
- package/lib/converters/internal/SwaggerV2Downgrader2.mjs +287 -294
- package/lib/converters/internal/SwaggerV2Downgrader2.mjs.map +1 -1
- package/lib/converters/internal/SwaggerV2Upgrader.mjs +2 -7
- package/lib/converters/internal/SwaggerV2Upgrader.mjs.map +1 -1
- package/lib/converters/internal/SwaggerV2Upgrader2.mjs +370 -375
- package/lib/converters/internal/SwaggerV2Upgrader2.mjs.map +1 -1
- package/lib/http/HttpError.mjs +2 -7
- package/lib/http/HttpError.mjs.map +1 -1
- package/lib/http/HttpError2.mjs +69 -77
- package/lib/http/HttpError2.mjs.map +1 -1
- package/lib/http/HttpLlm.mjs +2 -7
- package/lib/http/HttpLlm.mjs.map +1 -1
- package/lib/http/HttpLlm2.mjs +107 -112
- package/lib/http/HttpLlm2.mjs.map +1 -1
- package/lib/http/HttpMigration.mjs +2 -7
- package/lib/http/HttpMigration.mjs.map +1 -1
- package/lib/http/HttpMigration2.mjs +58 -63
- package/lib/http/HttpMigration2.mjs.map +1 -1
- package/lib/http/index.mjs +1 -7
- package/lib/http/index.mjs.map +1 -1
- package/lib/http/index2.mjs +30 -31
- package/lib/http/index2.mjs.map +1 -1
- package/lib/http/internal/HttpLlmApplicationComposer.mjs +2 -7
- package/lib/http/internal/HttpLlmApplicationComposer.mjs.map +1 -1
- package/lib/http/internal/HttpLlmApplicationComposer2.mjs +301 -306
- package/lib/http/internal/HttpLlmApplicationComposer2.mjs.map +1 -1
- package/lib/http/internal/HttpLlmFunctionFetcher.mjs +2 -7
- package/lib/http/internal/HttpLlmFunctionFetcher.mjs.map +1 -1
- package/lib/http/internal/HttpLlmFunctionFetcher2.mjs +26 -33
- package/lib/http/internal/HttpLlmFunctionFetcher2.mjs.map +1 -1
- package/lib/http/internal/HttpMigrateApplicationComposer.mjs +2 -7
- package/lib/http/internal/HttpMigrateApplicationComposer.mjs.map +1 -1
- package/lib/http/internal/HttpMigrateApplicationComposer2.mjs +51 -56
- package/lib/http/internal/HttpMigrateApplicationComposer2.mjs.map +1 -1
- package/lib/http/internal/HttpMigrateRouteAccessor.mjs +2 -7
- package/lib/http/internal/HttpMigrateRouteAccessor.mjs.map +1 -1
- package/lib/http/internal/HttpMigrateRouteAccessor2.mjs +113 -118
- package/lib/http/internal/HttpMigrateRouteAccessor2.mjs.map +1 -1
- package/lib/http/internal/HttpMigrateRouteComposer.mjs +2 -7
- package/lib/http/internal/HttpMigrateRouteComposer.mjs.map +1 -1
- package/lib/http/internal/HttpMigrateRouteComposer2.mjs +376 -381
- package/lib/http/internal/HttpMigrateRouteComposer2.mjs.map +1 -1
- package/lib/http/internal/HttpMigrateRouteFetcher.mjs +2 -7
- package/lib/http/internal/HttpMigrateRouteFetcher.mjs.map +1 -1
- package/lib/http/internal/HttpMigrateRouteFetcher2.mjs +182 -189
- package/lib/http/internal/HttpMigrateRouteFetcher2.mjs.map +1 -1
- package/lib/index.mjs +1 -7
- package/lib/index.mjs.map +1 -1
- package/lib/index2.mjs +33 -33
- package/lib/index2.mjs.map +1 -1
- package/lib/utils/ArrayUtil.mjs +2 -7
- package/lib/utils/ArrayUtil.mjs.map +1 -1
- package/lib/utils/ArrayUtil2.mjs +29 -37
- package/lib/utils/ArrayUtil2.mjs.map +1 -1
- package/lib/utils/LlmJson.mjs +2 -7
- package/lib/utils/LlmJson.mjs.map +1 -1
- package/lib/utils/LlmJson2.mjs +166 -169
- package/lib/utils/LlmJson2.mjs.map +1 -1
- package/lib/utils/MapUtil.mjs +2 -7
- package/lib/utils/MapUtil.mjs.map +1 -1
- package/lib/utils/MapUtil2.mjs +16 -24
- package/lib/utils/MapUtil2.mjs.map +1 -1
- package/lib/utils/NamingConvention.mjs +2 -7
- package/lib/utils/NamingConvention.mjs.map +1 -1
- package/lib/utils/NamingConvention2.mjs +199 -207
- package/lib/utils/NamingConvention2.mjs.map +1 -1
- package/lib/utils/Singleton.d.ts +1 -6
- package/lib/utils/Singleton.js +1 -0
- package/lib/utils/Singleton.js.map +1 -1
- package/lib/utils/Singleton.mjs +2 -7
- package/lib/utils/Singleton.mjs.map +1 -1
- package/lib/utils/Singleton2.mjs +17 -24
- package/lib/utils/Singleton2.mjs.map +1 -1
- package/lib/utils/StringUtil.mjs +2 -7
- package/lib/utils/StringUtil.mjs.map +1 -1
- package/lib/utils/StringUtil2.mjs +14 -22
- package/lib/utils/StringUtil2.mjs.map +1 -1
- package/lib/utils/dedent.mjs +2 -7
- package/lib/utils/dedent.mjs.map +1 -1
- package/lib/utils/dedent2.mjs +50 -58
- package/lib/utils/dedent2.mjs.map +1 -1
- package/lib/utils/index.mjs +1 -7
- package/lib/utils/index.mjs.map +1 -1
- package/lib/utils/index2.mjs +42 -39
- package/lib/utils/index2.mjs.map +1 -1
- package/lib/utils/internal/EndpointUtil.mjs +2 -7
- package/lib/utils/internal/EndpointUtil.mjs.map +1 -1
- package/lib/utils/internal/EndpointUtil2.mjs +39 -46
- package/lib/utils/internal/EndpointUtil2.mjs.map +1 -1
- package/lib/utils/internal/JsonDescriptor.mjs +2 -7
- package/lib/utils/internal/JsonDescriptor.mjs.map +1 -1
- package/lib/utils/internal/JsonDescriptor2.mjs +55 -61
- package/lib/utils/internal/JsonDescriptor2.mjs.map +1 -1
- package/lib/utils/internal/OpenApiTypeCheckerBase.js +23 -14
- package/lib/utils/internal/OpenApiTypeCheckerBase.js.map +1 -1
- package/lib/utils/internal/OpenApiTypeCheckerBase.mjs +2 -7
- package/lib/utils/internal/OpenApiTypeCheckerBase.mjs.map +1 -1
- package/lib/utils/internal/OpenApiTypeCheckerBase2.mjs +539 -536
- package/lib/utils/internal/OpenApiTypeCheckerBase2.mjs.map +1 -1
- package/lib/utils/internal/coerceLlmArguments.js +27 -1
- package/lib/utils/internal/coerceLlmArguments.js.map +1 -1
- package/lib/utils/internal/coerceLlmArguments.mjs +2 -7
- package/lib/utils/internal/coerceLlmArguments.mjs.map +1 -1
- package/lib/utils/internal/coerceLlmArguments2.mjs +278 -258
- package/lib/utils/internal/coerceLlmArguments2.mjs.map +1 -1
- package/lib/utils/internal/parseLenientJson.mjs +2 -7
- package/lib/utils/internal/parseLenientJson.mjs.map +1 -1
- package/lib/utils/internal/parseLenientJson2.mjs +803 -811
- package/lib/utils/internal/parseLenientJson2.mjs.map +1 -1
- package/lib/utils/internal/stringifyValidationFailure.mjs +2 -7
- package/lib/utils/internal/stringifyValidationFailure.mjs.map +1 -1
- package/lib/utils/internal/stringifyValidationFailure2.mjs +310 -316
- package/lib/utils/internal/stringifyValidationFailure2.mjs.map +1 -1
- package/lib/validators/LlmTypeChecker.mjs +2 -7
- package/lib/validators/LlmTypeChecker.mjs.map +1 -1
- package/lib/validators/LlmTypeChecker2.mjs +314 -320
- package/lib/validators/LlmTypeChecker2.mjs.map +1 -1
- package/lib/validators/OpenApiTypeChecker.mjs +2 -7
- package/lib/validators/OpenApiTypeChecker.mjs.map +1 -1
- package/lib/validators/OpenApiTypeChecker2.mjs +209 -216
- package/lib/validators/OpenApiTypeChecker2.mjs.map +1 -1
- package/lib/validators/OpenApiV3TypeChecker.mjs +2 -7
- package/lib/validators/OpenApiV3TypeChecker.mjs.map +1 -1
- package/lib/validators/OpenApiV3TypeChecker2.mjs +30 -38
- package/lib/validators/OpenApiV3TypeChecker2.mjs.map +1 -1
- package/lib/validators/OpenApiV3_1TypeChecker.mjs +2 -7
- package/lib/validators/OpenApiV3_1TypeChecker.mjs.map +1 -1
- package/lib/validators/OpenApiV3_1TypeChecker2.mjs +34 -42
- package/lib/validators/OpenApiV3_1TypeChecker2.mjs.map +1 -1
- package/lib/validators/OpenApiValidator.mjs +2 -7
- package/lib/validators/OpenApiValidator.mjs.map +1 -1
- package/lib/validators/OpenApiValidator2.mjs +73 -80
- package/lib/validators/OpenApiValidator2.mjs.map +1 -1
- package/lib/validators/SwaggerV2TypeChecker.mjs +2 -7
- package/lib/validators/SwaggerV2TypeChecker.mjs.map +1 -1
- package/lib/validators/SwaggerV2TypeChecker2.mjs +31 -39
- package/lib/validators/SwaggerV2TypeChecker2.mjs.map +1 -1
- package/lib/validators/functional/_isBigintString.mjs +2 -7
- package/lib/validators/functional/_isBigintString.mjs.map +1 -1
- package/lib/validators/functional/_isBigintString2.mjs +14 -22
- package/lib/validators/functional/_isBigintString2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatByte.mjs +2 -7
- package/lib/validators/functional/_isFormatByte.mjs.map +1 -1
- package/lib/validators/functional/_isFormatByte2.mjs +10 -18
- package/lib/validators/functional/_isFormatByte2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatDate.mjs +2 -7
- package/lib/validators/functional/_isFormatDate.mjs.map +1 -1
- package/lib/validators/functional/_isFormatDate2.mjs +7 -15
- package/lib/validators/functional/_isFormatDate2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatDateTime.mjs +2 -7
- package/lib/validators/functional/_isFormatDateTime.mjs.map +1 -1
- package/lib/validators/functional/_isFormatDateTime2.mjs +7 -15
- package/lib/validators/functional/_isFormatDateTime2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatDuration.mjs +2 -7
- package/lib/validators/functional/_isFormatDuration.mjs.map +1 -1
- package/lib/validators/functional/_isFormatDuration2.mjs +7 -15
- package/lib/validators/functional/_isFormatDuration2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatEmail.mjs +2 -7
- package/lib/validators/functional/_isFormatEmail.mjs.map +1 -1
- package/lib/validators/functional/_isFormatEmail2.mjs +7 -15
- package/lib/validators/functional/_isFormatEmail2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatHostname.mjs +2 -7
- package/lib/validators/functional/_isFormatHostname.mjs.map +1 -1
- package/lib/validators/functional/_isFormatHostname2.mjs +7 -15
- package/lib/validators/functional/_isFormatHostname2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIdnEmail.mjs +2 -7
- package/lib/validators/functional/_isFormatIdnEmail.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIdnEmail2.mjs +7 -15
- package/lib/validators/functional/_isFormatIdnEmail2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIdnHostname.mjs +2 -7
- package/lib/validators/functional/_isFormatIdnHostname.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIdnHostname2.mjs +7 -15
- package/lib/validators/functional/_isFormatIdnHostname2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIpv4.mjs +2 -7
- package/lib/validators/functional/_isFormatIpv4.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIpv42.mjs +7 -15
- package/lib/validators/functional/_isFormatIpv42.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIpv6.mjs +2 -7
- package/lib/validators/functional/_isFormatIpv6.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIpv62.mjs +7 -15
- package/lib/validators/functional/_isFormatIpv62.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIri.mjs +2 -7
- package/lib/validators/functional/_isFormatIri.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIri2.mjs +7 -15
- package/lib/validators/functional/_isFormatIri2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIriReference.mjs +2 -7
- package/lib/validators/functional/_isFormatIriReference.mjs.map +1 -1
- package/lib/validators/functional/_isFormatIriReference2.mjs +7 -15
- package/lib/validators/functional/_isFormatIriReference2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatJsonPointer.mjs +2 -7
- package/lib/validators/functional/_isFormatJsonPointer.mjs.map +1 -1
- package/lib/validators/functional/_isFormatJsonPointer2.mjs +7 -15
- package/lib/validators/functional/_isFormatJsonPointer2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatPassword.mjs +2 -7
- package/lib/validators/functional/_isFormatPassword.mjs.map +1 -1
- package/lib/validators/functional/_isFormatPassword2.mjs +6 -14
- package/lib/validators/functional/_isFormatPassword2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatRegex.mjs +2 -7
- package/lib/validators/functional/_isFormatRegex.mjs.map +1 -1
- package/lib/validators/functional/_isFormatRegex2.mjs +14 -22
- package/lib/validators/functional/_isFormatRegex2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatRelativeJsonPointer.mjs +2 -7
- package/lib/validators/functional/_isFormatRelativeJsonPointer.mjs.map +1 -1
- package/lib/validators/functional/_isFormatRelativeJsonPointer2.mjs +7 -15
- package/lib/validators/functional/_isFormatRelativeJsonPointer2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatTime.mjs +2 -7
- package/lib/validators/functional/_isFormatTime.mjs.map +1 -1
- package/lib/validators/functional/_isFormatTime2.mjs +7 -15
- package/lib/validators/functional/_isFormatTime2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUri.mjs +2 -7
- package/lib/validators/functional/_isFormatUri.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUri2.mjs +8 -16
- package/lib/validators/functional/_isFormatUri2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUriReference.mjs +2 -7
- package/lib/validators/functional/_isFormatUriReference.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUriReference2.mjs +7 -15
- package/lib/validators/functional/_isFormatUriReference2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUriTemplate.mjs +2 -7
- package/lib/validators/functional/_isFormatUriTemplate.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUriTemplate2.mjs +7 -15
- package/lib/validators/functional/_isFormatUriTemplate2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUrl.mjs +2 -7
- package/lib/validators/functional/_isFormatUrl.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUrl2.mjs +7 -15
- package/lib/validators/functional/_isFormatUrl2.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUuid.mjs +2 -7
- package/lib/validators/functional/_isFormatUuid.mjs.map +1 -1
- package/lib/validators/functional/_isFormatUuid2.mjs +7 -15
- package/lib/validators/functional/_isFormatUuid2.mjs.map +1 -1
- package/lib/validators/functional/_isUniqueItems.mjs +2 -7
- package/lib/validators/functional/_isUniqueItems.mjs.map +1 -1
- package/lib/validators/functional/_isUniqueItems2.mjs +140 -148
- package/lib/validators/functional/_isUniqueItems2.mjs.map +1 -1
- package/lib/validators/index.mjs +1 -7
- package/lib/validators/index.mjs.map +1 -1
- package/lib/validators/index2.mjs +42 -40
- package/lib/validators/index2.mjs.map +1 -1
- package/lib/validators/internal/IOpenApiValidatorContext.mjs +2 -7
- package/lib/validators/internal/IOpenApiValidatorContext.mjs.map +1 -1
- package/lib/validators/internal/IOpenApiValidatorContext2.mjs +2 -10
- package/lib/validators/internal/IOpenApiValidatorContext2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiArrayValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiArrayValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiArrayValidator2.mjs +36 -42
- package/lib/validators/internal/OpenApiArrayValidator2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiBooleanValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiBooleanValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiBooleanValidator2.mjs +10 -18
- package/lib/validators/internal/OpenApiBooleanValidator2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiConstantValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiConstantValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiConstantValidator2.mjs +10 -18
- package/lib/validators/internal/OpenApiConstantValidator2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiIntegerValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiIntegerValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiIntegerValidator2.mjs +33 -41
- package/lib/validators/internal/OpenApiIntegerValidator2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiNumberValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiNumberValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiNumberValidator2.mjs +33 -41
- package/lib/validators/internal/OpenApiNumberValidator2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiObjectValidator.js +2 -3
- package/lib/validators/internal/OpenApiObjectValidator.js.map +1 -1
- package/lib/validators/internal/OpenApiObjectValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiObjectValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiObjectValidator2.mjs +55 -62
- package/lib/validators/internal/OpenApiObjectValidator2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiOneOfValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiOneOfValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiOneOfValidator2.mjs +188 -193
- package/lib/validators/internal/OpenApiOneOfValidator2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiSchemaNamingRule.mjs +2 -7
- package/lib/validators/internal/OpenApiSchemaNamingRule.mjs.map +1 -1
- package/lib/validators/internal/OpenApiSchemaNamingRule2.mjs +124 -131
- package/lib/validators/internal/OpenApiSchemaNamingRule2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiStationValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiStationValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiStationValidator2.mjs +86 -83
- package/lib/validators/internal/OpenApiStationValidator2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiStringValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiStringValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiStringValidator2.mjs +115 -102
- package/lib/validators/internal/OpenApiStringValidator2.mjs.map +1 -1
- package/lib/validators/internal/OpenApiTupleValidator.mjs +2 -7
- package/lib/validators/internal/OpenApiTupleValidator.mjs.map +1 -1
- package/lib/validators/internal/OpenApiTupleValidator2.mjs +33 -40
- package/lib/validators/internal/OpenApiTupleValidator2.mjs.map +1 -1
- package/package.json +4 -4
- package/src/converters/LlmSchemaConverter.ts +1 -1
- package/src/utils/Singleton.ts +1 -0
- package/src/utils/internal/OpenApiTypeCheckerBase.ts +12 -3
- package/src/utils/internal/coerceLlmArguments.ts +27 -1
- package/src/validators/internal/OpenApiObjectValidator.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringifyValidationFailure2.mjs","sources":["stringifyValidationFailure.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.stringifyValidationFailure = stringifyValidationFailure;\nconst NamingConvention_1 = require(\"../NamingConvention\");\nconst dedent_1 = require(\"../dedent\");\nfunction stringifyValidationFailure(failure) {\n const usedErrors = new Set();\n // Pre-index errors by path for O(1) lookup\n const errorsByPath = new Map();\n for (const e of failure.errors) {\n const arr = errorsByPath.get(e.path);\n if (arr !== undefined)\n arr.push(e);\n else\n errorsByPath.set(e.path, [e]);\n }\n const jsonOutput = stringify({\n value: failure.data,\n errorsByPath,\n path: \"$input\",\n tab: 0,\n inArray: false,\n inToJson: false,\n usedErrors,\n });\n // Find errors that couldn't be embedded\n const unmappableErrors = failure.errors.filter((e) => !usedErrors.has(e));\n // If there are unmappable errors, append them as a separate block\n if (unmappableErrors.length > 0)\n return (0, dedent_1.dedent) `\n \\`\\`\\`json\n ${jsonOutput}\n \\`\\`\\`\n\n **Unmappable validation errors:**\n \\`\\`\\`json\n ${JSON.stringify(unmappableErrors, null, 2)}\n \\`\\`\\`\n `;\n return (0, dedent_1.dedent) `\n \\`\\`\\`json\n ${jsonOutput}\n \\`\\`\\`\n `;\n}\nfunction stringify(props) {\n var _a;\n const { value, errorsByPath, path, tab, inArray, inToJson, usedErrors } = props;\n const indent = \" \".repeat(tab);\n const errorComment = getErrorComment(path, errorsByPath, usedErrors);\n // Handle undefined in arrays\n if (inArray && value === undefined) {\n return `${indent}undefined${errorComment}`;\n }\n // Array\n if (Array.isArray(value)) {\n // Check for missing array element errors (path[])\n const missingElementErrors = getMissingArrayElementErrors(path, errorsByPath, usedErrors);\n const hasMissingElements = missingElementErrors.length > 0;\n if (value.length === 0) {\n // Empty array but has missing element errors - show placeholders\n if (hasMissingElements) {\n const innerIndent = \" \".repeat(tab + 1);\n const lines = [];\n lines.push(`${indent}[${errorComment}`);\n missingElementErrors.forEach((e, idx) => {\n const errComment = ` // ❌ ${JSON.stringify([{ path: e.path, expected: e.expected, description: e.description }])}`;\n const comma = idx < missingElementErrors.length - 1 ? \",\" : \"\";\n lines.push(`${innerIndent}undefined${comma}${errComment}`);\n });\n lines.push(`${indent}]`);\n return lines.join(\"\\n\");\n }\n return `${indent}[]${errorComment}`;\n }\n const lines = [];\n lines.push(`${indent}[${errorComment}`);\n value.forEach((item, index) => {\n const itemPath = `${path}[${index}]`;\n const isLastElement = index === value.length - 1;\n // If there are missing element errors, this is not truly the last line\n const needsComma = !isLastElement || hasMissingElements;\n let itemStr = stringify({\n value: item,\n errorsByPath,\n path: itemPath,\n tab: tab + 1,\n inArray: true,\n inToJson: false,\n usedErrors,\n });\n // Add comma before the error comment if not the last element\n if (needsComma) {\n itemStr = insertCommaBeforeComment(itemStr);\n }\n lines.push(itemStr);\n });\n // Add missing element placeholders at the end for each [] error\n if (hasMissingElements) {\n const innerIndent = \" \".repeat(tab + 1);\n missingElementErrors.forEach((e, idx) => {\n const errComment = ` // ❌ ${JSON.stringify([{ path: e.path, expected: e.expected, description: e.description }])}`;\n const comma = idx < missingElementErrors.length - 1 ? \",\" : \"\";\n lines.push(`${innerIndent}undefined${comma}${errComment}`);\n });\n }\n lines.push(`${indent}]`);\n return lines.join(\"\\n\");\n }\n // Object\n if (typeof value === \"object\" && value !== null) {\n // Check for toJSON method\n // biome-ignore lint: intended\n if (!inToJson && typeof value.toJSON === \"function\") {\n // biome-ignore lint: intended\n const jsonValue = value.toJSON();\n return stringify({\n value: jsonValue,\n errorsByPath,\n path,\n tab,\n inArray,\n inToJson: true,\n usedErrors,\n });\n }\n // Get all entries from the object (including undefined values that have errors)\n const allEntries = Object.entries(value);\n // Split into defined and undefined entries\n const definedEntries = allEntries.filter(([_, val]) => val !== undefined);\n const undefinedEntryKeys = new Set(allEntries.filter(([_, val]) => val === undefined).map(([key]) => key));\n // Find missing properties that have validation errors (not in object at all)\n const missingKeys = getMissingProperties(path, value, errorsByPath);\n // Combine: defined entries + undefined entries with errors + missing properties\n const undefinedKeysWithErrors = Array.from(undefinedEntryKeys).filter((key) => {\n const propPath = NamingConvention_1.NamingConvention.variable(key)\n ? `${path}.${key}`\n : `${path}[${JSON.stringify(key)}]`;\n return hasErrorsAtOrUnder(propPath, errorsByPath);\n });\n const allKeys = [\n ...definedEntries.map(([key]) => key),\n ...undefinedKeysWithErrors,\n ...missingKeys,\n ];\n if (allKeys.length === 0) {\n return `${indent}{}${errorComment}`;\n }\n const lines = [];\n lines.push(`${indent}{${errorComment}`);\n allKeys.forEach((key, index, array) => {\n const propPath = NamingConvention_1.NamingConvention.variable(key)\n ? `${path}.${key}`\n : `${path}[${JSON.stringify(key)}]`;\n const propIndent = \" \".repeat(tab + 1);\n // Get the value (undefined for missing properties or undefined entries)\n const val = missingKeys.includes(key) || undefinedKeysWithErrors.includes(key)\n ? undefined\n : // biome-ignore lint: intended\n value[key];\n // Primitive property value (including undefined for missing properties)\n if (val === undefined ||\n val === null ||\n typeof val === \"boolean\" ||\n typeof val === \"number\" ||\n typeof val === \"string\") {\n const propErrorComment = getErrorComment(propPath, errorsByPath, usedErrors);\n const keyStr = JSON.stringify(key);\n const valueStr = val === undefined\n ? `${propIndent}${keyStr}: undefined`\n : `${propIndent}${keyStr}: ${JSON.stringify(val)}`;\n const withComma = index < array.length - 1 ? `${valueStr},` : valueStr;\n const line = withComma + propErrorComment;\n lines.push(line);\n }\n // Complex property value (object or array)\n else {\n const keyLine = `${propIndent}${JSON.stringify(key)}: `;\n let valStr = stringify({\n value: val,\n errorsByPath,\n path: propPath,\n tab: tab + 1,\n inArray: false,\n inToJson: false,\n usedErrors,\n });\n const valStrWithoutIndent = valStr.trimStart();\n // Add comma before the error comment if not the last property\n if (index < array.length - 1) {\n valStr = insertCommaBeforeComment(valStrWithoutIndent);\n }\n else {\n valStr = valStrWithoutIndent;\n }\n const combined = keyLine + valStr;\n lines.push(combined);\n }\n });\n lines.push(`${indent}}`);\n return lines.join(\"\\n\");\n }\n // Primitive types (null, boolean, number, string, undefined, etc.)\n const valStr = value === undefined\n ? \"undefined\"\n : ((_a = JSON.stringify(value)) !== null && _a !== void 0 ? _a : String(value));\n return `${indent}${valStr}${errorComment}`;\n}\n/** Insert comma before inline error comment on the last line */\nfunction insertCommaBeforeComment(str) {\n const lines = str.split(\"\\n\");\n const lastLine = lines[lines.length - 1];\n // Use specific error marker to avoid false positives with values containing \" //\"\n const commentIndex = lastLine.lastIndexOf(\" // ❌\");\n if (commentIndex !== -1) {\n lines[lines.length - 1] = `${lastLine.slice(0, commentIndex)},${lastLine.slice(commentIndex)}`;\n }\n else {\n lines[lines.length - 1] += \",\";\n }\n return lines.join(\"\\n\");\n}\n/** Get error comment for a given path */\nfunction getErrorComment(path, errorsByPath, usedErrors) {\n const pathErrors = errorsByPath.get(path);\n if (pathErrors === undefined || pathErrors.length === 0) {\n return \"\";\n }\n // Mark these errors as used\n pathErrors.forEach((e) => usedErrors.add(e));\n return ` // ❌ ${JSON.stringify(pathErrors.map((e) => ({\n path: e.path,\n expected: e.expected,\n description: e.description,\n })))}`;\n}\n/**\n * Check if there are missing array element errors (path ending with []) Returns\n * an array of error objects, one per missing element\n */\nfunction getMissingArrayElementErrors(path, errorsByPath, usedErrors) {\n var _a;\n const wildcardPath = `${path}[]`;\n const missingErrors = (_a = errorsByPath.get(wildcardPath)) !== null && _a !== void 0 ? _a : [];\n // Mark these errors as used\n missingErrors.forEach((e) => usedErrors.add(e));\n return missingErrors;\n}\n/** Check if any errors exist at or under the given path prefix */\nfunction hasErrorsAtOrUnder(pathPrefix, errorsByPath) {\n for (const errorPath of errorsByPath.keys()) {\n if (errorPath === pathPrefix ||\n errorPath.startsWith(pathPrefix + \".\") ||\n errorPath.startsWith(pathPrefix + \"[\")) {\n return true;\n }\n }\n return false;\n}\n/**\n * Find missing properties that have validation errors but don't exist in the\n * data Returns array of property keys that should be displayed as undefined\n */\nfunction getMissingProperties(path, value, errorsByPath) {\n const missingKeys = new Set();\n for (const errorPath of errorsByPath.keys()) {\n // Check if error.path is a direct child of current path\n const childKey = extractDirectChildKey(path, errorPath);\n if (childKey !== null) {\n // Check if this property actually exists in the value\n if (!(childKey in value)) {\n missingKeys.add(childKey);\n }\n }\n }\n return Array.from(missingKeys);\n}\n/**\n * Extract direct child property key if errorPath is a direct child of\n * parentPath Returns null if not a direct child\n *\n * Examples:\n *\n * - ExtractDirectChildKey(\"$input\", \"$input.email\") => \"email\"\n * - ExtractDirectChildKey(\"$input\", \"$input.user.email\") => null (grandchild)\n * - ExtractDirectChildKey(\"$input.user\", \"$input.user.email\") => \"email\"\n * - ExtractDirectChildKey(\"$input\", \"$input[0]\") => null (array index, not object\n * property)\n * - ExtractDirectChildKey(\"$input\", \"$input[\"foo-bar\"]\") => \"foo-bar\"\n * - ExtractDirectChildKey(\"$input\", \"$input[\"foo\"][\"bar\"]\") => null (grandchild)\n */\nfunction extractDirectChildKey(parentPath, errorPath) {\n if (!errorPath.startsWith(parentPath)) {\n return null;\n }\n const suffix = errorPath.slice(parentPath.length);\n // Match \".propertyName\" pattern (direct child property with dot notation)\n // Should not contain additional dots or brackets after the property name\n const dotMatch = suffix.match(/^\\.([^.[\\]]+)$/);\n if (dotMatch !== null) {\n return dotMatch[1];\n }\n // Match '[\"key\"]' pattern (direct child property with bracket notation)\n // The key is a JSON-encoded string\n const bracketMatch = suffix.match(/^\\[(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\")\\]$/);\n if (bracketMatch !== null) {\n try {\n const parsed = JSON.parse(bracketMatch[1]);\n // Ensure it's a string key, not a number (array index)\n if (typeof parsed === \"string\") {\n return parsed;\n }\n }\n catch (_a) {\n // Invalid JSON, ignore\n }\n }\n return null;\n}\n//# sourceMappingURL=stringifyValidationFailure.js.map"],"names":["stringifyValidationFailure_1","stringifyValidationFailure","require$$0","require$$1"],"mappings":";;;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAACA,0BAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAAA,0BAAA,CAAA,0BAAkC,GAAGC,4BAA0B;CAC/D,MAAM,kBAAkB,GAAGC,uBAAA,EAA8B;CACzD,MAAM,QAAQ,GAAGC,aAAA,EAAoB;CACrC,SAASF,4BAA0B,CAAC,OAAO,EAAE;AAC7C,KAAI,MAAM,UAAU,GAAG,IAAI,GAAG,EAAE;AAChC;AACA,KAAI,MAAM,YAAY,GAAG,IAAI,GAAG,EAAE;AAClC,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tC,iBAAgB,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC;AACzC,aAAA;AACA,SAAA;AACA,KAAA;AACA,KAAI,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;AAClC,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,SAAS,qBAAqB,CAAC,UAAU,EAAE,SAAS,EAAE;KAClD,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;AAC3C,SAAQ,OAAO,IAAI;AACnB,KAAA;KACI,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC;AACrD;AACA;KACI,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC;AACnD,KAAI,IAAI,QAAQ,KAAK,IAAI,EAAE;AAC3B,SAAQ,OAAO,QAAQ,CAAC,CAAC,CAAC;AAC1B,KAAA;AACA;AACA;KACI,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,kCAAkC,CAAC;AACzE,KAAI,IAAI,YAAY,KAAK,IAAI,EAAE;AAC/B,SAAQ,IAAI;aACA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AACtD;AACA,aAAY,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;AAC5C,iBAAgB,OAAO,MAAM;AAC7B,aAAA;AACA,SAAA;SACQ,OAAO,EAAE,EAAE;AACnB;AACA,SAAA;AACA,KAAA;AACA,KAAI,OAAO,IAAI;AACf,CAAA;AACA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"stringifyValidationFailure2.mjs","sources":["stringifyValidationFailure.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.stringifyValidationFailure = stringifyValidationFailure;\nconst NamingConvention_1 = require(\"../NamingConvention\");\nconst dedent_1 = require(\"../dedent\");\nfunction stringifyValidationFailure(failure) {\n const usedErrors = new Set();\n // Pre-index errors by path for O(1) lookup\n const errorsByPath = new Map();\n for (const e of failure.errors) {\n const arr = errorsByPath.get(e.path);\n if (arr !== undefined)\n arr.push(e);\n else\n errorsByPath.set(e.path, [e]);\n }\n const jsonOutput = stringify({\n value: failure.data,\n errorsByPath,\n path: \"$input\",\n tab: 0,\n inArray: false,\n inToJson: false,\n usedErrors,\n });\n // Find errors that couldn't be embedded\n const unmappableErrors = failure.errors.filter((e) => !usedErrors.has(e));\n // If there are unmappable errors, append them as a separate block\n if (unmappableErrors.length > 0)\n return (0, dedent_1.dedent) `\n \\`\\`\\`json\n ${jsonOutput}\n \\`\\`\\`\n\n **Unmappable validation errors:**\n \\`\\`\\`json\n ${JSON.stringify(unmappableErrors, null, 2)}\n \\`\\`\\`\n `;\n return (0, dedent_1.dedent) `\n \\`\\`\\`json\n ${jsonOutput}\n \\`\\`\\`\n `;\n}\nfunction stringify(props) {\n var _a;\n const { value, errorsByPath, path, tab, inArray, inToJson, usedErrors } = props;\n const indent = \" \".repeat(tab);\n const errorComment = getErrorComment(path, errorsByPath, usedErrors);\n // Handle undefined in arrays\n if (inArray && value === undefined) {\n return `${indent}undefined${errorComment}`;\n }\n // Array\n if (Array.isArray(value)) {\n // Check for missing array element errors (path[])\n const missingElementErrors = getMissingArrayElementErrors(path, errorsByPath, usedErrors);\n const hasMissingElements = missingElementErrors.length > 0;\n if (value.length === 0) {\n // Empty array but has missing element errors - show placeholders\n if (hasMissingElements) {\n const innerIndent = \" \".repeat(tab + 1);\n const lines = [];\n lines.push(`${indent}[${errorComment}`);\n missingElementErrors.forEach((e, idx) => {\n const errComment = ` // ❌ ${JSON.stringify([{ path: e.path, expected: e.expected, description: e.description }])}`;\n const comma = idx < missingElementErrors.length - 1 ? \",\" : \"\";\n lines.push(`${innerIndent}undefined${comma}${errComment}`);\n });\n lines.push(`${indent}]`);\n return lines.join(\"\\n\");\n }\n return `${indent}[]${errorComment}`;\n }\n const lines = [];\n lines.push(`${indent}[${errorComment}`);\n value.forEach((item, index) => {\n const itemPath = `${path}[${index}]`;\n const isLastElement = index === value.length - 1;\n // If there are missing element errors, this is not truly the last line\n const needsComma = !isLastElement || hasMissingElements;\n let itemStr = stringify({\n value: item,\n errorsByPath,\n path: itemPath,\n tab: tab + 1,\n inArray: true,\n inToJson: false,\n usedErrors,\n });\n // Add comma before the error comment if not the last element\n if (needsComma) {\n itemStr = insertCommaBeforeComment(itemStr);\n }\n lines.push(itemStr);\n });\n // Add missing element placeholders at the end for each [] error\n if (hasMissingElements) {\n const innerIndent = \" \".repeat(tab + 1);\n missingElementErrors.forEach((e, idx) => {\n const errComment = ` // ❌ ${JSON.stringify([{ path: e.path, expected: e.expected, description: e.description }])}`;\n const comma = idx < missingElementErrors.length - 1 ? \",\" : \"\";\n lines.push(`${innerIndent}undefined${comma}${errComment}`);\n });\n }\n lines.push(`${indent}]`);\n return lines.join(\"\\n\");\n }\n // Object\n if (typeof value === \"object\" && value !== null) {\n // Check for toJSON method\n // biome-ignore lint: intended\n if (!inToJson && typeof value.toJSON === \"function\") {\n // biome-ignore lint: intended\n const jsonValue = value.toJSON();\n return stringify({\n value: jsonValue,\n errorsByPath,\n path,\n tab,\n inArray,\n inToJson: true,\n usedErrors,\n });\n }\n // Get all entries from the object (including undefined values that have errors)\n const allEntries = Object.entries(value);\n // Split into defined and undefined entries\n const definedEntries = allEntries.filter(([_, val]) => val !== undefined);\n const undefinedEntryKeys = new Set(allEntries.filter(([_, val]) => val === undefined).map(([key]) => key));\n // Find missing properties that have validation errors (not in object at all)\n const missingKeys = getMissingProperties(path, value, errorsByPath);\n // Combine: defined entries + undefined entries with errors + missing properties\n const undefinedKeysWithErrors = Array.from(undefinedEntryKeys).filter((key) => {\n const propPath = NamingConvention_1.NamingConvention.variable(key)\n ? `${path}.${key}`\n : `${path}[${JSON.stringify(key)}]`;\n return hasErrorsAtOrUnder(propPath, errorsByPath);\n });\n const allKeys = [\n ...definedEntries.map(([key]) => key),\n ...undefinedKeysWithErrors,\n ...missingKeys,\n ];\n if (allKeys.length === 0) {\n return `${indent}{}${errorComment}`;\n }\n const lines = [];\n lines.push(`${indent}{${errorComment}`);\n allKeys.forEach((key, index, array) => {\n const propPath = NamingConvention_1.NamingConvention.variable(key)\n ? `${path}.${key}`\n : `${path}[${JSON.stringify(key)}]`;\n const propIndent = \" \".repeat(tab + 1);\n // Get the value (undefined for missing properties or undefined entries)\n const val = missingKeys.includes(key) || undefinedKeysWithErrors.includes(key)\n ? undefined\n : // biome-ignore lint: intended\n value[key];\n // Primitive property value (including undefined for missing properties)\n if (val === undefined ||\n val === null ||\n typeof val === \"boolean\" ||\n typeof val === \"number\" ||\n typeof val === \"string\") {\n const propErrorComment = getErrorComment(propPath, errorsByPath, usedErrors);\n const keyStr = JSON.stringify(key);\n const valueStr = val === undefined\n ? `${propIndent}${keyStr}: undefined`\n : `${propIndent}${keyStr}: ${JSON.stringify(val)}`;\n const withComma = index < array.length - 1 ? `${valueStr},` : valueStr;\n const line = withComma + propErrorComment;\n lines.push(line);\n }\n // Complex property value (object or array)\n else {\n const keyLine = `${propIndent}${JSON.stringify(key)}: `;\n let valStr = stringify({\n value: val,\n errorsByPath,\n path: propPath,\n tab: tab + 1,\n inArray: false,\n inToJson: false,\n usedErrors,\n });\n const valStrWithoutIndent = valStr.trimStart();\n // Add comma before the error comment if not the last property\n if (index < array.length - 1) {\n valStr = insertCommaBeforeComment(valStrWithoutIndent);\n }\n else {\n valStr = valStrWithoutIndent;\n }\n const combined = keyLine + valStr;\n lines.push(combined);\n }\n });\n lines.push(`${indent}}`);\n return lines.join(\"\\n\");\n }\n // Primitive types (null, boolean, number, string, undefined, etc.)\n const valStr = value === undefined\n ? \"undefined\"\n : ((_a = JSON.stringify(value)) !== null && _a !== void 0 ? _a : String(value));\n return `${indent}${valStr}${errorComment}`;\n}\n/** Insert comma before inline error comment on the last line */\nfunction insertCommaBeforeComment(str) {\n const lines = str.split(\"\\n\");\n const lastLine = lines[lines.length - 1];\n // Use specific error marker to avoid false positives with values containing \" //\"\n const commentIndex = lastLine.lastIndexOf(\" // ❌\");\n if (commentIndex !== -1) {\n lines[lines.length - 1] = `${lastLine.slice(0, commentIndex)},${lastLine.slice(commentIndex)}`;\n }\n else {\n lines[lines.length - 1] += \",\";\n }\n return lines.join(\"\\n\");\n}\n/** Get error comment for a given path */\nfunction getErrorComment(path, errorsByPath, usedErrors) {\n const pathErrors = errorsByPath.get(path);\n if (pathErrors === undefined || pathErrors.length === 0) {\n return \"\";\n }\n // Mark these errors as used\n pathErrors.forEach((e) => usedErrors.add(e));\n return ` // ❌ ${JSON.stringify(pathErrors.map((e) => ({\n path: e.path,\n expected: e.expected,\n description: e.description,\n })))}`;\n}\n/**\n * Check if there are missing array element errors (path ending with []) Returns\n * an array of error objects, one per missing element\n */\nfunction getMissingArrayElementErrors(path, errorsByPath, usedErrors) {\n var _a;\n const wildcardPath = `${path}[]`;\n const missingErrors = (_a = errorsByPath.get(wildcardPath)) !== null && _a !== void 0 ? _a : [];\n // Mark these errors as used\n missingErrors.forEach((e) => usedErrors.add(e));\n return missingErrors;\n}\n/** Check if any errors exist at or under the given path prefix */\nfunction hasErrorsAtOrUnder(pathPrefix, errorsByPath) {\n for (const errorPath of errorsByPath.keys()) {\n if (errorPath === pathPrefix ||\n errorPath.startsWith(pathPrefix + \".\") ||\n errorPath.startsWith(pathPrefix + \"[\")) {\n return true;\n }\n }\n return false;\n}\n/**\n * Find missing properties that have validation errors but don't exist in the\n * data Returns array of property keys that should be displayed as undefined\n */\nfunction getMissingProperties(path, value, errorsByPath) {\n const missingKeys = new Set();\n for (const errorPath of errorsByPath.keys()) {\n // Check if error.path is a direct child of current path\n const childKey = extractDirectChildKey(path, errorPath);\n if (childKey !== null) {\n // Check if this property actually exists in the value\n if (!(childKey in value)) {\n missingKeys.add(childKey);\n }\n }\n }\n return Array.from(missingKeys);\n}\n/**\n * Extract direct child property key if errorPath is a direct child of\n * parentPath Returns null if not a direct child\n *\n * Examples:\n *\n * - ExtractDirectChildKey(\"$input\", \"$input.email\") => \"email\"\n * - ExtractDirectChildKey(\"$input\", \"$input.user.email\") => null (grandchild)\n * - ExtractDirectChildKey(\"$input.user\", \"$input.user.email\") => \"email\"\n * - ExtractDirectChildKey(\"$input\", \"$input[0]\") => null (array index, not object\n * property)\n * - ExtractDirectChildKey(\"$input\", \"$input[\"foo-bar\"]\") => \"foo-bar\"\n * - ExtractDirectChildKey(\"$input\", \"$input[\"foo\"][\"bar\"]\") => null (grandchild)\n */\nfunction extractDirectChildKey(parentPath, errorPath) {\n if (!errorPath.startsWith(parentPath)) {\n return null;\n }\n const suffix = errorPath.slice(parentPath.length);\n // Match \".propertyName\" pattern (direct child property with dot notation)\n // Should not contain additional dots or brackets after the property name\n const dotMatch = suffix.match(/^\\.([^.[\\]]+)$/);\n if (dotMatch !== null) {\n return dotMatch[1];\n }\n // Match '[\"key\"]' pattern (direct child property with bracket notation)\n // The key is a JSON-encoded string\n const bracketMatch = suffix.match(/^\\[(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\")\\]$/);\n if (bracketMatch !== null) {\n try {\n const parsed = JSON.parse(bracketMatch[1]);\n // Ensure it's a string key, not a number (array index)\n if (typeof parsed === \"string\") {\n return parsed;\n }\n }\n catch (_a) {\n // Invalid JSON, ignore\n }\n }\n return null;\n}\n//# sourceMappingURL=stringifyValidationFailure.js.map"],"names":["stringifyValidationFailure_1","require$$0","require$$1"],"mappings":";;;;;;AACA,MAAM,CAAC,cAAc,CAACA,4BAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,IAAA,4BAAA,GAAAA,4BAAA,CAAA,0BAAkC,GAAG;AACrC,MAAM,kBAAkB,GAAGC,gBAA8B;AACzD,MAAM,QAAQ,GAAGC,MAAoB;AACrC,SAAS,0BAA0B,CAAC,OAAO,EAAE;AAC7C,IAAI,MAAM,UAAU,GAAG,IAAI,GA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kC,CAAC;AACzE,IAAI,IAAI,YAAY,KAAK,IAAI,EAAE;AAC/B,QAAQ,IAAI;AACZ,YAAY,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AACtD;AACA,YAAY,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;AAC5C,gBAAgB,OAAO,MAAM;AAC7B,YAAA;AACA,QAAA;AACA,QAAQ,OAAO,EAAE,EAAE;AACnB;AACA,QAAA;AACA,IAAA;AACA,IAAI,OAAO,IAAI;AACf;;;;"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var LlmTypeCheckerExports = requireLlmTypeChecker();
|
|
5
|
-
var LlmTypeChecker = /*@__PURE__*/getDefaultExportFromCjs(LlmTypeCheckerExports);
|
|
6
|
-
|
|
7
|
-
export { LlmTypeChecker as default };
|
|
1
|
+
export { LlmTypeChecker } from './LlmTypeChecker2.mjs';
|
|
2
|
+
export { __exports as default } from '../_virtual/LlmTypeChecker.mjs';
|
|
8
3
|
//# sourceMappingURL=LlmTypeChecker.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LlmTypeChecker.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"LlmTypeChecker.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|