@typia/utils 13.0.0-dev.20260427-3 → 13.0.0-dev.20260430
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 -15
- 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 +440 -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 -8
- 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,308 +1,303 @@
|
|
|
1
|
-
import { __exports as OpenApiV3Upgrader } from '../../_virtual/OpenApiV3Upgrader.mjs';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { __exports as OpenApiV3Upgrader$1 } from '../../_virtual/OpenApiV3Upgrader.mjs';
|
|
2
|
+
import '../../validators/OpenApiTypeChecker2.mjs';
|
|
3
|
+
import '../../validators/OpenApiV3TypeChecker2.mjs';
|
|
4
|
+
import './OpenApiExclusiveEmender2.mjs';
|
|
5
|
+
import { __exports as OpenApiV3TypeChecker } from '../../_virtual/OpenApiV3TypeChecker.mjs';
|
|
6
|
+
import { __exports as OpenApiTypeChecker } from '../../_virtual/OpenApiTypeChecker.mjs';
|
|
7
|
+
import { __exports as OpenApiExclusiveEmender } from '../../_virtual/OpenApiExclusiveEmender.mjs';
|
|
5
8
|
|
|
6
|
-
|
|
9
|
+
Object.defineProperty(OpenApiV3Upgrader$1, "__esModule", { value: true });
|
|
10
|
+
var OpenApiV3Upgrader_2 = OpenApiV3Upgrader$1.OpenApiV3Upgrader = void 0;
|
|
11
|
+
const OpenApiTypeChecker_1 = OpenApiTypeChecker;
|
|
12
|
+
const OpenApiV3TypeChecker_1 = OpenApiV3TypeChecker;
|
|
13
|
+
const OpenApiExclusiveEmender_1 = OpenApiExclusiveEmender;
|
|
14
|
+
var OpenApiV3Upgrader;
|
|
15
|
+
(function (OpenApiV3Upgrader) {
|
|
16
|
+
OpenApiV3Upgrader.convert = (input) => { var _a; return (Object.assign(Object.assign({}, input), { components: OpenApiV3Upgrader.convertComponents((_a = input.components) !== null && _a !== void 0 ? _a : {}), paths: input.paths
|
|
17
|
+
? Object.fromEntries(Object.entries(input.paths)
|
|
18
|
+
.filter(([_, v]) => v !== undefined)
|
|
19
|
+
.map(([key, value]) => [key, convertPathItem(input)(value)]))
|
|
20
|
+
: undefined, openapi: "3.2.0", "x-typia-emended-v12": true })); };
|
|
21
|
+
/* -----------------------------------------------------------
|
|
22
|
+
OPERATORS
|
|
23
|
+
----------------------------------------------------------- */
|
|
24
|
+
const convertPathItem = (doc) => (pathItem) => {
|
|
25
|
+
// Convert x-additionalOperations to additionalOperations
|
|
26
|
+
// Promote "query" to standard method (it's a v3.2 standard method)
|
|
27
|
+
const xAdditional = pathItem["x-additionalOperations"];
|
|
28
|
+
const queryOp = xAdditional === null || xAdditional === void 0 ? void 0 : xAdditional["query"];
|
|
29
|
+
const additionalOperations = xAdditional
|
|
30
|
+
? Object.fromEntries(Object.entries(xAdditional)
|
|
31
|
+
.filter(([key, v]) => key !== "query" && v !== undefined)
|
|
32
|
+
.map(([key, value]) => [
|
|
33
|
+
key,
|
|
34
|
+
convertOperation(doc)(pathItem)(value),
|
|
35
|
+
]))
|
|
36
|
+
: undefined;
|
|
37
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, pathItem), (pathItem.get
|
|
38
|
+
? { get: convertOperation(doc)(pathItem)(pathItem.get) }
|
|
39
|
+
: undefined)), (pathItem.put
|
|
40
|
+
? { put: convertOperation(doc)(pathItem)(pathItem.put) }
|
|
41
|
+
: undefined)), (pathItem.post
|
|
42
|
+
? { post: convertOperation(doc)(pathItem)(pathItem.post) }
|
|
43
|
+
: undefined)), (pathItem.delete
|
|
44
|
+
? { delete: convertOperation(doc)(pathItem)(pathItem.delete) }
|
|
45
|
+
: undefined)), (pathItem.options
|
|
46
|
+
? { options: convertOperation(doc)(pathItem)(pathItem.options) }
|
|
47
|
+
: undefined)), (pathItem.head
|
|
48
|
+
? { head: convertOperation(doc)(pathItem)(pathItem.head) }
|
|
49
|
+
: undefined)), (pathItem.patch
|
|
50
|
+
? { patch: convertOperation(doc)(pathItem)(pathItem.patch) }
|
|
51
|
+
: undefined)), (pathItem.trace
|
|
52
|
+
? { trace: convertOperation(doc)(pathItem)(pathItem.trace) }
|
|
53
|
+
: undefined)), (queryOp
|
|
54
|
+
? { query: convertOperation(doc)(pathItem)(queryOp) }
|
|
55
|
+
: undefined)), (additionalOperations && Object.keys(additionalOperations).length > 0
|
|
56
|
+
? { additionalOperations }
|
|
57
|
+
: undefined)), { "x-additionalOperations": undefined });
|
|
58
|
+
};
|
|
59
|
+
const convertOperation = (doc) => (pathItem) => (input) => { var _a, _b; return (Object.assign(Object.assign({}, input), { parameters: pathItem.parameters !== undefined || input.parameters !== undefined
|
|
60
|
+
? [...((_a = pathItem.parameters) !== null && _a !== void 0 ? _a : []), ...((_b = input.parameters) !== null && _b !== void 0 ? _b : [])]
|
|
61
|
+
.map((p) => {
|
|
62
|
+
var _a, _b, _c, _d;
|
|
63
|
+
var _e, _f, _g, _h;
|
|
64
|
+
if (!OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(p))
|
|
65
|
+
return convertParameter((_e = doc.components) !== null && _e !== void 0 ? _e : {})(p);
|
|
66
|
+
const found = p.$ref.startsWith("#/components/headers/")
|
|
67
|
+
? (_b = (_a = doc.components) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b[(_f = p.$ref.split("/").pop()) !== null && _f !== void 0 ? _f : ""]
|
|
68
|
+
: (_d = (_c = doc.components) === null || _c === void 0 ? void 0 : _c.parameters) === null || _d === void 0 ? void 0 : _d[(_g = p.$ref.split("/").pop()) !== null && _g !== void 0 ? _g : ""];
|
|
69
|
+
return found !== undefined
|
|
70
|
+
? convertParameter((_h = doc.components) !== null && _h !== void 0 ? _h : {})(Object.assign(Object.assign({}, found), { in: "header" }))
|
|
71
|
+
: undefined;
|
|
72
|
+
})
|
|
73
|
+
.filter((_, v) => v !== undefined)
|
|
74
|
+
: undefined, requestBody: input.requestBody
|
|
75
|
+
? convertRequestBody(doc)(input.requestBody)
|
|
76
|
+
: undefined, responses: input.responses
|
|
77
|
+
? Object.fromEntries(Object.entries(input.responses)
|
|
78
|
+
.filter(([_, v]) => v !== undefined)
|
|
79
|
+
.map(([key, value]) => [key, convertResponse(doc)(value)])
|
|
80
|
+
.filter(([_, v]) => v !== undefined))
|
|
81
|
+
: undefined })); };
|
|
82
|
+
const convertParameter = (components) => (input) => (Object.assign(Object.assign({}, input), { schema: OpenApiV3Upgrader.convertSchema(components)(input.schema), examples: input.examples
|
|
83
|
+
? Object.fromEntries(Object.entries(input.examples)
|
|
84
|
+
.map(([key, value]) => { var _a; var _b; return [
|
|
85
|
+
key,
|
|
86
|
+
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(value)
|
|
87
|
+
? (_a = components.examples) === null || _a === void 0 ? void 0 : _a[(_b = value.$ref.split("/").pop()) !== null && _b !== void 0 ? _b : ""]
|
|
88
|
+
: value,
|
|
89
|
+
]; })
|
|
90
|
+
.filter(([_, v]) => v !== undefined))
|
|
91
|
+
: undefined }));
|
|
92
|
+
const convertRequestBody = (doc) => (input) => {
|
|
93
|
+
var _a, _b;
|
|
94
|
+
var _c, _d;
|
|
95
|
+
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(input)) {
|
|
96
|
+
const found = (_b = (_a = doc.components) === null || _a === void 0 ? void 0 : _a.requestBodies) === null || _b === void 0 ? void 0 : _b[(_c = input.$ref.split("/").pop()) !== null && _c !== void 0 ? _c : ""];
|
|
97
|
+
if (found === undefined)
|
|
98
|
+
return undefined;
|
|
99
|
+
input = found;
|
|
100
|
+
}
|
|
101
|
+
return Object.assign(Object.assign({}, input), { content: input.content
|
|
102
|
+
? convertContent((_d = doc.components) !== null && _d !== void 0 ? _d : {})(input.content)
|
|
103
|
+
: undefined });
|
|
104
|
+
};
|
|
105
|
+
const convertResponse = (doc) => (input) => {
|
|
106
|
+
var _a, _b;
|
|
107
|
+
var _c, _d;
|
|
108
|
+
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(input)) {
|
|
109
|
+
const found = (_b = (_a = doc.components) === null || _a === void 0 ? void 0 : _a.responses) === null || _b === void 0 ? void 0 : _b[(_c = input.$ref.split("/").pop()) !== null && _c !== void 0 ? _c : ""];
|
|
110
|
+
if (found === undefined)
|
|
111
|
+
return undefined;
|
|
112
|
+
input = found;
|
|
113
|
+
}
|
|
114
|
+
return Object.assign(Object.assign({}, input), { content: input.content
|
|
115
|
+
? convertContent((_d = doc.components) !== null && _d !== void 0 ? _d : {})(input.content)
|
|
116
|
+
: undefined, headers: input.headers
|
|
117
|
+
? Object.fromEntries(Object.entries(input.headers)
|
|
118
|
+
.filter(([_, v]) => v !== undefined)
|
|
119
|
+
.map(([key, value]) => [
|
|
120
|
+
key,
|
|
121
|
+
(() => {
|
|
122
|
+
var _a, _b;
|
|
123
|
+
var _c, _d, _e;
|
|
124
|
+
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(value) === false)
|
|
125
|
+
return convertParameter((_c = doc.components) !== null && _c !== void 0 ? _c : {})(Object.assign(Object.assign({}, value), { in: "header" }));
|
|
126
|
+
const found = value.$ref.startsWith("#/components/headers/")
|
|
127
|
+
? (_b = (_a = doc.components) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b[(_d = value.$ref.split("/").pop()) !== null && _d !== void 0 ? _d : ""]
|
|
128
|
+
: undefined;
|
|
129
|
+
return found !== undefined
|
|
130
|
+
? convertParameter((_e = doc.components) !== null && _e !== void 0 ? _e : {})(Object.assign(Object.assign({}, found), { in: "header" }))
|
|
131
|
+
: undefined;
|
|
132
|
+
})(),
|
|
133
|
+
])
|
|
134
|
+
.filter(([_, v]) => v !== undefined))
|
|
135
|
+
: undefined });
|
|
136
|
+
};
|
|
137
|
+
const convertContent = (components) => (record) => Object.fromEntries(Object.entries(record)
|
|
138
|
+
.filter(([_, v]) => v !== undefined)
|
|
139
|
+
.map(([key, value]) => [
|
|
140
|
+
key,
|
|
141
|
+
Object.assign(Object.assign({}, value), { schema: value.schema
|
|
142
|
+
? OpenApiV3Upgrader.convertSchema(components)(value.schema)
|
|
143
|
+
: undefined, examples: value.examples
|
|
144
|
+
? Object.fromEntries(Object.entries(value.examples)
|
|
145
|
+
.map(([key, value]) => { var _a; var _b; return [
|
|
146
|
+
key,
|
|
147
|
+
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(value)
|
|
148
|
+
? (_a = components.examples) === null || _a === void 0 ? void 0 : _a[(_b = value.$ref.split("/").pop()) !== null && _b !== void 0 ? _b : ""]
|
|
149
|
+
: value,
|
|
150
|
+
]; })
|
|
151
|
+
.filter(([_, v]) => v !== undefined))
|
|
152
|
+
: undefined }),
|
|
153
|
+
]));
|
|
154
|
+
/* -----------------------------------------------------------
|
|
155
|
+
DEFINITIONS
|
|
156
|
+
----------------------------------------------------------- */
|
|
157
|
+
OpenApiV3Upgrader.convertComponents = (input) => { var _a; return ({
|
|
158
|
+
schemas: Object.fromEntries(Object.entries((_a = input.schemas) !== null && _a !== void 0 ? _a : {})
|
|
159
|
+
.filter(([_, v]) => v !== undefined)
|
|
160
|
+
.map(([key, value]) => [key, OpenApiV3Upgrader.convertSchema(input)(value)])),
|
|
161
|
+
securitySchemes: input.securitySchemes,
|
|
162
|
+
}); };
|
|
163
|
+
OpenApiV3Upgrader.convertSchema = (components) => (input) => {
|
|
164
|
+
const nullable = {
|
|
165
|
+
value: false,
|
|
166
|
+
default: undefined,
|
|
167
|
+
};
|
|
168
|
+
const union = [];
|
|
169
|
+
const attribute = Object.assign({ title: input.title, description: input.description, deprecated: input.deprecated, readOnly: input.readOnly, writeOnly: input.writeOnly, example: input.example, examples: Array.isArray(input.examples)
|
|
170
|
+
? Object.fromEntries(input.examples.map((v, i) => [`v${i}`, v]))
|
|
171
|
+
: input.examples }, Object.fromEntries(Object.entries(input).filter(([key, value]) => key.startsWith("x-") && value !== undefined)));
|
|
172
|
+
const visit = (schema) => {
|
|
173
|
+
var _a, _b, _c;
|
|
174
|
+
var _d, _e, _f;
|
|
175
|
+
// NULLABLE PROPERTY
|
|
176
|
+
if (schema.nullable === true) {
|
|
177
|
+
nullable.value || (nullable.value = true);
|
|
178
|
+
if (schema.default === null)
|
|
179
|
+
nullable.default = null;
|
|
180
|
+
}
|
|
181
|
+
if (Array.isArray(schema.enum) &&
|
|
182
|
+
((_a = schema.enum) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
183
|
+
((_b = schema.enum) === null || _b === void 0 ? void 0 : _b.some((e) => e === null)))
|
|
184
|
+
nullable.value || (nullable.value = true);
|
|
185
|
+
// UNION TYPE CASE
|
|
186
|
+
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isAnyOf(schema))
|
|
187
|
+
schema.anyOf.forEach(visit);
|
|
188
|
+
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isOneOf(schema))
|
|
189
|
+
schema.oneOf.forEach(visit);
|
|
190
|
+
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isAllOf(schema))
|
|
191
|
+
if (schema.allOf.length === 1)
|
|
192
|
+
visit(schema.allOf[0]);
|
|
193
|
+
else
|
|
194
|
+
union.push(convertAllOfSchema(components)(schema));
|
|
195
|
+
// ATOMIC TYPE CASE (CONSIDER ENUM VALUES)
|
|
196
|
+
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isBoolean(schema) ||
|
|
197
|
+
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isInteger(schema) ||
|
|
198
|
+
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isNumber(schema) ||
|
|
199
|
+
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isString(schema))
|
|
200
|
+
if (((_c = schema.enum) === null || _c === void 0 ? void 0 : _c.length) &&
|
|
201
|
+
schema.enum.filter((e) => e !== null).length)
|
|
202
|
+
union.push(...schema.enum
|
|
203
|
+
.filter((v) => v !== null)
|
|
204
|
+
.map((value) => ({ const: value })));
|
|
205
|
+
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isInteger(schema) ||
|
|
206
|
+
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isNumber(schema))
|
|
207
|
+
union.push(OpenApiExclusiveEmender_1.OpenApiExclusiveEmender.emend(Object.assign(Object.assign(Object.assign({}, schema), { default: ((_d = schema.default) !== null && _d !== void 0 ? _d : undefined), exclusiveMinimum: typeof schema.exclusiveMinimum === "boolean"
|
|
208
|
+
? schema.exclusiveMinimum === true
|
|
209
|
+
? schema.minimum
|
|
210
|
+
: undefined
|
|
211
|
+
: schema.exclusiveMinimum, exclusiveMaximum: typeof schema.exclusiveMaximum === "boolean"
|
|
212
|
+
? schema.exclusiveMaximum === true
|
|
213
|
+
? schema.maximum
|
|
214
|
+
: undefined
|
|
215
|
+
: schema.exclusiveMaximum, minimum: schema.exclusiveMinimum === true ? undefined : schema.minimum, maximum: schema.exclusiveMaximum === true ? undefined : schema.maximum }), { enum: undefined })));
|
|
216
|
+
else
|
|
217
|
+
union.push(Object.assign(Object.assign(Object.assign({}, schema), { default: ((_e = schema.default) !== null && _e !== void 0 ? _e : undefined) }), { enum: undefined }));
|
|
218
|
+
// INSTANCE TYPE CASE
|
|
219
|
+
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isArray(schema))
|
|
220
|
+
union.push(Object.assign(Object.assign({}, schema), { items: OpenApiV3Upgrader.convertSchema(components)(schema.items) }));
|
|
221
|
+
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isObject(schema))
|
|
222
|
+
union.push(Object.assign(Object.assign({}, schema), {
|
|
223
|
+
properties: schema.properties
|
|
224
|
+
? Object.fromEntries(Object.entries(schema.properties)
|
|
225
|
+
.filter(([_, v]) => v !== undefined)
|
|
226
|
+
.map(([key, value]) => [
|
|
227
|
+
key,
|
|
228
|
+
OpenApiV3Upgrader.convertSchema(components)(value),
|
|
229
|
+
]))
|
|
230
|
+
: {},
|
|
231
|
+
additionalProperties: schema.additionalProperties
|
|
232
|
+
? typeof schema.additionalProperties === "object" &&
|
|
233
|
+
schema.additionalProperties !== null
|
|
234
|
+
? OpenApiV3Upgrader.convertSchema(components)(schema.additionalProperties)
|
|
235
|
+
: schema.additionalProperties
|
|
236
|
+
: undefined,
|
|
237
|
+
required: (_f = schema.required) !== null && _f !== void 0 ? _f : [],
|
|
238
|
+
}));
|
|
239
|
+
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(schema))
|
|
240
|
+
union.push(schema);
|
|
241
|
+
else
|
|
242
|
+
union.push(schema);
|
|
243
|
+
};
|
|
244
|
+
visit(input);
|
|
245
|
+
if (nullable.value === true &&
|
|
246
|
+
!union.some((e) => e.type === "null"))
|
|
247
|
+
union.push({
|
|
248
|
+
type: "null",
|
|
249
|
+
default: nullable.default,
|
|
250
|
+
});
|
|
251
|
+
if (union.length === 2 &&
|
|
252
|
+
union.filter((x) => OpenApiTypeChecker_1.OpenApiTypeChecker.isNull(x)).length === 1) {
|
|
253
|
+
const type = union.filter((x) => OpenApiTypeChecker_1.OpenApiTypeChecker.isNull(x) === false)[0];
|
|
254
|
+
for (const key of [
|
|
255
|
+
"title",
|
|
256
|
+
"description",
|
|
257
|
+
"deprecated",
|
|
258
|
+
"readOnly",
|
|
259
|
+
"writeOnly",
|
|
260
|
+
"example",
|
|
261
|
+
"examples",
|
|
262
|
+
])
|
|
263
|
+
if (type[key] !== undefined)
|
|
264
|
+
delete type[key];
|
|
265
|
+
}
|
|
266
|
+
return Object.assign(Object.assign(Object.assign({}, (union.length === 0
|
|
267
|
+
? { type: undefined }
|
|
268
|
+
: union.length === 1
|
|
269
|
+
? Object.assign({}, union[0]) : { oneOf: union.map((u) => (Object.assign(Object.assign({}, u), { nullable: undefined }))) })), attribute), { nullable: undefined });
|
|
270
|
+
};
|
|
271
|
+
const convertAllOfSchema = (components) => (input) => {
|
|
272
|
+
const objects = input.allOf.map((schema) => retrieveObject(components)(schema));
|
|
273
|
+
if (objects.some((obj) => obj === null))
|
|
274
|
+
return Object.assign({ type: undefined }, {
|
|
275
|
+
allOf: undefined,
|
|
276
|
+
});
|
|
277
|
+
return Object.assign(Object.assign(Object.assign({}, input), { type: "object", properties: Object.fromEntries(objects
|
|
278
|
+
.map((o) => { var _a; return Object.entries((_a = o === null || o === void 0 ? void 0 : o.properties) !== null && _a !== void 0 ? _a : {}); })
|
|
279
|
+
.flat()
|
|
280
|
+
.map(([key, value]) => [key, OpenApiV3Upgrader.convertSchema(components)(value)])) }), {
|
|
281
|
+
allOf: undefined,
|
|
282
|
+
required: [...new Set(objects.map((o) => { var _a; return (_a = o === null || o === void 0 ? void 0 : o.required) !== null && _a !== void 0 ? _a : []; }).flat())],
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
const retrieveObject = (components) => (input, visited = new Set()) => {
|
|
286
|
+
var _a;
|
|
287
|
+
var _b, _c;
|
|
288
|
+
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isObject(input))
|
|
289
|
+
return input.properties !== undefined && !input.additionalProperties
|
|
290
|
+
? input
|
|
291
|
+
: null;
|
|
292
|
+
else if (visited.has(input))
|
|
293
|
+
return null;
|
|
294
|
+
else
|
|
295
|
+
visited.add(input);
|
|
296
|
+
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(input))
|
|
297
|
+
return retrieveObject(components)((_c = (_a = components.schemas) === null || _a === void 0 ? void 0 : _a[(_b = input.$ref.split("/").pop()) !== null && _b !== void 0 ? _b : ""]) !== null && _c !== void 0 ? _c : {}, visited);
|
|
298
|
+
return null;
|
|
299
|
+
};
|
|
300
|
+
})(OpenApiV3Upgrader || (OpenApiV3Upgrader_2 = OpenApiV3Upgrader$1.OpenApiV3Upgrader = OpenApiV3Upgrader = {}));
|
|
7
301
|
|
|
8
|
-
|
|
9
|
-
if (hasRequiredOpenApiV3Upgrader) return OpenApiV3Upgrader;
|
|
10
|
-
hasRequiredOpenApiV3Upgrader = 1;
|
|
11
|
-
Object.defineProperty(OpenApiV3Upgrader, "__esModule", { value: true });
|
|
12
|
-
OpenApiV3Upgrader.OpenApiV3Upgrader = void 0;
|
|
13
|
-
const OpenApiTypeChecker_1 = requireOpenApiTypeChecker();
|
|
14
|
-
const OpenApiV3TypeChecker_1 = requireOpenApiV3TypeChecker();
|
|
15
|
-
const OpenApiExclusiveEmender_1 = requireOpenApiExclusiveEmender();
|
|
16
|
-
var OpenApiV3Upgrader$1;
|
|
17
|
-
(function (OpenApiV3Upgrader) {
|
|
18
|
-
OpenApiV3Upgrader.convert = (input) => { var _a; return (Object.assign(Object.assign({}, input), { components: OpenApiV3Upgrader.convertComponents((_a = input.components) !== null && _a !== void 0 ? _a : {}), paths: input.paths
|
|
19
|
-
? Object.fromEntries(Object.entries(input.paths)
|
|
20
|
-
.filter(([_, v]) => v !== undefined)
|
|
21
|
-
.map(([key, value]) => [key, convertPathItem(input)(value)]))
|
|
22
|
-
: undefined, openapi: "3.2.0", "x-typia-emended-v12": true })); };
|
|
23
|
-
/* -----------------------------------------------------------
|
|
24
|
-
OPERATORS
|
|
25
|
-
----------------------------------------------------------- */
|
|
26
|
-
const convertPathItem = (doc) => (pathItem) => {
|
|
27
|
-
// Convert x-additionalOperations to additionalOperations
|
|
28
|
-
// Promote "query" to standard method (it's a v3.2 standard method)
|
|
29
|
-
const xAdditional = pathItem["x-additionalOperations"];
|
|
30
|
-
const queryOp = xAdditional === null || xAdditional === void 0 ? void 0 : xAdditional["query"];
|
|
31
|
-
const additionalOperations = xAdditional
|
|
32
|
-
? Object.fromEntries(Object.entries(xAdditional)
|
|
33
|
-
.filter(([key, v]) => key !== "query" && v !== undefined)
|
|
34
|
-
.map(([key, value]) => [
|
|
35
|
-
key,
|
|
36
|
-
convertOperation(doc)(pathItem)(value),
|
|
37
|
-
]))
|
|
38
|
-
: undefined;
|
|
39
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, pathItem), (pathItem.get
|
|
40
|
-
? { get: convertOperation(doc)(pathItem)(pathItem.get) }
|
|
41
|
-
: undefined)), (pathItem.put
|
|
42
|
-
? { put: convertOperation(doc)(pathItem)(pathItem.put) }
|
|
43
|
-
: undefined)), (pathItem.post
|
|
44
|
-
? { post: convertOperation(doc)(pathItem)(pathItem.post) }
|
|
45
|
-
: undefined)), (pathItem.delete
|
|
46
|
-
? { delete: convertOperation(doc)(pathItem)(pathItem.delete) }
|
|
47
|
-
: undefined)), (pathItem.options
|
|
48
|
-
? { options: convertOperation(doc)(pathItem)(pathItem.options) }
|
|
49
|
-
: undefined)), (pathItem.head
|
|
50
|
-
? { head: convertOperation(doc)(pathItem)(pathItem.head) }
|
|
51
|
-
: undefined)), (pathItem.patch
|
|
52
|
-
? { patch: convertOperation(doc)(pathItem)(pathItem.patch) }
|
|
53
|
-
: undefined)), (pathItem.trace
|
|
54
|
-
? { trace: convertOperation(doc)(pathItem)(pathItem.trace) }
|
|
55
|
-
: undefined)), (queryOp
|
|
56
|
-
? { query: convertOperation(doc)(pathItem)(queryOp) }
|
|
57
|
-
: undefined)), (additionalOperations && Object.keys(additionalOperations).length > 0
|
|
58
|
-
? { additionalOperations }
|
|
59
|
-
: undefined)), { "x-additionalOperations": undefined });
|
|
60
|
-
};
|
|
61
|
-
const convertOperation = (doc) => (pathItem) => (input) => { var _a, _b; return (Object.assign(Object.assign({}, input), { parameters: pathItem.parameters !== undefined || input.parameters !== undefined
|
|
62
|
-
? [...((_a = pathItem.parameters) !== null && _a !== void 0 ? _a : []), ...((_b = input.parameters) !== null && _b !== void 0 ? _b : [])]
|
|
63
|
-
.map((p) => {
|
|
64
|
-
var _a, _b, _c, _d;
|
|
65
|
-
var _e, _f, _g, _h;
|
|
66
|
-
if (!OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(p))
|
|
67
|
-
return convertParameter((_e = doc.components) !== null && _e !== void 0 ? _e : {})(p);
|
|
68
|
-
const found = p.$ref.startsWith("#/components/headers/")
|
|
69
|
-
? (_b = (_a = doc.components) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b[(_f = p.$ref.split("/").pop()) !== null && _f !== void 0 ? _f : ""]
|
|
70
|
-
: (_d = (_c = doc.components) === null || _c === void 0 ? void 0 : _c.parameters) === null || _d === void 0 ? void 0 : _d[(_g = p.$ref.split("/").pop()) !== null && _g !== void 0 ? _g : ""];
|
|
71
|
-
return found !== undefined
|
|
72
|
-
? convertParameter((_h = doc.components) !== null && _h !== void 0 ? _h : {})(Object.assign(Object.assign({}, found), { in: "header" }))
|
|
73
|
-
: undefined;
|
|
74
|
-
})
|
|
75
|
-
.filter((_, v) => v !== undefined)
|
|
76
|
-
: undefined, requestBody: input.requestBody
|
|
77
|
-
? convertRequestBody(doc)(input.requestBody)
|
|
78
|
-
: undefined, responses: input.responses
|
|
79
|
-
? Object.fromEntries(Object.entries(input.responses)
|
|
80
|
-
.filter(([_, v]) => v !== undefined)
|
|
81
|
-
.map(([key, value]) => [key, convertResponse(doc)(value)])
|
|
82
|
-
.filter(([_, v]) => v !== undefined))
|
|
83
|
-
: undefined })); };
|
|
84
|
-
const convertParameter = (components) => (input) => (Object.assign(Object.assign({}, input), { schema: OpenApiV3Upgrader.convertSchema(components)(input.schema), examples: input.examples
|
|
85
|
-
? Object.fromEntries(Object.entries(input.examples)
|
|
86
|
-
.map(([key, value]) => { var _a; var _b; return [
|
|
87
|
-
key,
|
|
88
|
-
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(value)
|
|
89
|
-
? (_a = components.examples) === null || _a === void 0 ? void 0 : _a[(_b = value.$ref.split("/").pop()) !== null && _b !== void 0 ? _b : ""]
|
|
90
|
-
: value,
|
|
91
|
-
]; })
|
|
92
|
-
.filter(([_, v]) => v !== undefined))
|
|
93
|
-
: undefined }));
|
|
94
|
-
const convertRequestBody = (doc) => (input) => {
|
|
95
|
-
var _a, _b;
|
|
96
|
-
var _c, _d;
|
|
97
|
-
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(input)) {
|
|
98
|
-
const found = (_b = (_a = doc.components) === null || _a === void 0 ? void 0 : _a.requestBodies) === null || _b === void 0 ? void 0 : _b[(_c = input.$ref.split("/").pop()) !== null && _c !== void 0 ? _c : ""];
|
|
99
|
-
if (found === undefined)
|
|
100
|
-
return undefined;
|
|
101
|
-
input = found;
|
|
102
|
-
}
|
|
103
|
-
return Object.assign(Object.assign({}, input), { content: input.content
|
|
104
|
-
? convertContent((_d = doc.components) !== null && _d !== void 0 ? _d : {})(input.content)
|
|
105
|
-
: undefined });
|
|
106
|
-
};
|
|
107
|
-
const convertResponse = (doc) => (input) => {
|
|
108
|
-
var _a, _b;
|
|
109
|
-
var _c, _d;
|
|
110
|
-
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(input)) {
|
|
111
|
-
const found = (_b = (_a = doc.components) === null || _a === void 0 ? void 0 : _a.responses) === null || _b === void 0 ? void 0 : _b[(_c = input.$ref.split("/").pop()) !== null && _c !== void 0 ? _c : ""];
|
|
112
|
-
if (found === undefined)
|
|
113
|
-
return undefined;
|
|
114
|
-
input = found;
|
|
115
|
-
}
|
|
116
|
-
return Object.assign(Object.assign({}, input), { content: input.content
|
|
117
|
-
? convertContent((_d = doc.components) !== null && _d !== void 0 ? _d : {})(input.content)
|
|
118
|
-
: undefined, headers: input.headers
|
|
119
|
-
? Object.fromEntries(Object.entries(input.headers)
|
|
120
|
-
.filter(([_, v]) => v !== undefined)
|
|
121
|
-
.map(([key, value]) => [
|
|
122
|
-
key,
|
|
123
|
-
(() => {
|
|
124
|
-
var _a, _b;
|
|
125
|
-
var _c, _d, _e;
|
|
126
|
-
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(value) === false)
|
|
127
|
-
return convertParameter((_c = doc.components) !== null && _c !== void 0 ? _c : {})(Object.assign(Object.assign({}, value), { in: "header" }));
|
|
128
|
-
const found = value.$ref.startsWith("#/components/headers/")
|
|
129
|
-
? (_b = (_a = doc.components) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b[(_d = value.$ref.split("/").pop()) !== null && _d !== void 0 ? _d : ""]
|
|
130
|
-
: undefined;
|
|
131
|
-
return found !== undefined
|
|
132
|
-
? convertParameter((_e = doc.components) !== null && _e !== void 0 ? _e : {})(Object.assign(Object.assign({}, found), { in: "header" }))
|
|
133
|
-
: undefined;
|
|
134
|
-
})(),
|
|
135
|
-
])
|
|
136
|
-
.filter(([_, v]) => v !== undefined))
|
|
137
|
-
: undefined });
|
|
138
|
-
};
|
|
139
|
-
const convertContent = (components) => (record) => Object.fromEntries(Object.entries(record)
|
|
140
|
-
.filter(([_, v]) => v !== undefined)
|
|
141
|
-
.map(([key, value]) => [
|
|
142
|
-
key,
|
|
143
|
-
Object.assign(Object.assign({}, value), { schema: value.schema
|
|
144
|
-
? OpenApiV3Upgrader.convertSchema(components)(value.schema)
|
|
145
|
-
: undefined, examples: value.examples
|
|
146
|
-
? Object.fromEntries(Object.entries(value.examples)
|
|
147
|
-
.map(([key, value]) => { var _a; var _b; return [
|
|
148
|
-
key,
|
|
149
|
-
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(value)
|
|
150
|
-
? (_a = components.examples) === null || _a === void 0 ? void 0 : _a[(_b = value.$ref.split("/").pop()) !== null && _b !== void 0 ? _b : ""]
|
|
151
|
-
: value,
|
|
152
|
-
]; })
|
|
153
|
-
.filter(([_, v]) => v !== undefined))
|
|
154
|
-
: undefined }),
|
|
155
|
-
]));
|
|
156
|
-
/* -----------------------------------------------------------
|
|
157
|
-
DEFINITIONS
|
|
158
|
-
----------------------------------------------------------- */
|
|
159
|
-
OpenApiV3Upgrader.convertComponents = (input) => { var _a; return ({
|
|
160
|
-
schemas: Object.fromEntries(Object.entries((_a = input.schemas) !== null && _a !== void 0 ? _a : {})
|
|
161
|
-
.filter(([_, v]) => v !== undefined)
|
|
162
|
-
.map(([key, value]) => [key, OpenApiV3Upgrader.convertSchema(input)(value)])),
|
|
163
|
-
securitySchemes: input.securitySchemes,
|
|
164
|
-
}); };
|
|
165
|
-
OpenApiV3Upgrader.convertSchema = (components) => (input) => {
|
|
166
|
-
const nullable = {
|
|
167
|
-
value: false,
|
|
168
|
-
default: undefined,
|
|
169
|
-
};
|
|
170
|
-
const union = [];
|
|
171
|
-
const attribute = Object.assign({ title: input.title, description: input.description, deprecated: input.deprecated, readOnly: input.readOnly, writeOnly: input.writeOnly, example: input.example, examples: Array.isArray(input.examples)
|
|
172
|
-
? Object.fromEntries(input.examples.map((v, i) => [`v${i}`, v]))
|
|
173
|
-
: input.examples }, Object.fromEntries(Object.entries(input).filter(([key, value]) => key.startsWith("x-") && value !== undefined)));
|
|
174
|
-
const visit = (schema) => {
|
|
175
|
-
var _a, _b, _c;
|
|
176
|
-
var _d, _e, _f;
|
|
177
|
-
// NULLABLE PROPERTY
|
|
178
|
-
if (schema.nullable === true) {
|
|
179
|
-
nullable.value || (nullable.value = true);
|
|
180
|
-
if (schema.default === null)
|
|
181
|
-
nullable.default = null;
|
|
182
|
-
}
|
|
183
|
-
if (Array.isArray(schema.enum) &&
|
|
184
|
-
((_a = schema.enum) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
185
|
-
((_b = schema.enum) === null || _b === void 0 ? void 0 : _b.some((e) => e === null)))
|
|
186
|
-
nullable.value || (nullable.value = true);
|
|
187
|
-
// UNION TYPE CASE
|
|
188
|
-
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isAnyOf(schema))
|
|
189
|
-
schema.anyOf.forEach(visit);
|
|
190
|
-
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isOneOf(schema))
|
|
191
|
-
schema.oneOf.forEach(visit);
|
|
192
|
-
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isAllOf(schema))
|
|
193
|
-
if (schema.allOf.length === 1)
|
|
194
|
-
visit(schema.allOf[0]);
|
|
195
|
-
else
|
|
196
|
-
union.push(convertAllOfSchema(components)(schema));
|
|
197
|
-
// ATOMIC TYPE CASE (CONSIDER ENUM VALUES)
|
|
198
|
-
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isBoolean(schema) ||
|
|
199
|
-
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isInteger(schema) ||
|
|
200
|
-
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isNumber(schema) ||
|
|
201
|
-
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isString(schema))
|
|
202
|
-
if (((_c = schema.enum) === null || _c === void 0 ? void 0 : _c.length) &&
|
|
203
|
-
schema.enum.filter((e) => e !== null).length)
|
|
204
|
-
union.push(...schema.enum
|
|
205
|
-
.filter((v) => v !== null)
|
|
206
|
-
.map((value) => ({ const: value })));
|
|
207
|
-
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isInteger(schema) ||
|
|
208
|
-
OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isNumber(schema))
|
|
209
|
-
union.push(OpenApiExclusiveEmender_1.OpenApiExclusiveEmender.emend(Object.assign(Object.assign(Object.assign({}, schema), { default: ((_d = schema.default) !== null && _d !== void 0 ? _d : undefined), exclusiveMinimum: typeof schema.exclusiveMinimum === "boolean"
|
|
210
|
-
? schema.exclusiveMinimum === true
|
|
211
|
-
? schema.minimum
|
|
212
|
-
: undefined
|
|
213
|
-
: schema.exclusiveMinimum, exclusiveMaximum: typeof schema.exclusiveMaximum === "boolean"
|
|
214
|
-
? schema.exclusiveMaximum === true
|
|
215
|
-
? schema.maximum
|
|
216
|
-
: undefined
|
|
217
|
-
: schema.exclusiveMaximum, minimum: schema.exclusiveMinimum === true ? undefined : schema.minimum, maximum: schema.exclusiveMaximum === true ? undefined : schema.maximum }), { enum: undefined })));
|
|
218
|
-
else
|
|
219
|
-
union.push(Object.assign(Object.assign(Object.assign({}, schema), { default: ((_e = schema.default) !== null && _e !== void 0 ? _e : undefined) }), { enum: undefined }));
|
|
220
|
-
// INSTANCE TYPE CASE
|
|
221
|
-
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isArray(schema))
|
|
222
|
-
union.push(Object.assign(Object.assign({}, schema), { items: OpenApiV3Upgrader.convertSchema(components)(schema.items) }));
|
|
223
|
-
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isObject(schema))
|
|
224
|
-
union.push(Object.assign(Object.assign({}, schema), {
|
|
225
|
-
properties: schema.properties
|
|
226
|
-
? Object.fromEntries(Object.entries(schema.properties)
|
|
227
|
-
.filter(([_, v]) => v !== undefined)
|
|
228
|
-
.map(([key, value]) => [
|
|
229
|
-
key,
|
|
230
|
-
OpenApiV3Upgrader.convertSchema(components)(value),
|
|
231
|
-
]))
|
|
232
|
-
: {},
|
|
233
|
-
additionalProperties: schema.additionalProperties
|
|
234
|
-
? typeof schema.additionalProperties === "object" &&
|
|
235
|
-
schema.additionalProperties !== null
|
|
236
|
-
? OpenApiV3Upgrader.convertSchema(components)(schema.additionalProperties)
|
|
237
|
-
: schema.additionalProperties
|
|
238
|
-
: undefined,
|
|
239
|
-
required: (_f = schema.required) !== null && _f !== void 0 ? _f : [],
|
|
240
|
-
}));
|
|
241
|
-
else if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(schema))
|
|
242
|
-
union.push(schema);
|
|
243
|
-
else
|
|
244
|
-
union.push(schema);
|
|
245
|
-
};
|
|
246
|
-
visit(input);
|
|
247
|
-
if (nullable.value === true &&
|
|
248
|
-
!union.some((e) => e.type === "null"))
|
|
249
|
-
union.push({
|
|
250
|
-
type: "null",
|
|
251
|
-
default: nullable.default,
|
|
252
|
-
});
|
|
253
|
-
if (union.length === 2 &&
|
|
254
|
-
union.filter((x) => OpenApiTypeChecker_1.OpenApiTypeChecker.isNull(x)).length === 1) {
|
|
255
|
-
const type = union.filter((x) => OpenApiTypeChecker_1.OpenApiTypeChecker.isNull(x) === false)[0];
|
|
256
|
-
for (const key of [
|
|
257
|
-
"title",
|
|
258
|
-
"description",
|
|
259
|
-
"deprecated",
|
|
260
|
-
"readOnly",
|
|
261
|
-
"writeOnly",
|
|
262
|
-
"example",
|
|
263
|
-
"examples",
|
|
264
|
-
])
|
|
265
|
-
if (type[key] !== undefined)
|
|
266
|
-
delete type[key];
|
|
267
|
-
}
|
|
268
|
-
return Object.assign(Object.assign(Object.assign({}, (union.length === 0
|
|
269
|
-
? { type: undefined }
|
|
270
|
-
: union.length === 1
|
|
271
|
-
? Object.assign({}, union[0]) : { oneOf: union.map((u) => (Object.assign(Object.assign({}, u), { nullable: undefined }))) })), attribute), { nullable: undefined });
|
|
272
|
-
};
|
|
273
|
-
const convertAllOfSchema = (components) => (input) => {
|
|
274
|
-
const objects = input.allOf.map((schema) => retrieveObject(components)(schema));
|
|
275
|
-
if (objects.some((obj) => obj === null))
|
|
276
|
-
return Object.assign({ type: undefined }, {
|
|
277
|
-
allOf: undefined,
|
|
278
|
-
});
|
|
279
|
-
return Object.assign(Object.assign(Object.assign({}, input), { type: "object", properties: Object.fromEntries(objects
|
|
280
|
-
.map((o) => { var _a; return Object.entries((_a = o === null || o === void 0 ? void 0 : o.properties) !== null && _a !== void 0 ? _a : {}); })
|
|
281
|
-
.flat()
|
|
282
|
-
.map(([key, value]) => [key, OpenApiV3Upgrader.convertSchema(components)(value)])) }), {
|
|
283
|
-
allOf: undefined,
|
|
284
|
-
required: [...new Set(objects.map((o) => { var _a; return (_a = o === null || o === void 0 ? void 0 : o.required) !== null && _a !== void 0 ? _a : []; }).flat())],
|
|
285
|
-
});
|
|
286
|
-
};
|
|
287
|
-
const retrieveObject = (components) => (input, visited = new Set()) => {
|
|
288
|
-
var _a;
|
|
289
|
-
var _b, _c;
|
|
290
|
-
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isObject(input))
|
|
291
|
-
return input.properties !== undefined && !input.additionalProperties
|
|
292
|
-
? input
|
|
293
|
-
: null;
|
|
294
|
-
else if (visited.has(input))
|
|
295
|
-
return null;
|
|
296
|
-
else
|
|
297
|
-
visited.add(input);
|
|
298
|
-
if (OpenApiV3TypeChecker_1.OpenApiV3TypeChecker.isReference(input))
|
|
299
|
-
return retrieveObject(components)((_c = (_a = components.schemas) === null || _a === void 0 ? void 0 : _a[(_b = input.$ref.split("/").pop()) !== null && _b !== void 0 ? _b : ""]) !== null && _c !== void 0 ? _c : {}, visited);
|
|
300
|
-
return null;
|
|
301
|
-
};
|
|
302
|
-
})(OpenApiV3Upgrader$1 || (OpenApiV3Upgrader.OpenApiV3Upgrader = OpenApiV3Upgrader$1 = {}));
|
|
303
|
-
|
|
304
|
-
return OpenApiV3Upgrader;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export { requireOpenApiV3Upgrader as __require };
|
|
302
|
+
export { OpenApiV3Upgrader_2 as OpenApiV3Upgrader, OpenApiV3Upgrader$1 as default };
|
|
308
303
|
//# sourceMappingURL=OpenApiV3Upgrader2.mjs.map
|