@autobe/agent 0.21.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/agent/src/AutoBeAgent.js +2 -2
- package/lib/agent/src/AutoBeAgent.js.map +1 -1
- package/lib/agent/src/constants/AutoBeConfigConstant.d.ts +3 -0
- package/lib/agent/src/{orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js → constants/AutoBeConfigConstant.js} +1 -1
- package/lib/agent/src/constants/AutoBeConfigConstant.js.map +1 -0
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +27 -27
- package/lib/agent/src/context/AutoBeContext.d.ts +1 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js +4 -3
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -1
- package/lib/agent/src/factory/consentFunctionCall.js +4 -4
- package/lib/agent/src/factory/consentFunctionCall.js.map +1 -1
- package/lib/agent/src/factory/createAutoBeContext.js +13 -10
- package/lib/agent/src/factory/createAutoBeContext.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +2 -2
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +6 -6
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +50 -8
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +4 -4
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +6 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +4 -0
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js +1 -1
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +19 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +3 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js +5 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +16 -10
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js +3731 -228
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js +2 -2
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +2 -2
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +43 -63
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1261 -1628
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js +3468 -105
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +6 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +3674 -360
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -38
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +48 -141
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +29 -23
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.d.ts +9 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js +1385 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +5 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js +78 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.d.ts +10 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.js +59 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +2 -0
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js +81 -0
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js +2 -2
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +2 -2
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +6 -6
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +22 -7
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -8
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +13 -29
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js +2 -8
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +6 -49
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js +4 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +5 -3
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +13 -6
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +206 -118
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +24 -39
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +17 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +20 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +33 -73
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +1 -0
- package/{src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts → lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts} +2 -13
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +33 -22
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +31 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +86 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.d.ts +4 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js +55 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +2 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js +20 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +30 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js +73 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +6 -2
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +63 -69
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +3 -1
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js +25 -18
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js +5 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.d.ts +2 -0
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js +19 -0
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js +2 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.d.ts +2 -0
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js +21 -0
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js.map +1 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.d.ts +2 -2
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +16 -17
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +5 -4
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +21 -2
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTest.js +6 -0
- package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +123 -75
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +46 -40
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js +117 -45
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +48 -45
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +6 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js +3 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +13 -0
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.d.ts +5 -0
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js +28 -0
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js.map +1 -0
- package/lib/agent/src/structures/IAutoBeConfig.d.ts +2 -0
- package/lib/constants/AutoBeConfigConstant.d.ts +3 -0
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +27 -27
- package/lib/context/AutoBeContext.d.ts +1 -0
- package/lib/index.mjs +13871 -3912
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +6 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +4 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +6 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -38
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +48 -141
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +29 -23
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.d.ts +9 -0
- package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +5 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +10 -0
- package/lib/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +2 -0
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.d.ts +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +6 -6
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -8
- package/lib/orchestrate/realize/internal/compileRealizeFiles.d.ts +2 -2
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +13 -6
- package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +2 -2
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +2 -2
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +17 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +20 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +33 -73
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +5 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +36 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +33 -22
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +31 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.d.ts +4 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +2 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +30 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.d.ts +6 -2
- package/lib/orchestrate/test/compile/completeTestCode.d.ts +3 -1
- package/lib/orchestrate/test/compile/getTestImportStatements.d.ts +2 -0
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +1 -1
- package/lib/orchestrate/test/compile/getTestTemplateCode.d.ts +2 -0
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +48 -45
- package/lib/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +6 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +13 -0
- package/lib/orchestrate/test/utils/getReferenceIds.d.ts +5 -0
- package/lib/structures/IAutoBeConfig.d.ts +2 -0
- package/package.json +6 -6
- package/src/AutoBeAgent.ts +2 -0
- package/src/constants/AutoBeConfigConstant.ts +3 -0
- package/src/constants/AutoBeSystemPromptConstant.ts +27 -27
- package/src/context/AutoBeContext.ts +1 -0
- package/src/context/AutoBeTokenUsageComponent.ts +3 -3
- package/src/factory/consentFunctionCall.ts +2 -0
- package/src/factory/createAutoBeContext.ts +145 -136
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +6 -0
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +4 -0
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +19 -1
- package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +1 -4
- package/src/orchestrate/interface/orchestrateInterface.ts +15 -4
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +13 -5
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +58 -19
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +11 -11
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +13 -117
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +35 -93
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +74 -97
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +0 -39
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +50 -146
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +31 -27
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +171 -0
- package/src/orchestrate/interface/utils/JsonSchemaNamingConvention.ts +83 -0
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +66 -0
- package/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.ts +90 -0
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +1 -2
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +30 -15
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +27 -49
- package/src/orchestrate/realize/internal/compileRealizeFiles.ts +4 -11
- package/src/orchestrate/realize/orchestrateRealize.ts +19 -75
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +1 -1
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +114 -25
- package/src/orchestrate/realize/orchestrateRealizeScenario.ts +2 -2
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +11 -15
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +17 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +20 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +40 -74
- package/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.ts +9 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.ts +45 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +33 -22
- package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +97 -0
- package/src/orchestrate/realize/utils/getRealizeWriteDto.ts +64 -0
- package/src/orchestrate/realize/utils/getRealizeWriteImportStatements.ts +29 -0
- package/src/orchestrate/realize/utils/getRealizeWriteInputType.ts +82 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +101 -111
- package/src/orchestrate/test/compile/completeTestCode.ts +18 -31
- package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +12 -0
- package/src/orchestrate/test/compile/getTestImportStatements.ts +25 -0
- package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +6 -1
- package/src/orchestrate/test/compile/getTestTemplateCode.ts +25 -0
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +26 -26
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +6 -5
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +19 -0
- package/src/orchestrate/test/orchestrateTest.ts +6 -0
- package/src/orchestrate/test/orchestrateTestCorrect.ts +44 -20
- package/src/orchestrate/test/orchestrateTestScenario.ts +52 -48
- package/src/orchestrate/test/orchestrateTestWrite.ts +20 -10
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +49 -46
- package/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.ts +8 -0
- package/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.ts +1 -0
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +14 -0
- package/src/orchestrate/test/utils/getReferenceIds.ts +25 -0
- package/src/structures/IAutoBeConfig.ts +3 -0
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +0 -7
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js +0 -35
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +0 -38
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +0 -1
- package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +0 -7
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +0 -38
- package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +0 -41
|
@@ -0,0 +1,1385 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
var _a;
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.JsonSchemaFactory = void 0;
|
|
41
|
+
const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString.js"));
|
|
42
|
+
const __typia_transform__assertGuard = __importStar(require("typia/lib/internal/_assertGuard.js"));
|
|
43
|
+
const utils_1 = require("@autobe/utils");
|
|
44
|
+
const typia_1 = __importDefault(require("typia"));
|
|
45
|
+
var JsonSchemaFactory;
|
|
46
|
+
(function (JsonSchemaFactory) {
|
|
47
|
+
JsonSchemaFactory.presets = (typeNames) => {
|
|
48
|
+
const schemas = {};
|
|
49
|
+
for (const [key, value] of Object.entries(DEFAULT_SCHEMAS)) {
|
|
50
|
+
schemas[key] = value;
|
|
51
|
+
typeNames.delete(key);
|
|
52
|
+
}
|
|
53
|
+
for (const key of typeNames)
|
|
54
|
+
if (JsonSchemaFactory.isPage(key)) {
|
|
55
|
+
const data = JsonSchemaFactory.getPageName(key);
|
|
56
|
+
schemas[key] = JsonSchemaFactory.page(data);
|
|
57
|
+
typeNames.delete(key);
|
|
58
|
+
typeNames.add(data);
|
|
59
|
+
}
|
|
60
|
+
return schemas;
|
|
61
|
+
};
|
|
62
|
+
JsonSchemaFactory.authorize = (schemas) => {
|
|
63
|
+
for (const [key, value] of Object.entries(schemas)) {
|
|
64
|
+
if (key.endsWith(".IAuthorized") === false)
|
|
65
|
+
continue;
|
|
66
|
+
else if (utils_1.AutoBeOpenApiTypeChecker.isObject(value) === false)
|
|
67
|
+
continue;
|
|
68
|
+
const parent = schemas[key.substring(0, key.length - ".IAuthorized".length)];
|
|
69
|
+
if (parent === undefined)
|
|
70
|
+
continue;
|
|
71
|
+
else if (utils_1.AutoBeOpenApiTypeChecker.isObject(parent) === false)
|
|
72
|
+
continue;
|
|
73
|
+
value.properties = Object.assign(Object.assign({}, parent.properties), value.properties);
|
|
74
|
+
value.required = [...parent.required];
|
|
75
|
+
if (value.required.includes("id") === false)
|
|
76
|
+
value.required.push("id");
|
|
77
|
+
if (value.required.includes("token") === false)
|
|
78
|
+
value.required.push("token");
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
JsonSchemaFactory.page = (key) => ({
|
|
82
|
+
type: "object",
|
|
83
|
+
properties: {
|
|
84
|
+
pagination: {
|
|
85
|
+
$ref: "#/components/schemas/IPage.IPagination",
|
|
86
|
+
description: "Page information.",
|
|
87
|
+
},
|
|
88
|
+
data: {
|
|
89
|
+
type: "array",
|
|
90
|
+
items: {
|
|
91
|
+
$ref: `#/components/schemas/${key}`,
|
|
92
|
+
},
|
|
93
|
+
description: "List of records.",
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
required: ["pagination", "data"],
|
|
97
|
+
description: utils_1.StringUtil.trim `
|
|
98
|
+
A page.
|
|
99
|
+
|
|
100
|
+
Collection of records with pagination information.
|
|
101
|
+
`,
|
|
102
|
+
});
|
|
103
|
+
JsonSchemaFactory.fix = (path, input) => {
|
|
104
|
+
if (isRecord(input) === false || isRecord(input[path]) === false)
|
|
105
|
+
return;
|
|
106
|
+
if (input[path].description)
|
|
107
|
+
delete input[path].description;
|
|
108
|
+
if (input[path].required)
|
|
109
|
+
delete input[path].required;
|
|
110
|
+
for (const key of Object.keys(input[path]))
|
|
111
|
+
if (DEFAULT_SCHEMAS[key] !== undefined)
|
|
112
|
+
input[path][key] = DEFAULT_SCHEMAS[key];
|
|
113
|
+
else if (JsonSchemaFactory.isPage(key) === true) {
|
|
114
|
+
const data = key.substring("IPage".length);
|
|
115
|
+
input[path][key] = JsonSchemaFactory.page(data);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
JsonSchemaFactory.isPage = (key) => key.startsWith("IPage") === true &&
|
|
119
|
+
key.startsWith("IPage.") === false &&
|
|
120
|
+
key !== "IPage";
|
|
121
|
+
JsonSchemaFactory.getPageName = (key) => key.substring("IPage".length);
|
|
122
|
+
const isRecord = (input) => typeof input === "object" && input !== null;
|
|
123
|
+
})(JsonSchemaFactory || (exports.JsonSchemaFactory = JsonSchemaFactory = {}));
|
|
124
|
+
const DEFAULT_SCHEMAS = (() => { const _io0 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
125
|
+
const value = input[key];
|
|
126
|
+
if (undefined === value)
|
|
127
|
+
return true;
|
|
128
|
+
return "object" === typeof value && null !== value && _iu1(value, true && _exceptionable);
|
|
129
|
+
}); const _io1 = (input, _exceptionable = true) => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
130
|
+
if (["const", "description"].some(prop => key === prop))
|
|
131
|
+
return true;
|
|
132
|
+
const value = input[key];
|
|
133
|
+
if (undefined === value)
|
|
134
|
+
return true;
|
|
135
|
+
return false;
|
|
136
|
+
})); const _io2 = (input, _exceptionable = true) => "boolean" === input.type && "string" === typeof input.description && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
137
|
+
if (["type", "description"].some(prop => key === prop))
|
|
138
|
+
return true;
|
|
139
|
+
const value = input[key];
|
|
140
|
+
if (undefined === value)
|
|
141
|
+
return true;
|
|
142
|
+
return false;
|
|
143
|
+
})); const _io3 = (input, _exceptionable = true) => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && "string" === typeof input.description && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
144
|
+
if (["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "type", "description"].some(prop => key === prop))
|
|
145
|
+
return true;
|
|
146
|
+
const value = input[key];
|
|
147
|
+
if (undefined === value)
|
|
148
|
+
return true;
|
|
149
|
+
return false;
|
|
150
|
+
})); const _io4 = (input, _exceptionable = true) => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && "string" === typeof input.description && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
151
|
+
if (["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "type", "description"].some(prop => key === prop))
|
|
152
|
+
return true;
|
|
153
|
+
const value = input[key];
|
|
154
|
+
if (undefined === value)
|
|
155
|
+
return true;
|
|
156
|
+
return false;
|
|
157
|
+
})); const _io5 = (input, _exceptionable = true) => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && "string" === typeof input.description && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
158
|
+
if (["format", "pattern", "contentMediaType", "minLength", "maxLength", "type", "description"].some(prop => key === prop))
|
|
159
|
+
return true;
|
|
160
|
+
const value = input[key];
|
|
161
|
+
if (undefined === value)
|
|
162
|
+
return true;
|
|
163
|
+
return false;
|
|
164
|
+
})); const _io6 = (input, _exceptionable = true) => "object" === typeof input.items && null !== input.items && _iu2(input.items, true && _exceptionable) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
165
|
+
if (["items", "uniqueItems", "minItems", "maxItems", "type", "description"].some(prop => key === prop))
|
|
166
|
+
return true;
|
|
167
|
+
const value = input[key];
|
|
168
|
+
if (undefined === value)
|
|
169
|
+
return true;
|
|
170
|
+
return false;
|
|
171
|
+
})); const _io7 = (input, _exceptionable = true) => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
172
|
+
if (["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "type"].some(prop => key === prop))
|
|
173
|
+
return true;
|
|
174
|
+
const value = input[key];
|
|
175
|
+
if (undefined === value)
|
|
176
|
+
return true;
|
|
177
|
+
return false;
|
|
178
|
+
})); const _io8 = (input, _exceptionable = true) => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
179
|
+
if (["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "type"].some(prop => key === prop))
|
|
180
|
+
return true;
|
|
181
|
+
const value = input[key];
|
|
182
|
+
if (undefined === value)
|
|
183
|
+
return true;
|
|
184
|
+
return false;
|
|
185
|
+
})); const _io9 = (input, _exceptionable = true) => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
186
|
+
if (["format", "pattern", "contentMediaType", "minLength", "maxLength", "type"].some(prop => key === prop))
|
|
187
|
+
return true;
|
|
188
|
+
const value = input[key];
|
|
189
|
+
if (undefined === value)
|
|
190
|
+
return true;
|
|
191
|
+
return false;
|
|
192
|
+
})); const _io10 = (input, _exceptionable = true) => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
193
|
+
if (["const"].some(prop => key === prop))
|
|
194
|
+
return true;
|
|
195
|
+
const value = input[key];
|
|
196
|
+
if (undefined === value)
|
|
197
|
+
return true;
|
|
198
|
+
return false;
|
|
199
|
+
})); const _io11 = (input, _exceptionable = true) => "boolean" === input.type && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
200
|
+
if (["type"].some(prop => key === prop))
|
|
201
|
+
return true;
|
|
202
|
+
const value = input[key];
|
|
203
|
+
if (undefined === value)
|
|
204
|
+
return true;
|
|
205
|
+
return false;
|
|
206
|
+
})); const _io12 = (input, _exceptionable = true) => "object" === typeof input.items && null !== input.items && _iu2(input.items, true && _exceptionable) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
207
|
+
if (["items", "uniqueItems", "minItems", "maxItems", "type"].some(prop => key === prop))
|
|
208
|
+
return true;
|
|
209
|
+
const value = input[key];
|
|
210
|
+
if (undefined === value)
|
|
211
|
+
return true;
|
|
212
|
+
return false;
|
|
213
|
+
})); const _io13 = (input, _exceptionable = true) => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io0(input.properties, true && _exceptionable) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties, true && _exceptionable))) && (Array.isArray(input.required) && input.required.every((elem, _index1) => "string" === typeof elem)) && "object" === input.type && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
214
|
+
if (["properties", "additionalProperties", "required", "type"].some(prop => key === prop))
|
|
215
|
+
return true;
|
|
216
|
+
const value = input[key];
|
|
217
|
+
if (undefined === value)
|
|
218
|
+
return true;
|
|
219
|
+
return false;
|
|
220
|
+
})); const _io14 = (input, _exceptionable = true) => "string" === typeof input.$ref && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
221
|
+
if (["$ref"].some(prop => key === prop))
|
|
222
|
+
return true;
|
|
223
|
+
const value = input[key];
|
|
224
|
+
if (undefined === value)
|
|
225
|
+
return true;
|
|
226
|
+
return false;
|
|
227
|
+
})); const _io15 = (input, _exceptionable = true) => Array.isArray(input.oneOf) && input.oneOf.every((elem, _index2) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io17(input.discriminator, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
228
|
+
if (["oneOf", "discriminator"].some(prop => key === prop))
|
|
229
|
+
return true;
|
|
230
|
+
const value = input[key];
|
|
231
|
+
if (undefined === value)
|
|
232
|
+
return true;
|
|
233
|
+
return false;
|
|
234
|
+
})); const _io16 = (input, _exceptionable = true) => "null" === input.type && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
235
|
+
if (["type"].some(prop => key === prop))
|
|
236
|
+
return true;
|
|
237
|
+
const value = input[key];
|
|
238
|
+
if (undefined === value)
|
|
239
|
+
return true;
|
|
240
|
+
return false;
|
|
241
|
+
})); const _io17 = (input, _exceptionable = true) => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io18(input.mapping, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
242
|
+
if (["propertyName", "mapping"].some(prop => key === prop))
|
|
243
|
+
return true;
|
|
244
|
+
const value = input[key];
|
|
245
|
+
if (undefined === value)
|
|
246
|
+
return true;
|
|
247
|
+
return false;
|
|
248
|
+
})); const _io18 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
249
|
+
const value = input[key];
|
|
250
|
+
if (undefined === value)
|
|
251
|
+
return true;
|
|
252
|
+
return "string" === typeof value;
|
|
253
|
+
}); const _io19 = (input, _exceptionable = true) => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io0(input.properties, true && _exceptionable) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties, true && _exceptionable))) && (Array.isArray(input.required) && input.required.every((elem, _index3) => "string" === typeof elem)) && "object" === input.type && "string" === typeof input.description && (4 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
254
|
+
if (["properties", "additionalProperties", "required", "type", "description"].some(prop => key === prop))
|
|
255
|
+
return true;
|
|
256
|
+
const value = input[key];
|
|
257
|
+
if (undefined === value)
|
|
258
|
+
return true;
|
|
259
|
+
return false;
|
|
260
|
+
})); const _io20 = (input, _exceptionable = true) => "string" === typeof input.$ref && "string" === typeof input.description && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
261
|
+
if (["$ref", "description"].some(prop => key === prop))
|
|
262
|
+
return true;
|
|
263
|
+
const value = input[key];
|
|
264
|
+
if (undefined === value)
|
|
265
|
+
return true;
|
|
266
|
+
return false;
|
|
267
|
+
})); const _io21 = (input, _exceptionable = true) => Array.isArray(input.oneOf) && input.oneOf.every((elem, _index4) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io17(input.discriminator, true && _exceptionable)) && "string" === typeof input.description && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
268
|
+
if (["oneOf", "discriminator", "description"].some(prop => key === prop))
|
|
269
|
+
return true;
|
|
270
|
+
const value = input[key];
|
|
271
|
+
if (undefined === value)
|
|
272
|
+
return true;
|
|
273
|
+
return false;
|
|
274
|
+
})); const _io22 = (input, _exceptionable = true) => "null" === input.type && "string" === typeof input.description && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
275
|
+
if (["type", "description"].some(prop => key === prop))
|
|
276
|
+
return true;
|
|
277
|
+
const value = input[key];
|
|
278
|
+
if (undefined === value)
|
|
279
|
+
return true;
|
|
280
|
+
return false;
|
|
281
|
+
})); const _iu0 = (input, _exceptionable = true) => (() => {
|
|
282
|
+
if ("number" === input.type)
|
|
283
|
+
return _io8(input, true && _exceptionable);
|
|
284
|
+
else if ("integer" === input.type)
|
|
285
|
+
return _io7(input, true && _exceptionable);
|
|
286
|
+
else if ("string" === input.type)
|
|
287
|
+
return _io9(input, true && _exceptionable);
|
|
288
|
+
else if (undefined !== input["const"])
|
|
289
|
+
return _io10(input, true && _exceptionable);
|
|
290
|
+
else if ("null" === input.type)
|
|
291
|
+
return _io16(input, true && _exceptionable);
|
|
292
|
+
else if ("boolean" === input.type)
|
|
293
|
+
return _io11(input, true && _exceptionable);
|
|
294
|
+
else if ("array" === input.type)
|
|
295
|
+
return _io12(input, true && _exceptionable);
|
|
296
|
+
else if ("object" === input.type)
|
|
297
|
+
return _io13(input, true && _exceptionable);
|
|
298
|
+
else if (undefined !== input.$ref)
|
|
299
|
+
return _io14(input, true && _exceptionable);
|
|
300
|
+
else
|
|
301
|
+
return false;
|
|
302
|
+
})(); const _iu1 = (input, _exceptionable = true) => (() => {
|
|
303
|
+
if (undefined !== input["const"])
|
|
304
|
+
return _io1(input, true && _exceptionable);
|
|
305
|
+
else if ("boolean" === input.type)
|
|
306
|
+
return _io2(input, true && _exceptionable);
|
|
307
|
+
else if ("number" === input.type)
|
|
308
|
+
return _io4(input, true && _exceptionable);
|
|
309
|
+
else if ("integer" === input.type)
|
|
310
|
+
return _io3(input, true && _exceptionable);
|
|
311
|
+
else if ("string" === input.type)
|
|
312
|
+
return _io5(input, true && _exceptionable);
|
|
313
|
+
else if ("array" === input.type)
|
|
314
|
+
return _io6(input, true && _exceptionable);
|
|
315
|
+
else if ("object" === input.type)
|
|
316
|
+
return _io19(input, true && _exceptionable);
|
|
317
|
+
else if (undefined !== input.$ref)
|
|
318
|
+
return _io20(input, true && _exceptionable);
|
|
319
|
+
else if (undefined !== input.oneOf)
|
|
320
|
+
return _io21(input, true && _exceptionable);
|
|
321
|
+
else if ("null" === input.type)
|
|
322
|
+
return _io22(input, true && _exceptionable);
|
|
323
|
+
else
|
|
324
|
+
return false;
|
|
325
|
+
})(); const _iu2 = (input, _exceptionable = true) => (() => {
|
|
326
|
+
if ("number" === input.type)
|
|
327
|
+
return _io8(input, true && _exceptionable);
|
|
328
|
+
else if ("integer" === input.type)
|
|
329
|
+
return _io7(input, true && _exceptionable);
|
|
330
|
+
else if ("string" === input.type)
|
|
331
|
+
return _io9(input, true && _exceptionable);
|
|
332
|
+
else if (undefined !== input["const"])
|
|
333
|
+
return _io10(input, true && _exceptionable);
|
|
334
|
+
else if ("null" === input.type)
|
|
335
|
+
return _io16(input, true && _exceptionable);
|
|
336
|
+
else if ("boolean" === input.type)
|
|
337
|
+
return _io11(input, true && _exceptionable);
|
|
338
|
+
else if ("array" === input.type)
|
|
339
|
+
return _io12(input, true && _exceptionable);
|
|
340
|
+
else if ("object" === input.type)
|
|
341
|
+
return _io13(input, true && _exceptionable);
|
|
342
|
+
else if (undefined !== input.$ref)
|
|
343
|
+
return _io14(input, true && _exceptionable);
|
|
344
|
+
else if (undefined !== input.oneOf)
|
|
345
|
+
return _io15(input, true && _exceptionable);
|
|
346
|
+
else
|
|
347
|
+
return false;
|
|
348
|
+
})(); const _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
349
|
+
const value = input[key];
|
|
350
|
+
if (undefined === value)
|
|
351
|
+
return true;
|
|
352
|
+
return ("object" === typeof value && null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
353
|
+
method: "typia.assertEquals",
|
|
354
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
355
|
+
expected: "(AutoBeOpenApi.IJsonSchemaDescriptive.IArray | AutoBeOpenApi.IJsonSchemaDescriptive.IBoolean | AutoBeOpenApi.IJsonSchemaDescriptive.IConstant | AutoBeOpenApi.IJsonSchemaDescriptive.IInteger | AutoBeOpenApi.IJsonSchemaDescriptive.INull | AutoBeOpenApi.IJsonSchemaDescriptive.INumber | AutoBeOpenApi.IJsonSchemaDescriptive.IObject | AutoBeOpenApi.IJsonSchemaDescriptive.IOneOf | AutoBeOpenApi.IJsonSchemaDescriptive.IReference | AutoBeOpenApi.IJsonSchemaDescriptive.IString)",
|
|
356
|
+
value: value
|
|
357
|
+
}, _errorFactory)) && _au1(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
358
|
+
method: "typia.assertEquals",
|
|
359
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
360
|
+
expected: "(AutoBeOpenApi.IJsonSchemaDescriptive.IArray | AutoBeOpenApi.IJsonSchemaDescriptive.IBoolean | AutoBeOpenApi.IJsonSchemaDescriptive.IConstant | AutoBeOpenApi.IJsonSchemaDescriptive.IInteger | AutoBeOpenApi.IJsonSchemaDescriptive.INull | AutoBeOpenApi.IJsonSchemaDescriptive.INumber | AutoBeOpenApi.IJsonSchemaDescriptive.IObject | AutoBeOpenApi.IJsonSchemaDescriptive.IOneOf | AutoBeOpenApi.IJsonSchemaDescriptive.IReference | AutoBeOpenApi.IJsonSchemaDescriptive.IString)",
|
|
361
|
+
value: value
|
|
362
|
+
}, _errorFactory);
|
|
363
|
+
}); const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
364
|
+
method: "typia.assertEquals",
|
|
365
|
+
path: _path + "[\"const\"]",
|
|
366
|
+
expected: "(boolean | number | string)",
|
|
367
|
+
value: input["const"]
|
|
368
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
369
|
+
method: "typia.assertEquals",
|
|
370
|
+
path: _path + ".description",
|
|
371
|
+
expected: "string",
|
|
372
|
+
value: input.description
|
|
373
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
374
|
+
if (["const", "description"].some(prop => key === prop))
|
|
375
|
+
return true;
|
|
376
|
+
const value = input[key];
|
|
377
|
+
if (undefined === value)
|
|
378
|
+
return true;
|
|
379
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
380
|
+
method: "typia.assertEquals",
|
|
381
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
382
|
+
expected: "undefined",
|
|
383
|
+
value: value
|
|
384
|
+
}, _errorFactory);
|
|
385
|
+
}))); const _ao2 = (input, _path, _exceptionable = true) => ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
386
|
+
method: "typia.assertEquals",
|
|
387
|
+
path: _path + ".type",
|
|
388
|
+
expected: "\"boolean\"",
|
|
389
|
+
value: input.type
|
|
390
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
391
|
+
method: "typia.assertEquals",
|
|
392
|
+
path: _path + ".description",
|
|
393
|
+
expected: "string",
|
|
394
|
+
value: input.description
|
|
395
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
396
|
+
if (["type", "description"].some(prop => key === prop))
|
|
397
|
+
return true;
|
|
398
|
+
const value = input[key];
|
|
399
|
+
if (undefined === value)
|
|
400
|
+
return true;
|
|
401
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
402
|
+
method: "typia.assertEquals",
|
|
403
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
404
|
+
expected: "undefined",
|
|
405
|
+
value: value
|
|
406
|
+
}, _errorFactory);
|
|
407
|
+
}))); const _ao3 = (input, _path, _exceptionable = true) => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
408
|
+
method: "typia.assertEquals",
|
|
409
|
+
path: _path + ".minimum",
|
|
410
|
+
expected: "number & Type<\"int64\">",
|
|
411
|
+
value: input.minimum
|
|
412
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
413
|
+
method: "typia.assertEquals",
|
|
414
|
+
path: _path + ".minimum",
|
|
415
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
416
|
+
value: input.minimum
|
|
417
|
+
}, _errorFactory)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
418
|
+
method: "typia.assertEquals",
|
|
419
|
+
path: _path + ".maximum",
|
|
420
|
+
expected: "number & Type<\"int64\">",
|
|
421
|
+
value: input.maximum
|
|
422
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
423
|
+
method: "typia.assertEquals",
|
|
424
|
+
path: _path + ".maximum",
|
|
425
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
426
|
+
value: input.maximum
|
|
427
|
+
}, _errorFactory)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
428
|
+
method: "typia.assertEquals",
|
|
429
|
+
path: _path + ".exclusiveMinimum",
|
|
430
|
+
expected: "(number | undefined)",
|
|
431
|
+
value: input.exclusiveMinimum
|
|
432
|
+
}, _errorFactory)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
433
|
+
method: "typia.assertEquals",
|
|
434
|
+
path: _path + ".exclusiveMaximum",
|
|
435
|
+
expected: "(number | undefined)",
|
|
436
|
+
value: input.exclusiveMaximum
|
|
437
|
+
}, _errorFactory)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
438
|
+
method: "typia.assertEquals",
|
|
439
|
+
path: _path + ".multipleOf",
|
|
440
|
+
expected: "number & Type<\"uint64\">",
|
|
441
|
+
value: input.multipleOf
|
|
442
|
+
}, _errorFactory)) && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
443
|
+
method: "typia.assertEquals",
|
|
444
|
+
path: _path + ".multipleOf",
|
|
445
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
446
|
+
value: input.multipleOf
|
|
447
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
448
|
+
method: "typia.assertEquals",
|
|
449
|
+
path: _path + ".multipleOf",
|
|
450
|
+
expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
|
|
451
|
+
value: input.multipleOf
|
|
452
|
+
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
453
|
+
method: "typia.assertEquals",
|
|
454
|
+
path: _path + ".type",
|
|
455
|
+
expected: "\"integer\"",
|
|
456
|
+
value: input.type
|
|
457
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
458
|
+
method: "typia.assertEquals",
|
|
459
|
+
path: _path + ".description",
|
|
460
|
+
expected: "string",
|
|
461
|
+
value: input.description
|
|
462
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
463
|
+
if (["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "type", "description"].some(prop => key === prop))
|
|
464
|
+
return true;
|
|
465
|
+
const value = input[key];
|
|
466
|
+
if (undefined === value)
|
|
467
|
+
return true;
|
|
468
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
469
|
+
method: "typia.assertEquals",
|
|
470
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
471
|
+
expected: "undefined",
|
|
472
|
+
value: value
|
|
473
|
+
}, _errorFactory);
|
|
474
|
+
}))); const _ao4 = (input, _path, _exceptionable = true) => (undefined === input.minimum || "number" === typeof input.minimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
475
|
+
method: "typia.assertEquals",
|
|
476
|
+
path: _path + ".minimum",
|
|
477
|
+
expected: "(number | undefined)",
|
|
478
|
+
value: input.minimum
|
|
479
|
+
}, _errorFactory)) && (undefined === input.maximum || "number" === typeof input.maximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
480
|
+
method: "typia.assertEquals",
|
|
481
|
+
path: _path + ".maximum",
|
|
482
|
+
expected: "(number | undefined)",
|
|
483
|
+
value: input.maximum
|
|
484
|
+
}, _errorFactory)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
485
|
+
method: "typia.assertEquals",
|
|
486
|
+
path: _path + ".exclusiveMinimum",
|
|
487
|
+
expected: "(number | undefined)",
|
|
488
|
+
value: input.exclusiveMinimum
|
|
489
|
+
}, _errorFactory)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
490
|
+
method: "typia.assertEquals",
|
|
491
|
+
path: _path + ".exclusiveMaximum",
|
|
492
|
+
expected: "(number | undefined)",
|
|
493
|
+
value: input.exclusiveMaximum
|
|
494
|
+
}, _errorFactory)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
495
|
+
method: "typia.assertEquals",
|
|
496
|
+
path: _path + ".multipleOf",
|
|
497
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
498
|
+
value: input.multipleOf
|
|
499
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
500
|
+
method: "typia.assertEquals",
|
|
501
|
+
path: _path + ".multipleOf",
|
|
502
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
503
|
+
value: input.multipleOf
|
|
504
|
+
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
505
|
+
method: "typia.assertEquals",
|
|
506
|
+
path: _path + ".type",
|
|
507
|
+
expected: "\"number\"",
|
|
508
|
+
value: input.type
|
|
509
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
510
|
+
method: "typia.assertEquals",
|
|
511
|
+
path: _path + ".description",
|
|
512
|
+
expected: "string",
|
|
513
|
+
value: input.description
|
|
514
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
515
|
+
if (["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "type", "description"].some(prop => key === prop))
|
|
516
|
+
return true;
|
|
517
|
+
const value = input[key];
|
|
518
|
+
if (undefined === value)
|
|
519
|
+
return true;
|
|
520
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
521
|
+
method: "typia.assertEquals",
|
|
522
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
523
|
+
expected: "undefined",
|
|
524
|
+
value: value
|
|
525
|
+
}, _errorFactory);
|
|
526
|
+
}))); const _ao5 = (input, _path, _exceptionable = true) => (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
527
|
+
method: "typia.assertEquals",
|
|
528
|
+
path: _path + ".format",
|
|
529
|
+
expected: "(string | undefined)",
|
|
530
|
+
value: input.format
|
|
531
|
+
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
532
|
+
method: "typia.assertEquals",
|
|
533
|
+
path: _path + ".pattern",
|
|
534
|
+
expected: "(string | undefined)",
|
|
535
|
+
value: input.pattern
|
|
536
|
+
}, _errorFactory)) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
537
|
+
method: "typia.assertEquals",
|
|
538
|
+
path: _path + ".contentMediaType",
|
|
539
|
+
expected: "(string | undefined)",
|
|
540
|
+
value: input.contentMediaType
|
|
541
|
+
}, _errorFactory)) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
542
|
+
method: "typia.assertEquals",
|
|
543
|
+
path: _path + ".minLength",
|
|
544
|
+
expected: "number & Type<\"uint64\">",
|
|
545
|
+
value: input.minLength
|
|
546
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
547
|
+
method: "typia.assertEquals",
|
|
548
|
+
path: _path + ".minLength",
|
|
549
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
550
|
+
value: input.minLength
|
|
551
|
+
}, _errorFactory)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
552
|
+
method: "typia.assertEquals",
|
|
553
|
+
path: _path + ".maxLength",
|
|
554
|
+
expected: "number & Type<\"uint64\">",
|
|
555
|
+
value: input.maxLength
|
|
556
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
557
|
+
method: "typia.assertEquals",
|
|
558
|
+
path: _path + ".maxLength",
|
|
559
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
560
|
+
value: input.maxLength
|
|
561
|
+
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
562
|
+
method: "typia.assertEquals",
|
|
563
|
+
path: _path + ".type",
|
|
564
|
+
expected: "\"string\"",
|
|
565
|
+
value: input.type
|
|
566
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
567
|
+
method: "typia.assertEquals",
|
|
568
|
+
path: _path + ".description",
|
|
569
|
+
expected: "string",
|
|
570
|
+
value: input.description
|
|
571
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
572
|
+
if (["format", "pattern", "contentMediaType", "minLength", "maxLength", "type", "description"].some(prop => key === prop))
|
|
573
|
+
return true;
|
|
574
|
+
const value = input[key];
|
|
575
|
+
if (undefined === value)
|
|
576
|
+
return true;
|
|
577
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
578
|
+
method: "typia.assertEquals",
|
|
579
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
580
|
+
expected: "undefined",
|
|
581
|
+
value: value
|
|
582
|
+
}, _errorFactory);
|
|
583
|
+
}))); const _ao6 = (input, _path, _exceptionable = true) => (("object" === typeof input.items && null !== input.items || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
584
|
+
method: "typia.assertEquals",
|
|
585
|
+
path: _path + ".items",
|
|
586
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
587
|
+
value: input.items
|
|
588
|
+
}, _errorFactory)) && _au2(input.items, _path + ".items", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
589
|
+
method: "typia.assertEquals",
|
|
590
|
+
path: _path + ".items",
|
|
591
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
592
|
+
value: input.items
|
|
593
|
+
}, _errorFactory)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
594
|
+
method: "typia.assertEquals",
|
|
595
|
+
path: _path + ".uniqueItems",
|
|
596
|
+
expected: "(boolean | undefined)",
|
|
597
|
+
value: input.uniqueItems
|
|
598
|
+
}, _errorFactory)) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
599
|
+
method: "typia.assertEquals",
|
|
600
|
+
path: _path + ".minItems",
|
|
601
|
+
expected: "number & Type<\"uint64\">",
|
|
602
|
+
value: input.minItems
|
|
603
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
604
|
+
method: "typia.assertEquals",
|
|
605
|
+
path: _path + ".minItems",
|
|
606
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
607
|
+
value: input.minItems
|
|
608
|
+
}, _errorFactory)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
609
|
+
method: "typia.assertEquals",
|
|
610
|
+
path: _path + ".maxItems",
|
|
611
|
+
expected: "number & Type<\"uint64\">",
|
|
612
|
+
value: input.maxItems
|
|
613
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
614
|
+
method: "typia.assertEquals",
|
|
615
|
+
path: _path + ".maxItems",
|
|
616
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
617
|
+
value: input.maxItems
|
|
618
|
+
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
619
|
+
method: "typia.assertEquals",
|
|
620
|
+
path: _path + ".type",
|
|
621
|
+
expected: "\"array\"",
|
|
622
|
+
value: input.type
|
|
623
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
624
|
+
method: "typia.assertEquals",
|
|
625
|
+
path: _path + ".description",
|
|
626
|
+
expected: "string",
|
|
627
|
+
value: input.description
|
|
628
|
+
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
629
|
+
if (["items", "uniqueItems", "minItems", "maxItems", "type", "description"].some(prop => key === prop))
|
|
630
|
+
return true;
|
|
631
|
+
const value = input[key];
|
|
632
|
+
if (undefined === value)
|
|
633
|
+
return true;
|
|
634
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
635
|
+
method: "typia.assertEquals",
|
|
636
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
637
|
+
expected: "undefined",
|
|
638
|
+
value: value
|
|
639
|
+
}, _errorFactory);
|
|
640
|
+
}))); const _ao7 = (input, _path, _exceptionable = true) => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
641
|
+
method: "typia.assertEquals",
|
|
642
|
+
path: _path + ".minimum",
|
|
643
|
+
expected: "number & Type<\"int64\">",
|
|
644
|
+
value: input.minimum
|
|
645
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
646
|
+
method: "typia.assertEquals",
|
|
647
|
+
path: _path + ".minimum",
|
|
648
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
649
|
+
value: input.minimum
|
|
650
|
+
}, _errorFactory)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
651
|
+
method: "typia.assertEquals",
|
|
652
|
+
path: _path + ".maximum",
|
|
653
|
+
expected: "number & Type<\"int64\">",
|
|
654
|
+
value: input.maximum
|
|
655
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
656
|
+
method: "typia.assertEquals",
|
|
657
|
+
path: _path + ".maximum",
|
|
658
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
659
|
+
value: input.maximum
|
|
660
|
+
}, _errorFactory)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
661
|
+
method: "typia.assertEquals",
|
|
662
|
+
path: _path + ".exclusiveMinimum",
|
|
663
|
+
expected: "(number | undefined)",
|
|
664
|
+
value: input.exclusiveMinimum
|
|
665
|
+
}, _errorFactory)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
666
|
+
method: "typia.assertEquals",
|
|
667
|
+
path: _path + ".exclusiveMaximum",
|
|
668
|
+
expected: "(number | undefined)",
|
|
669
|
+
value: input.exclusiveMaximum
|
|
670
|
+
}, _errorFactory)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
671
|
+
method: "typia.assertEquals",
|
|
672
|
+
path: _path + ".multipleOf",
|
|
673
|
+
expected: "number & Type<\"uint64\">",
|
|
674
|
+
value: input.multipleOf
|
|
675
|
+
}, _errorFactory)) && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
676
|
+
method: "typia.assertEquals",
|
|
677
|
+
path: _path + ".multipleOf",
|
|
678
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
679
|
+
value: input.multipleOf
|
|
680
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
681
|
+
method: "typia.assertEquals",
|
|
682
|
+
path: _path + ".multipleOf",
|
|
683
|
+
expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
|
|
684
|
+
value: input.multipleOf
|
|
685
|
+
}, _errorFactory)) && ("integer" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
686
|
+
method: "typia.assertEquals",
|
|
687
|
+
path: _path + ".type",
|
|
688
|
+
expected: "\"integer\"",
|
|
689
|
+
value: input.type
|
|
690
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
691
|
+
if (["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "type"].some(prop => key === prop))
|
|
692
|
+
return true;
|
|
693
|
+
const value = input[key];
|
|
694
|
+
if (undefined === value)
|
|
695
|
+
return true;
|
|
696
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
697
|
+
method: "typia.assertEquals",
|
|
698
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
699
|
+
expected: "undefined",
|
|
700
|
+
value: value
|
|
701
|
+
}, _errorFactory);
|
|
702
|
+
}))); const _ao8 = (input, _path, _exceptionable = true) => (undefined === input.minimum || "number" === typeof input.minimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
703
|
+
method: "typia.assertEquals",
|
|
704
|
+
path: _path + ".minimum",
|
|
705
|
+
expected: "(number | undefined)",
|
|
706
|
+
value: input.minimum
|
|
707
|
+
}, _errorFactory)) && (undefined === input.maximum || "number" === typeof input.maximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
708
|
+
method: "typia.assertEquals",
|
|
709
|
+
path: _path + ".maximum",
|
|
710
|
+
expected: "(number | undefined)",
|
|
711
|
+
value: input.maximum
|
|
712
|
+
}, _errorFactory)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
713
|
+
method: "typia.assertEquals",
|
|
714
|
+
path: _path + ".exclusiveMinimum",
|
|
715
|
+
expected: "(number | undefined)",
|
|
716
|
+
value: input.exclusiveMinimum
|
|
717
|
+
}, _errorFactory)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
718
|
+
method: "typia.assertEquals",
|
|
719
|
+
path: _path + ".exclusiveMaximum",
|
|
720
|
+
expected: "(number | undefined)",
|
|
721
|
+
value: input.exclusiveMaximum
|
|
722
|
+
}, _errorFactory)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
723
|
+
method: "typia.assertEquals",
|
|
724
|
+
path: _path + ".multipleOf",
|
|
725
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
726
|
+
value: input.multipleOf
|
|
727
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
728
|
+
method: "typia.assertEquals",
|
|
729
|
+
path: _path + ".multipleOf",
|
|
730
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
731
|
+
value: input.multipleOf
|
|
732
|
+
}, _errorFactory)) && ("number" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
733
|
+
method: "typia.assertEquals",
|
|
734
|
+
path: _path + ".type",
|
|
735
|
+
expected: "\"number\"",
|
|
736
|
+
value: input.type
|
|
737
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
738
|
+
if (["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "type"].some(prop => key === prop))
|
|
739
|
+
return true;
|
|
740
|
+
const value = input[key];
|
|
741
|
+
if (undefined === value)
|
|
742
|
+
return true;
|
|
743
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
744
|
+
method: "typia.assertEquals",
|
|
745
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
746
|
+
expected: "undefined",
|
|
747
|
+
value: value
|
|
748
|
+
}, _errorFactory);
|
|
749
|
+
}))); const _ao9 = (input, _path, _exceptionable = true) => (undefined === input.format || "string" === typeof input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
750
|
+
method: "typia.assertEquals",
|
|
751
|
+
path: _path + ".format",
|
|
752
|
+
expected: "(string | undefined)",
|
|
753
|
+
value: input.format
|
|
754
|
+
}, _errorFactory)) && (undefined === input.pattern || "string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
755
|
+
method: "typia.assertEquals",
|
|
756
|
+
path: _path + ".pattern",
|
|
757
|
+
expected: "(string | undefined)",
|
|
758
|
+
value: input.pattern
|
|
759
|
+
}, _errorFactory)) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
760
|
+
method: "typia.assertEquals",
|
|
761
|
+
path: _path + ".contentMediaType",
|
|
762
|
+
expected: "(string | undefined)",
|
|
763
|
+
value: input.contentMediaType
|
|
764
|
+
}, _errorFactory)) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
765
|
+
method: "typia.assertEquals",
|
|
766
|
+
path: _path + ".minLength",
|
|
767
|
+
expected: "number & Type<\"uint64\">",
|
|
768
|
+
value: input.minLength
|
|
769
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
770
|
+
method: "typia.assertEquals",
|
|
771
|
+
path: _path + ".minLength",
|
|
772
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
773
|
+
value: input.minLength
|
|
774
|
+
}, _errorFactory)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
775
|
+
method: "typia.assertEquals",
|
|
776
|
+
path: _path + ".maxLength",
|
|
777
|
+
expected: "number & Type<\"uint64\">",
|
|
778
|
+
value: input.maxLength
|
|
779
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
780
|
+
method: "typia.assertEquals",
|
|
781
|
+
path: _path + ".maxLength",
|
|
782
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
783
|
+
value: input.maxLength
|
|
784
|
+
}, _errorFactory)) && ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
785
|
+
method: "typia.assertEquals",
|
|
786
|
+
path: _path + ".type",
|
|
787
|
+
expected: "\"string\"",
|
|
788
|
+
value: input.type
|
|
789
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
790
|
+
if (["format", "pattern", "contentMediaType", "minLength", "maxLength", "type"].some(prop => key === prop))
|
|
791
|
+
return true;
|
|
792
|
+
const value = input[key];
|
|
793
|
+
if (undefined === value)
|
|
794
|
+
return true;
|
|
795
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
796
|
+
method: "typia.assertEquals",
|
|
797
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
798
|
+
expected: "undefined",
|
|
799
|
+
value: value
|
|
800
|
+
}, _errorFactory);
|
|
801
|
+
}))); const _ao10 = (input, _path, _exceptionable = true) => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
802
|
+
method: "typia.assertEquals",
|
|
803
|
+
path: _path + "[\"const\"]",
|
|
804
|
+
expected: "(boolean | number | string)",
|
|
805
|
+
value: input["const"]
|
|
806
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
807
|
+
if (["const"].some(prop => key === prop))
|
|
808
|
+
return true;
|
|
809
|
+
const value = input[key];
|
|
810
|
+
if (undefined === value)
|
|
811
|
+
return true;
|
|
812
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
813
|
+
method: "typia.assertEquals",
|
|
814
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
815
|
+
expected: "undefined",
|
|
816
|
+
value: value
|
|
817
|
+
}, _errorFactory);
|
|
818
|
+
}))); const _ao11 = (input, _path, _exceptionable = true) => ("boolean" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
819
|
+
method: "typia.assertEquals",
|
|
820
|
+
path: _path + ".type",
|
|
821
|
+
expected: "\"boolean\"",
|
|
822
|
+
value: input.type
|
|
823
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
824
|
+
if (["type"].some(prop => key === prop))
|
|
825
|
+
return true;
|
|
826
|
+
const value = input[key];
|
|
827
|
+
if (undefined === value)
|
|
828
|
+
return true;
|
|
829
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
830
|
+
method: "typia.assertEquals",
|
|
831
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
832
|
+
expected: "undefined",
|
|
833
|
+
value: value
|
|
834
|
+
}, _errorFactory);
|
|
835
|
+
}))); const _ao12 = (input, _path, _exceptionable = true) => (("object" === typeof input.items && null !== input.items || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
836
|
+
method: "typia.assertEquals",
|
|
837
|
+
path: _path + ".items",
|
|
838
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
839
|
+
value: input.items
|
|
840
|
+
}, _errorFactory)) && _au2(input.items, _path + ".items", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
841
|
+
method: "typia.assertEquals",
|
|
842
|
+
path: _path + ".items",
|
|
843
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
844
|
+
value: input.items
|
|
845
|
+
}, _errorFactory)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
846
|
+
method: "typia.assertEquals",
|
|
847
|
+
path: _path + ".uniqueItems",
|
|
848
|
+
expected: "(boolean | undefined)",
|
|
849
|
+
value: input.uniqueItems
|
|
850
|
+
}, _errorFactory)) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
851
|
+
method: "typia.assertEquals",
|
|
852
|
+
path: _path + ".minItems",
|
|
853
|
+
expected: "number & Type<\"uint64\">",
|
|
854
|
+
value: input.minItems
|
|
855
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
856
|
+
method: "typia.assertEquals",
|
|
857
|
+
path: _path + ".minItems",
|
|
858
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
859
|
+
value: input.minItems
|
|
860
|
+
}, _errorFactory)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
861
|
+
method: "typia.assertEquals",
|
|
862
|
+
path: _path + ".maxItems",
|
|
863
|
+
expected: "number & Type<\"uint64\">",
|
|
864
|
+
value: input.maxItems
|
|
865
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
866
|
+
method: "typia.assertEquals",
|
|
867
|
+
path: _path + ".maxItems",
|
|
868
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
869
|
+
value: input.maxItems
|
|
870
|
+
}, _errorFactory)) && ("array" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
871
|
+
method: "typia.assertEquals",
|
|
872
|
+
path: _path + ".type",
|
|
873
|
+
expected: "\"array\"",
|
|
874
|
+
value: input.type
|
|
875
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
876
|
+
if (["items", "uniqueItems", "minItems", "maxItems", "type"].some(prop => key === prop))
|
|
877
|
+
return true;
|
|
878
|
+
const value = input[key];
|
|
879
|
+
if (undefined === value)
|
|
880
|
+
return true;
|
|
881
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
882
|
+
method: "typia.assertEquals",
|
|
883
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
884
|
+
expected: "undefined",
|
|
885
|
+
value: value
|
|
886
|
+
}, _errorFactory);
|
|
887
|
+
}))); const _ao13 = (input, _path, _exceptionable = true) => (("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
888
|
+
method: "typia.assertEquals",
|
|
889
|
+
path: _path + ".properties",
|
|
890
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
891
|
+
value: input.properties
|
|
892
|
+
}, _errorFactory)) && _ao0(input.properties, _path + ".properties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
893
|
+
method: "typia.assertEquals",
|
|
894
|
+
path: _path + ".properties",
|
|
895
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
896
|
+
value: input.properties
|
|
897
|
+
}, _errorFactory)) && ((null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
898
|
+
method: "typia.assertEquals",
|
|
899
|
+
path: _path + ".additionalProperties",
|
|
900
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString | false | undefined)",
|
|
901
|
+
value: input.additionalProperties
|
|
902
|
+
}, _errorFactory)) && (undefined === input.additionalProperties || false === input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
903
|
+
method: "typia.assertEquals",
|
|
904
|
+
path: _path + ".additionalProperties",
|
|
905
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString | false | undefined)",
|
|
906
|
+
value: input.additionalProperties
|
|
907
|
+
}, _errorFactory)) && _au2(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
908
|
+
method: "typia.assertEquals",
|
|
909
|
+
path: _path + ".additionalProperties",
|
|
910
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString | false | undefined)",
|
|
911
|
+
value: input.additionalProperties
|
|
912
|
+
}, _errorFactory))) && ((Array.isArray(input.required) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
913
|
+
method: "typia.assertEquals",
|
|
914
|
+
path: _path + ".required",
|
|
915
|
+
expected: "Array<string>",
|
|
916
|
+
value: input.required
|
|
917
|
+
}, _errorFactory)) && input.required.every((elem, _index5) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
918
|
+
method: "typia.assertEquals",
|
|
919
|
+
path: _path + ".required[" + _index5 + "]",
|
|
920
|
+
expected: "string",
|
|
921
|
+
value: elem
|
|
922
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
923
|
+
method: "typia.assertEquals",
|
|
924
|
+
path: _path + ".required",
|
|
925
|
+
expected: "Array<string>",
|
|
926
|
+
value: input.required
|
|
927
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
928
|
+
method: "typia.assertEquals",
|
|
929
|
+
path: _path + ".type",
|
|
930
|
+
expected: "\"object\"",
|
|
931
|
+
value: input.type
|
|
932
|
+
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
933
|
+
if (["properties", "additionalProperties", "required", "type"].some(prop => key === prop))
|
|
934
|
+
return true;
|
|
935
|
+
const value = input[key];
|
|
936
|
+
if (undefined === value)
|
|
937
|
+
return true;
|
|
938
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
939
|
+
method: "typia.assertEquals",
|
|
940
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
941
|
+
expected: "undefined",
|
|
942
|
+
value: value
|
|
943
|
+
}, _errorFactory);
|
|
944
|
+
}))); const _ao14 = (input, _path, _exceptionable = true) => ("string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
945
|
+
method: "typia.assertEquals",
|
|
946
|
+
path: _path + ".$ref",
|
|
947
|
+
expected: "string",
|
|
948
|
+
value: input.$ref
|
|
949
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
950
|
+
if (["$ref"].some(prop => key === prop))
|
|
951
|
+
return true;
|
|
952
|
+
const value = input[key];
|
|
953
|
+
if (undefined === value)
|
|
954
|
+
return true;
|
|
955
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
956
|
+
method: "typia.assertEquals",
|
|
957
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
958
|
+
expected: "undefined",
|
|
959
|
+
value: value
|
|
960
|
+
}, _errorFactory);
|
|
961
|
+
}))); const _ao15 = (input, _path, _exceptionable = true) => ((Array.isArray(input.oneOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
962
|
+
method: "typia.assertEquals",
|
|
963
|
+
path: _path + ".oneOf",
|
|
964
|
+
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
965
|
+
value: input.oneOf
|
|
966
|
+
}, _errorFactory)) && input.oneOf.every((elem, _index6) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
967
|
+
method: "typia.assertEquals",
|
|
968
|
+
path: _path + ".oneOf[" + _index6 + "]",
|
|
969
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
970
|
+
value: elem
|
|
971
|
+
}, _errorFactory)) && _au0(elem, _path + ".oneOf[" + _index6 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
972
|
+
method: "typia.assertEquals",
|
|
973
|
+
path: _path + ".oneOf[" + _index6 + "]",
|
|
974
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
975
|
+
value: elem
|
|
976
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
977
|
+
method: "typia.assertEquals",
|
|
978
|
+
path: _path + ".oneOf",
|
|
979
|
+
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
980
|
+
value: input.oneOf
|
|
981
|
+
}, _errorFactory)) && (undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
982
|
+
method: "typia.assertEquals",
|
|
983
|
+
path: _path + ".discriminator",
|
|
984
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
985
|
+
value: input.discriminator
|
|
986
|
+
}, _errorFactory)) && _ao17(input.discriminator, _path + ".discriminator", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
987
|
+
method: "typia.assertEquals",
|
|
988
|
+
path: _path + ".discriminator",
|
|
989
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
990
|
+
value: input.discriminator
|
|
991
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
992
|
+
if (["oneOf", "discriminator"].some(prop => key === prop))
|
|
993
|
+
return true;
|
|
994
|
+
const value = input[key];
|
|
995
|
+
if (undefined === value)
|
|
996
|
+
return true;
|
|
997
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
998
|
+
method: "typia.assertEquals",
|
|
999
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1000
|
+
expected: "undefined",
|
|
1001
|
+
value: value
|
|
1002
|
+
}, _errorFactory);
|
|
1003
|
+
}))); const _ao16 = (input, _path, _exceptionable = true) => ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1004
|
+
method: "typia.assertEquals",
|
|
1005
|
+
path: _path + ".type",
|
|
1006
|
+
expected: "\"null\"",
|
|
1007
|
+
value: input.type
|
|
1008
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
1009
|
+
if (["type"].some(prop => key === prop))
|
|
1010
|
+
return true;
|
|
1011
|
+
const value = input[key];
|
|
1012
|
+
if (undefined === value)
|
|
1013
|
+
return true;
|
|
1014
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1015
|
+
method: "typia.assertEquals",
|
|
1016
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1017
|
+
expected: "undefined",
|
|
1018
|
+
value: value
|
|
1019
|
+
}, _errorFactory);
|
|
1020
|
+
}))); const _ao17 = (input, _path, _exceptionable = true) => ("string" === typeof input.propertyName || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1021
|
+
method: "typia.assertEquals",
|
|
1022
|
+
path: _path + ".propertyName",
|
|
1023
|
+
expected: "string",
|
|
1024
|
+
value: input.propertyName
|
|
1025
|
+
}, _errorFactory)) && (undefined === input.mapping || ("object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1026
|
+
method: "typia.assertEquals",
|
|
1027
|
+
path: _path + ".mapping",
|
|
1028
|
+
expected: "(Record<string, string> | undefined)",
|
|
1029
|
+
value: input.mapping
|
|
1030
|
+
}, _errorFactory)) && _ao18(input.mapping, _path + ".mapping", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1031
|
+
method: "typia.assertEquals",
|
|
1032
|
+
path: _path + ".mapping",
|
|
1033
|
+
expected: "(Record<string, string> | undefined)",
|
|
1034
|
+
value: input.mapping
|
|
1035
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
1036
|
+
if (["propertyName", "mapping"].some(prop => key === prop))
|
|
1037
|
+
return true;
|
|
1038
|
+
const value = input[key];
|
|
1039
|
+
if (undefined === value)
|
|
1040
|
+
return true;
|
|
1041
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1042
|
+
method: "typia.assertEquals",
|
|
1043
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1044
|
+
expected: "undefined",
|
|
1045
|
+
value: value
|
|
1046
|
+
}, _errorFactory);
|
|
1047
|
+
}))); const _ao18 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1048
|
+
const value = input[key];
|
|
1049
|
+
if (undefined === value)
|
|
1050
|
+
return true;
|
|
1051
|
+
return "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1052
|
+
method: "typia.assertEquals",
|
|
1053
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1054
|
+
expected: "string",
|
|
1055
|
+
value: value
|
|
1056
|
+
}, _errorFactory);
|
|
1057
|
+
}); const _ao19 = (input, _path, _exceptionable = true) => (("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1058
|
+
method: "typia.assertEquals",
|
|
1059
|
+
path: _path + ".properties",
|
|
1060
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
1061
|
+
value: input.properties
|
|
1062
|
+
}, _errorFactory)) && _ao0(input.properties, _path + ".properties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1063
|
+
method: "typia.assertEquals",
|
|
1064
|
+
path: _path + ".properties",
|
|
1065
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
1066
|
+
value: input.properties
|
|
1067
|
+
}, _errorFactory)) && ((null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1068
|
+
method: "typia.assertEquals",
|
|
1069
|
+
path: _path + ".additionalProperties",
|
|
1070
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString | false | undefined)",
|
|
1071
|
+
value: input.additionalProperties
|
|
1072
|
+
}, _errorFactory)) && (undefined === input.additionalProperties || false === input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1073
|
+
method: "typia.assertEquals",
|
|
1074
|
+
path: _path + ".additionalProperties",
|
|
1075
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString | false | undefined)",
|
|
1076
|
+
value: input.additionalProperties
|
|
1077
|
+
}, _errorFactory)) && _au2(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1078
|
+
method: "typia.assertEquals",
|
|
1079
|
+
path: _path + ".additionalProperties",
|
|
1080
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IOneOf | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString | false | undefined)",
|
|
1081
|
+
value: input.additionalProperties
|
|
1082
|
+
}, _errorFactory))) && ((Array.isArray(input.required) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1083
|
+
method: "typia.assertEquals",
|
|
1084
|
+
path: _path + ".required",
|
|
1085
|
+
expected: "Array<string>",
|
|
1086
|
+
value: input.required
|
|
1087
|
+
}, _errorFactory)) && input.required.every((elem, _index7) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1088
|
+
method: "typia.assertEquals",
|
|
1089
|
+
path: _path + ".required[" + _index7 + "]",
|
|
1090
|
+
expected: "string",
|
|
1091
|
+
value: elem
|
|
1092
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1093
|
+
method: "typia.assertEquals",
|
|
1094
|
+
path: _path + ".required",
|
|
1095
|
+
expected: "Array<string>",
|
|
1096
|
+
value: input.required
|
|
1097
|
+
}, _errorFactory)) && ("object" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1098
|
+
method: "typia.assertEquals",
|
|
1099
|
+
path: _path + ".type",
|
|
1100
|
+
expected: "\"object\"",
|
|
1101
|
+
value: input.type
|
|
1102
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1103
|
+
method: "typia.assertEquals",
|
|
1104
|
+
path: _path + ".description",
|
|
1105
|
+
expected: "string",
|
|
1106
|
+
value: input.description
|
|
1107
|
+
}, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
1108
|
+
if (["properties", "additionalProperties", "required", "type", "description"].some(prop => key === prop))
|
|
1109
|
+
return true;
|
|
1110
|
+
const value = input[key];
|
|
1111
|
+
if (undefined === value)
|
|
1112
|
+
return true;
|
|
1113
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1114
|
+
method: "typia.assertEquals",
|
|
1115
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1116
|
+
expected: "undefined",
|
|
1117
|
+
value: value
|
|
1118
|
+
}, _errorFactory);
|
|
1119
|
+
}))); const _ao20 = (input, _path, _exceptionable = true) => ("string" === typeof input.$ref || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1120
|
+
method: "typia.assertEquals",
|
|
1121
|
+
path: _path + ".$ref",
|
|
1122
|
+
expected: "string",
|
|
1123
|
+
value: input.$ref
|
|
1124
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1125
|
+
method: "typia.assertEquals",
|
|
1126
|
+
path: _path + ".description",
|
|
1127
|
+
expected: "string",
|
|
1128
|
+
value: input.description
|
|
1129
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
1130
|
+
if (["$ref", "description"].some(prop => key === prop))
|
|
1131
|
+
return true;
|
|
1132
|
+
const value = input[key];
|
|
1133
|
+
if (undefined === value)
|
|
1134
|
+
return true;
|
|
1135
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1136
|
+
method: "typia.assertEquals",
|
|
1137
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1138
|
+
expected: "undefined",
|
|
1139
|
+
value: value
|
|
1140
|
+
}, _errorFactory);
|
|
1141
|
+
}))); const _ao21 = (input, _path, _exceptionable = true) => ((Array.isArray(input.oneOf) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1142
|
+
method: "typia.assertEquals",
|
|
1143
|
+
path: _path + ".oneOf",
|
|
1144
|
+
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
1145
|
+
value: input.oneOf
|
|
1146
|
+
}, _errorFactory)) && input.oneOf.every((elem, _index8) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1147
|
+
method: "typia.assertEquals",
|
|
1148
|
+
path: _path + ".oneOf[" + _index8 + "]",
|
|
1149
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
1150
|
+
value: elem
|
|
1151
|
+
}, _errorFactory)) && _au0(elem, _path + ".oneOf[" + _index8 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1152
|
+
method: "typia.assertEquals",
|
|
1153
|
+
path: _path + ".oneOf[" + _index8 + "]",
|
|
1154
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
1155
|
+
value: elem
|
|
1156
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1157
|
+
method: "typia.assertEquals",
|
|
1158
|
+
path: _path + ".oneOf",
|
|
1159
|
+
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
1160
|
+
value: input.oneOf
|
|
1161
|
+
}, _errorFactory)) && (undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1162
|
+
method: "typia.assertEquals",
|
|
1163
|
+
path: _path + ".discriminator",
|
|
1164
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
1165
|
+
value: input.discriminator
|
|
1166
|
+
}, _errorFactory)) && _ao17(input.discriminator, _path + ".discriminator", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1167
|
+
method: "typia.assertEquals",
|
|
1168
|
+
path: _path + ".discriminator",
|
|
1169
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
1170
|
+
value: input.discriminator
|
|
1171
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1172
|
+
method: "typia.assertEquals",
|
|
1173
|
+
path: _path + ".description",
|
|
1174
|
+
expected: "string",
|
|
1175
|
+
value: input.description
|
|
1176
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
1177
|
+
if (["oneOf", "discriminator", "description"].some(prop => key === prop))
|
|
1178
|
+
return true;
|
|
1179
|
+
const value = input[key];
|
|
1180
|
+
if (undefined === value)
|
|
1181
|
+
return true;
|
|
1182
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1183
|
+
method: "typia.assertEquals",
|
|
1184
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1185
|
+
expected: "undefined",
|
|
1186
|
+
value: value
|
|
1187
|
+
}, _errorFactory);
|
|
1188
|
+
}))); const _ao22 = (input, _path, _exceptionable = true) => ("null" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1189
|
+
method: "typia.assertEquals",
|
|
1190
|
+
path: _path + ".type",
|
|
1191
|
+
expected: "\"null\"",
|
|
1192
|
+
value: input.type
|
|
1193
|
+
}, _errorFactory)) && ("string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1194
|
+
method: "typia.assertEquals",
|
|
1195
|
+
path: _path + ".description",
|
|
1196
|
+
expected: "string",
|
|
1197
|
+
value: input.description
|
|
1198
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
1199
|
+
if (["type", "description"].some(prop => key === prop))
|
|
1200
|
+
return true;
|
|
1201
|
+
const value = input[key];
|
|
1202
|
+
if (undefined === value)
|
|
1203
|
+
return true;
|
|
1204
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1205
|
+
method: "typia.assertEquals",
|
|
1206
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1207
|
+
expected: "undefined",
|
|
1208
|
+
value: value
|
|
1209
|
+
}, _errorFactory);
|
|
1210
|
+
}))); const _au0 = (input, _path, _exceptionable = true) => (() => {
|
|
1211
|
+
if ("number" === input.type)
|
|
1212
|
+
return _ao8(input, _path, true && _exceptionable);
|
|
1213
|
+
else if ("integer" === input.type)
|
|
1214
|
+
return _ao7(input, _path, true && _exceptionable);
|
|
1215
|
+
else if ("string" === input.type)
|
|
1216
|
+
return _ao9(input, _path, true && _exceptionable);
|
|
1217
|
+
else if (undefined !== input["const"])
|
|
1218
|
+
return _ao10(input, _path, true && _exceptionable);
|
|
1219
|
+
else if ("null" === input.type)
|
|
1220
|
+
return _ao16(input, _path, true && _exceptionable);
|
|
1221
|
+
else if ("boolean" === input.type)
|
|
1222
|
+
return _ao11(input, _path, true && _exceptionable);
|
|
1223
|
+
else if ("array" === input.type)
|
|
1224
|
+
return _ao12(input, _path, true && _exceptionable);
|
|
1225
|
+
else if ("object" === input.type)
|
|
1226
|
+
return _ao13(input, _path, true && _exceptionable);
|
|
1227
|
+
else if (undefined !== input.$ref)
|
|
1228
|
+
return _ao14(input, _path, true && _exceptionable);
|
|
1229
|
+
else
|
|
1230
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1231
|
+
method: "typia.assertEquals",
|
|
1232
|
+
path: _path,
|
|
1233
|
+
expected: "(AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.IString | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference)",
|
|
1234
|
+
value: input
|
|
1235
|
+
}, _errorFactory);
|
|
1236
|
+
})(); const _au1 = (input, _path, _exceptionable = true) => (() => {
|
|
1237
|
+
if (undefined !== input["const"])
|
|
1238
|
+
return _ao1(input, _path, true && _exceptionable);
|
|
1239
|
+
else if ("boolean" === input.type)
|
|
1240
|
+
return _ao2(input, _path, true && _exceptionable);
|
|
1241
|
+
else if ("number" === input.type)
|
|
1242
|
+
return _ao4(input, _path, true && _exceptionable);
|
|
1243
|
+
else if ("integer" === input.type)
|
|
1244
|
+
return _ao3(input, _path, true && _exceptionable);
|
|
1245
|
+
else if ("string" === input.type)
|
|
1246
|
+
return _ao5(input, _path, true && _exceptionable);
|
|
1247
|
+
else if ("array" === input.type)
|
|
1248
|
+
return _ao6(input, _path, true && _exceptionable);
|
|
1249
|
+
else if ("object" === input.type)
|
|
1250
|
+
return _ao19(input, _path, true && _exceptionable);
|
|
1251
|
+
else if (undefined !== input.$ref)
|
|
1252
|
+
return _ao20(input, _path, true && _exceptionable);
|
|
1253
|
+
else if (undefined !== input.oneOf)
|
|
1254
|
+
return _ao21(input, _path, true && _exceptionable);
|
|
1255
|
+
else if ("null" === input.type)
|
|
1256
|
+
return _ao22(input, _path, true && _exceptionable);
|
|
1257
|
+
else
|
|
1258
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1259
|
+
method: "typia.assertEquals",
|
|
1260
|
+
path: _path,
|
|
1261
|
+
expected: "(AutoBeOpenApi.IJsonSchemaDescriptive.IConstant | AutoBeOpenApi.IJsonSchemaDescriptive.IBoolean | AutoBeOpenApi.IJsonSchemaDescriptive.INumber | AutoBeOpenApi.IJsonSchemaDescriptive.IInteger | AutoBeOpenApi.IJsonSchemaDescriptive.IString | AutoBeOpenApi.IJsonSchemaDescriptive.IArray | AutoBeOpenApi.IJsonSchemaDescriptive.IObject | AutoBeOpenApi.IJsonSchemaDescriptive.IReference | AutoBeOpenApi.IJsonSchemaDescriptive.IOneOf | AutoBeOpenApi.IJsonSchemaDescriptive.INull)",
|
|
1262
|
+
value: input
|
|
1263
|
+
}, _errorFactory);
|
|
1264
|
+
})(); const _au2 = (input, _path, _exceptionable = true) => (() => {
|
|
1265
|
+
if ("number" === input.type)
|
|
1266
|
+
return _ao8(input, _path, true && _exceptionable);
|
|
1267
|
+
else if ("integer" === input.type)
|
|
1268
|
+
return _ao7(input, _path, true && _exceptionable);
|
|
1269
|
+
else if ("string" === input.type)
|
|
1270
|
+
return _ao9(input, _path, true && _exceptionable);
|
|
1271
|
+
else if (undefined !== input["const"])
|
|
1272
|
+
return _ao10(input, _path, true && _exceptionable);
|
|
1273
|
+
else if ("null" === input.type)
|
|
1274
|
+
return _ao16(input, _path, true && _exceptionable);
|
|
1275
|
+
else if ("boolean" === input.type)
|
|
1276
|
+
return _ao11(input, _path, true && _exceptionable);
|
|
1277
|
+
else if ("array" === input.type)
|
|
1278
|
+
return _ao12(input, _path, true && _exceptionable);
|
|
1279
|
+
else if ("object" === input.type)
|
|
1280
|
+
return _ao13(input, _path, true && _exceptionable);
|
|
1281
|
+
else if (undefined !== input.$ref)
|
|
1282
|
+
return _ao14(input, _path, true && _exceptionable);
|
|
1283
|
+
else if (undefined !== input.oneOf)
|
|
1284
|
+
return _ao15(input, _path, true && _exceptionable);
|
|
1285
|
+
else
|
|
1286
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1287
|
+
method: "typia.assertEquals",
|
|
1288
|
+
path: _path,
|
|
1289
|
+
expected: "(AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.IString | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IOneOf)",
|
|
1290
|
+
value: input
|
|
1291
|
+
}, _errorFactory);
|
|
1292
|
+
})(); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let _errorFactory; return (input, errorFactory) => {
|
|
1293
|
+
if (false === __is(input)) {
|
|
1294
|
+
_errorFactory = errorFactory;
|
|
1295
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
1296
|
+
method: "typia.assertEquals",
|
|
1297
|
+
path: _path + "",
|
|
1298
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
1299
|
+
value: input
|
|
1300
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
1301
|
+
method: "typia.assertEquals",
|
|
1302
|
+
path: _path + "",
|
|
1303
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
1304
|
+
value: input
|
|
1305
|
+
}, _errorFactory))(input, "$input", true);
|
|
1306
|
+
}
|
|
1307
|
+
return input;
|
|
1308
|
+
}; })()((_a = {
|
|
1309
|
+
version: "3.1",
|
|
1310
|
+
components: {
|
|
1311
|
+
schemas: {
|
|
1312
|
+
"IPage.IPagination": {
|
|
1313
|
+
type: "object",
|
|
1314
|
+
properties: {
|
|
1315
|
+
current: {
|
|
1316
|
+
type: "integer",
|
|
1317
|
+
minimum: 0,
|
|
1318
|
+
description: "Current page number."
|
|
1319
|
+
},
|
|
1320
|
+
limit: {
|
|
1321
|
+
type: "integer",
|
|
1322
|
+
minimum: 0,
|
|
1323
|
+
description: "Limitation of records per a page."
|
|
1324
|
+
},
|
|
1325
|
+
records: {
|
|
1326
|
+
type: "integer",
|
|
1327
|
+
minimum: 0,
|
|
1328
|
+
description: "Total records in the database."
|
|
1329
|
+
},
|
|
1330
|
+
pages: {
|
|
1331
|
+
type: "integer",
|
|
1332
|
+
minimum: 0,
|
|
1333
|
+
description: "Total pages.\n\nEqual to {@link records} / {@link limit} with ceiling."
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
required: [
|
|
1337
|
+
"current",
|
|
1338
|
+
"limit",
|
|
1339
|
+
"records",
|
|
1340
|
+
"pages"
|
|
1341
|
+
],
|
|
1342
|
+
description: "Page information."
|
|
1343
|
+
},
|
|
1344
|
+
IAuthorizationToken: {
|
|
1345
|
+
type: "object",
|
|
1346
|
+
properties: {
|
|
1347
|
+
access: {
|
|
1348
|
+
type: "string",
|
|
1349
|
+
description: "JWT access token for authenticated requests.\n\nThis token should be included in the Authorization header for subsequent\nauthenticated API requests as `Bearer {token}`."
|
|
1350
|
+
},
|
|
1351
|
+
refresh: {
|
|
1352
|
+
type: "string",
|
|
1353
|
+
description: "Refresh token for obtaining new access tokens.\n\nThis token can be used to request new access tokens when the current access\ntoken expires, extending the user's session."
|
|
1354
|
+
},
|
|
1355
|
+
expired_at: {
|
|
1356
|
+
type: "string",
|
|
1357
|
+
format: "date-time",
|
|
1358
|
+
description: "Access token expiration timestamp.\n\nISO 8601 date-time string indicating when the access token will expire and\ncan no longer be used for authentication."
|
|
1359
|
+
},
|
|
1360
|
+
refreshable_until: {
|
|
1361
|
+
type: "string",
|
|
1362
|
+
format: "date-time",
|
|
1363
|
+
description: "Refresh token expiration timestamp.\n\nISO 8601 date-time string indicating the latest time until which the\nrefresh token can be used to obtain new access tokens."
|
|
1364
|
+
}
|
|
1365
|
+
},
|
|
1366
|
+
required: [
|
|
1367
|
+
"access",
|
|
1368
|
+
"refresh",
|
|
1369
|
+
"expired_at",
|
|
1370
|
+
"refreshable_until"
|
|
1371
|
+
],
|
|
1372
|
+
description: "Authorization token response structure.\n\nThis interface defines the structure of the authorization token response\nreturned after successful user authentication. It contains both access and\nrefresh tokens along with their expiration information.\n\nThis token structure is automatically included in API schemas when the system\ndetects authorization roles in the requirements analysis phase. It provides a\nstandard format for JWT-based authentication across the generated backend\napplications."
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
},
|
|
1376
|
+
schemas: [
|
|
1377
|
+
{
|
|
1378
|
+
$ref: "#/components/schemas/IPage.IPagination"
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
$ref: "#/components/schemas/IAuthorizationToken"
|
|
1382
|
+
}
|
|
1383
|
+
]
|
|
1384
|
+
}.components) === null || _a === void 0 ? void 0 : _a.schemas);
|
|
1385
|
+
//# sourceMappingURL=JsonSchemaFactory.js.map
|