@autobe/agent 0.25.0 → 0.25.2
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/AutoBeAgent.js +11 -1
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +1 -0
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeConfigConstant.d.ts +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +13 -13
- package/lib/factory/createAutoBeContext.js +32 -3
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/index.mjs +2585 -1009
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +8 -8
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +2 -2
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +1 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +36 -23
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +22 -42
- package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.d.ts +3 -0
- package/lib/orchestrate/interface/histories/{transformInterfacePrerequisiteHistories.js → transformInterfaceCommonPrerequisiteHistories.js} +4 -4
- package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +3 -3
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.d.ts +3 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js +102 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +25 -9
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +278 -47
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +96 -70
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +3 -3
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +29 -30
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +278 -47
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.d.ts +5 -0
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +713 -0
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +88 -42
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js +82 -14
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +0 -38
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +6 -10
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +3 -3
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.d.ts +52 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +0 -33
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.d.ts +6 -2
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +114 -9
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +46 -3
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.d.ts +3 -4
- package/lib/orchestrate/interface/utils/OperationValidator.js +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +8 -8
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +20 -20
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +20 -20
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +30 -30
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js +9 -10
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +14 -22
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +6 -6
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +8 -2
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js +1 -2
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.d.ts +2 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +103 -40
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +79 -45
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +16 -16
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +12 -12
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +117 -87
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +2 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +117 -54
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +21 -13
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +52 -26
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +44 -34
- package/lib/orchestrate/realize/utils/InternalFileSystem.js +1 -1
- package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +8 -3
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +44 -17
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +4 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js +24 -9
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -1
- package/lib/orchestrate/realize/utils/printErrorHints.d.ts +8 -0
- package/lib/orchestrate/realize/utils/printErrorHints.js +48 -0
- package/lib/orchestrate/realize/utils/printErrorHints.js.map +1 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.d.ts +1 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +93 -55
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +10 -79
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +15 -65
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +32 -17
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +31 -13
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +5 -5
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +37 -21
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +9 -5
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.d.ts +8 -2
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +11 -7
- package/lib/orchestrate/test/utils/getPrerequisites.d.ts +5 -0
- package/lib/orchestrate/test/utils/getPrerequisites.js +36 -0
- package/lib/orchestrate/test/utils/getPrerequisites.js.map +1 -0
- package/lib/orchestrate/test/utils/getReferenceIds.js +1 -1
- package/lib/orchestrate/test/utils/getReferenceIds.js.map +1 -1
- package/package.json +5 -5
- package/src/AutoBeAgent.ts +17 -1
- package/src/AutoBeMockAgent.ts +1 -0
- package/src/constants/AutoBeConfigConstant.ts +1 -1
- package/src/constants/AutoBeSystemPromptConstant.ts +13 -13
- package/src/factory/createAutoBeContext.ts +33 -3
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +2 -2
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +2 -2
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +25 -45
- package/src/orchestrate/interface/histories/{transformInterfacePrerequisiteHistories.ts → transformInterfaceCommonPrerequisiteHistories.ts} +1 -1
- package/src/orchestrate/interface/histories/transformInterfaceGroupHistories.ts +4 -2
- package/src/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.ts +118 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +43 -17
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +12 -33
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +5 -5
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +274 -0
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +1 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +1 -1
- package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +0 -39
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +6 -10
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +4 -5
- package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.ts +58 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +0 -34
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +92 -4
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +49 -3
- package/src/orchestrate/interface/utils/OperationValidator.ts +9 -7
- package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +9 -10
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +13 -24
- package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +6 -6
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +6 -4
- package/src/orchestrate/realize/internal/compileRealizeFiles.ts +1 -5
- package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +84 -17
- package/src/orchestrate/realize/orchestrateRealize.ts +123 -74
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +33 -6
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +14 -4
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +21 -13
- package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +54 -29
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +46 -35
- package/src/orchestrate/realize/utils/InternalFileSystem.ts +1 -1
- package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +54 -22
- package/src/orchestrate/realize/utils/getRealizeWriteImportStatements.ts +28 -16
- package/src/orchestrate/realize/utils/printErrorHints.ts +55 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +99 -102
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +18 -91
- package/src/orchestrate/test/histories/transformTestScenarioReviewHistories.ts +17 -90
- package/src/orchestrate/test/orchestrateTestCorrect.ts +7 -6
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +13 -1
- package/src/orchestrate/test/orchestrateTestScenario.ts +12 -6
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +3 -3
- package/src/orchestrate/test/orchestrateTestWrite.ts +7 -6
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +9 -228
- package/src/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.ts +8 -2
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +11 -78
- package/src/orchestrate/test/utils/getPrerequisites.ts +51 -0
- package/src/orchestrate/test/utils/getReferenceIds.ts +2 -1
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +0 -3
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +0 -6
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js +0 -22
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
- package/src/orchestrate/interface/utils/OpenApiEndpointComparator.ts +0 -23
|
@@ -473,11 +473,11 @@ const claude = {
|
|
|
473
473
|
value: input.modifications
|
|
474
474
|
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
475
475
|
path: _path + ".name",
|
|
476
|
-
expected: "string &
|
|
476
|
+
expected: "string & SnakeCasePattern",
|
|
477
477
|
value: input.name
|
|
478
478
|
})) || _report(_exceptionable, {
|
|
479
479
|
path: _path + ".name",
|
|
480
|
-
expected: "(string &
|
|
480
|
+
expected: "(string & SnakeCasePattern)",
|
|
481
481
|
value: input.name
|
|
482
482
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
483
483
|
path: _path + ".description",
|
|
@@ -581,11 +581,11 @@ const claude = {
|
|
|
581
581
|
value: input.ginIndexes
|
|
582
582
|
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
583
583
|
path: _path + ".name",
|
|
584
|
-
expected: "string &
|
|
584
|
+
expected: "string & SnakeCasePattern",
|
|
585
585
|
value: input.name
|
|
586
586
|
})) || _report(_exceptionable, {
|
|
587
587
|
path: _path + ".name",
|
|
588
|
-
expected: "(string &
|
|
588
|
+
expected: "(string & SnakeCasePattern)",
|
|
589
589
|
value: input.name
|
|
590
590
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
591
591
|
path: _path + ".type",
|
|
@@ -597,11 +597,11 @@ const claude = {
|
|
|
597
597
|
value: input.description
|
|
598
598
|
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
599
599
|
path: _path + ".name",
|
|
600
|
-
expected: "string &
|
|
600
|
+
expected: "string & SnakeCasePattern",
|
|
601
601
|
value: input.name
|
|
602
602
|
})) || _report(_exceptionable, {
|
|
603
603
|
path: _path + ".name",
|
|
604
|
-
expected: "(string &
|
|
604
|
+
expected: "(string & SnakeCasePattern)",
|
|
605
605
|
value: input.name
|
|
606
606
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
607
607
|
path: _path + ".type",
|
|
@@ -629,11 +629,11 @@ const claude = {
|
|
|
629
629
|
value: input.nullable
|
|
630
630
|
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
631
631
|
path: _path + ".name",
|
|
632
|
-
expected: "string &
|
|
632
|
+
expected: "string & CamelCasePattern",
|
|
633
633
|
value: input.name
|
|
634
634
|
})) || _report(_exceptionable, {
|
|
635
635
|
path: _path + ".name",
|
|
636
|
-
expected: "(string &
|
|
636
|
+
expected: "(string & CamelCasePattern)",
|
|
637
637
|
value: input.name
|
|
638
638
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
639
639
|
path: _path + ".targetModel",
|
|
@@ -641,11 +641,11 @@ const claude = {
|
|
|
641
641
|
value: input.targetModel
|
|
642
642
|
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
643
643
|
path: _path + ".name",
|
|
644
|
-
expected: "string &
|
|
644
|
+
expected: "string & SnakeCasePattern",
|
|
645
645
|
value: input.name
|
|
646
646
|
})) || _report(_exceptionable, {
|
|
647
647
|
path: _path + ".name",
|
|
648
|
-
expected: "(string &
|
|
648
|
+
expected: "(string & SnakeCasePattern)",
|
|
649
649
|
value: input.name
|
|
650
650
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
651
651
|
path: _path + ".type",
|
|
@@ -1056,11 +1056,11 @@ const collection = {
|
|
|
1056
1056
|
value: input.modifications
|
|
1057
1057
|
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1058
1058
|
path: _path + ".name",
|
|
1059
|
-
expected: "string &
|
|
1059
|
+
expected: "string & SnakeCasePattern",
|
|
1060
1060
|
value: input.name
|
|
1061
1061
|
})) || _report(_exceptionable, {
|
|
1062
1062
|
path: _path + ".name",
|
|
1063
|
-
expected: "(string &
|
|
1063
|
+
expected: "(string & SnakeCasePattern)",
|
|
1064
1064
|
value: input.name
|
|
1065
1065
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
1066
1066
|
path: _path + ".description",
|
|
@@ -1164,11 +1164,11 @@ const collection = {
|
|
|
1164
1164
|
value: input.ginIndexes
|
|
1165
1165
|
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1166
1166
|
path: _path + ".name",
|
|
1167
|
-
expected: "string &
|
|
1167
|
+
expected: "string & SnakeCasePattern",
|
|
1168
1168
|
value: input.name
|
|
1169
1169
|
})) || _report(_exceptionable, {
|
|
1170
1170
|
path: _path + ".name",
|
|
1171
|
-
expected: "(string &
|
|
1171
|
+
expected: "(string & SnakeCasePattern)",
|
|
1172
1172
|
value: input.name
|
|
1173
1173
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
1174
1174
|
path: _path + ".type",
|
|
@@ -1180,11 +1180,11 @@ const collection = {
|
|
|
1180
1180
|
value: input.description
|
|
1181
1181
|
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1182
1182
|
path: _path + ".name",
|
|
1183
|
-
expected: "string &
|
|
1183
|
+
expected: "string & SnakeCasePattern",
|
|
1184
1184
|
value: input.name
|
|
1185
1185
|
})) || _report(_exceptionable, {
|
|
1186
1186
|
path: _path + ".name",
|
|
1187
|
-
expected: "(string &
|
|
1187
|
+
expected: "(string & SnakeCasePattern)",
|
|
1188
1188
|
value: input.name
|
|
1189
1189
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
1190
1190
|
path: _path + ".type",
|
|
@@ -1212,11 +1212,11 @@ const collection = {
|
|
|
1212
1212
|
value: input.nullable
|
|
1213
1213
|
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
1214
1214
|
path: _path + ".name",
|
|
1215
|
-
expected: "string &
|
|
1215
|
+
expected: "string & CamelCasePattern",
|
|
1216
1216
|
value: input.name
|
|
1217
1217
|
})) || _report(_exceptionable, {
|
|
1218
1218
|
path: _path + ".name",
|
|
1219
|
-
expected: "(string &
|
|
1219
|
+
expected: "(string & CamelCasePattern)",
|
|
1220
1220
|
value: input.name
|
|
1221
1221
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
1222
1222
|
path: _path + ".targetModel",
|
|
@@ -1224,11 +1224,11 @@ const collection = {
|
|
|
1224
1224
|
value: input.targetModel
|
|
1225
1225
|
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1226
1226
|
path: _path + ".name",
|
|
1227
|
-
expected: "string &
|
|
1227
|
+
expected: "string & SnakeCasePattern",
|
|
1228
1228
|
value: input.name
|
|
1229
1229
|
})) || _report(_exceptionable, {
|
|
1230
1230
|
path: _path + ".name",
|
|
1231
|
-
expected: "(string &
|
|
1231
|
+
expected: "(string & SnakeCasePattern)",
|
|
1232
1232
|
value: input.name
|
|
1233
1233
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
1234
1234
|
path: _path + ".type",
|
|
@@ -159,11 +159,11 @@ function createController(ctx, props) {
|
|
|
159
159
|
value: input.models
|
|
160
160
|
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
161
161
|
path: _path + ".name",
|
|
162
|
-
expected: "string &
|
|
162
|
+
expected: "string & SnakeCasePattern",
|
|
163
163
|
value: input.name
|
|
164
164
|
})) || _report(_exceptionable, {
|
|
165
165
|
path: _path + ".name",
|
|
166
|
-
expected: "(string &
|
|
166
|
+
expected: "(string & SnakeCasePattern)",
|
|
167
167
|
value: input.name
|
|
168
168
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
169
169
|
path: _path + ".description",
|
|
@@ -267,11 +267,11 @@ function createController(ctx, props) {
|
|
|
267
267
|
value: input.ginIndexes
|
|
268
268
|
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
269
269
|
path: _path + ".name",
|
|
270
|
-
expected: "string &
|
|
270
|
+
expected: "string & SnakeCasePattern",
|
|
271
271
|
value: input.name
|
|
272
272
|
})) || _report(_exceptionable, {
|
|
273
273
|
path: _path + ".name",
|
|
274
|
-
expected: "(string &
|
|
274
|
+
expected: "(string & SnakeCasePattern)",
|
|
275
275
|
value: input.name
|
|
276
276
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
277
277
|
path: _path + ".type",
|
|
@@ -283,11 +283,11 @@ function createController(ctx, props) {
|
|
|
283
283
|
value: input.description
|
|
284
284
|
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
285
285
|
path: _path + ".name",
|
|
286
|
-
expected: "string &
|
|
286
|
+
expected: "string & SnakeCasePattern",
|
|
287
287
|
value: input.name
|
|
288
288
|
})) || _report(_exceptionable, {
|
|
289
289
|
path: _path + ".name",
|
|
290
|
-
expected: "(string &
|
|
290
|
+
expected: "(string & SnakeCasePattern)",
|
|
291
291
|
value: input.name
|
|
292
292
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
293
293
|
path: _path + ".type",
|
|
@@ -315,11 +315,11 @@ function createController(ctx, props) {
|
|
|
315
315
|
value: input.nullable
|
|
316
316
|
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
317
317
|
path: _path + ".name",
|
|
318
|
-
expected: "string &
|
|
318
|
+
expected: "string & CamelCasePattern",
|
|
319
319
|
value: input.name
|
|
320
320
|
})) || _report(_exceptionable, {
|
|
321
321
|
path: _path + ".name",
|
|
322
|
-
expected: "(string &
|
|
322
|
+
expected: "(string & CamelCasePattern)",
|
|
323
323
|
value: input.name
|
|
324
324
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
325
325
|
path: _path + ".targetModel",
|
|
@@ -327,11 +327,11 @@ function createController(ctx, props) {
|
|
|
327
327
|
value: input.targetModel
|
|
328
328
|
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
329
329
|
path: _path + ".name",
|
|
330
|
-
expected: "string &
|
|
330
|
+
expected: "string & SnakeCasePattern",
|
|
331
331
|
value: input.name
|
|
332
332
|
})) || _report(_exceptionable, {
|
|
333
333
|
path: _path + ".name",
|
|
334
|
-
expected: "(string &
|
|
334
|
+
expected: "(string & SnakeCasePattern)",
|
|
335
335
|
value: input.name
|
|
336
336
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
337
337
|
path: _path + ".type",
|
|
@@ -794,11 +794,11 @@ const collection = {
|
|
|
794
794
|
value: input.models
|
|
795
795
|
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
796
796
|
path: _path + ".name",
|
|
797
|
-
expected: "string &
|
|
797
|
+
expected: "string & SnakeCasePattern",
|
|
798
798
|
value: input.name
|
|
799
799
|
})) || _report(_exceptionable, {
|
|
800
800
|
path: _path + ".name",
|
|
801
|
-
expected: "(string &
|
|
801
|
+
expected: "(string & SnakeCasePattern)",
|
|
802
802
|
value: input.name
|
|
803
803
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
804
804
|
path: _path + ".description",
|
|
@@ -902,11 +902,11 @@ const collection = {
|
|
|
902
902
|
value: input.ginIndexes
|
|
903
903
|
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
904
904
|
path: _path + ".name",
|
|
905
|
-
expected: "string &
|
|
905
|
+
expected: "string & SnakeCasePattern",
|
|
906
906
|
value: input.name
|
|
907
907
|
})) || _report(_exceptionable, {
|
|
908
908
|
path: _path + ".name",
|
|
909
|
-
expected: "(string &
|
|
909
|
+
expected: "(string & SnakeCasePattern)",
|
|
910
910
|
value: input.name
|
|
911
911
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
912
912
|
path: _path + ".type",
|
|
@@ -918,11 +918,11 @@ const collection = {
|
|
|
918
918
|
value: input.description
|
|
919
919
|
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
920
920
|
path: _path + ".name",
|
|
921
|
-
expected: "string &
|
|
921
|
+
expected: "string & SnakeCasePattern",
|
|
922
922
|
value: input.name
|
|
923
923
|
})) || _report(_exceptionable, {
|
|
924
924
|
path: _path + ".name",
|
|
925
|
-
expected: "(string &
|
|
925
|
+
expected: "(string & SnakeCasePattern)",
|
|
926
926
|
value: input.name
|
|
927
927
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
928
928
|
path: _path + ".type",
|
|
@@ -950,11 +950,11 @@ const collection = {
|
|
|
950
950
|
value: input.nullable
|
|
951
951
|
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
952
952
|
path: _path + ".name",
|
|
953
|
-
expected: "string &
|
|
953
|
+
expected: "string & CamelCasePattern",
|
|
954
954
|
value: input.name
|
|
955
955
|
})) || _report(_exceptionable, {
|
|
956
956
|
path: _path + ".name",
|
|
957
|
-
expected: "(string &
|
|
957
|
+
expected: "(string & CamelCasePattern)",
|
|
958
958
|
value: input.name
|
|
959
959
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
960
960
|
path: _path + ".targetModel",
|
|
@@ -962,11 +962,11 @@ const collection = {
|
|
|
962
962
|
value: input.targetModel
|
|
963
963
|
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
964
964
|
path: _path + ".name",
|
|
965
|
-
expected: "string &
|
|
965
|
+
expected: "string & SnakeCasePattern",
|
|
966
966
|
value: input.name
|
|
967
967
|
})) || _report(_exceptionable, {
|
|
968
968
|
path: _path + ".name",
|
|
969
|
-
expected: "(string &
|
|
969
|
+
expected: "(string & SnakeCasePattern)",
|
|
970
970
|
value: input.name
|
|
971
971
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
972
972
|
path: _path + ".type",
|
|
@@ -1399,11 +1399,11 @@ const collection = {
|
|
|
1399
1399
|
value: input.models
|
|
1400
1400
|
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1401
1401
|
path: _path + ".name",
|
|
1402
|
-
expected: "string &
|
|
1402
|
+
expected: "string & SnakeCasePattern",
|
|
1403
1403
|
value: input.name
|
|
1404
1404
|
})) || _report(_exceptionable, {
|
|
1405
1405
|
path: _path + ".name",
|
|
1406
|
-
expected: "(string &
|
|
1406
|
+
expected: "(string & SnakeCasePattern)",
|
|
1407
1407
|
value: input.name
|
|
1408
1408
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
1409
1409
|
path: _path + ".description",
|
|
@@ -1507,11 +1507,11 @@ const collection = {
|
|
|
1507
1507
|
value: input.ginIndexes
|
|
1508
1508
|
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1509
1509
|
path: _path + ".name",
|
|
1510
|
-
expected: "string &
|
|
1510
|
+
expected: "string & SnakeCasePattern",
|
|
1511
1511
|
value: input.name
|
|
1512
1512
|
})) || _report(_exceptionable, {
|
|
1513
1513
|
path: _path + ".name",
|
|
1514
|
-
expected: "(string &
|
|
1514
|
+
expected: "(string & SnakeCasePattern)",
|
|
1515
1515
|
value: input.name
|
|
1516
1516
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
1517
1517
|
path: _path + ".type",
|
|
@@ -1523,11 +1523,11 @@ const collection = {
|
|
|
1523
1523
|
value: input.description
|
|
1524
1524
|
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1525
1525
|
path: _path + ".name",
|
|
1526
|
-
expected: "string &
|
|
1526
|
+
expected: "string & SnakeCasePattern",
|
|
1527
1527
|
value: input.name
|
|
1528
1528
|
})) || _report(_exceptionable, {
|
|
1529
1529
|
path: _path + ".name",
|
|
1530
|
-
expected: "(string &
|
|
1530
|
+
expected: "(string & SnakeCasePattern)",
|
|
1531
1531
|
value: input.name
|
|
1532
1532
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
1533
1533
|
path: _path + ".type",
|
|
@@ -1555,11 +1555,11 @@ const collection = {
|
|
|
1555
1555
|
value: input.nullable
|
|
1556
1556
|
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
1557
1557
|
path: _path + ".name",
|
|
1558
|
-
expected: "string &
|
|
1558
|
+
expected: "string & CamelCasePattern",
|
|
1559
1559
|
value: input.name
|
|
1560
1560
|
})) || _report(_exceptionable, {
|
|
1561
1561
|
path: _path + ".name",
|
|
1562
|
-
expected: "(string &
|
|
1562
|
+
expected: "(string & CamelCasePattern)",
|
|
1563
1563
|
value: input.name
|
|
1564
1564
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
1565
1565
|
path: _path + ".targetModel",
|
|
@@ -1567,11 +1567,11 @@ const collection = {
|
|
|
1567
1567
|
value: input.targetModel
|
|
1568
1568
|
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1569
1569
|
path: _path + ".name",
|
|
1570
|
-
expected: "string &
|
|
1570
|
+
expected: "string & SnakeCasePattern",
|
|
1571
1571
|
value: input.name
|
|
1572
1572
|
})) || _report(_exceptionable, {
|
|
1573
1573
|
path: _path + ".name",
|
|
1574
|
-
expected: "(string &
|
|
1574
|
+
expected: "(string & SnakeCasePattern)",
|
|
1575
1575
|
value: input.name
|
|
1576
1576
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
1577
1577
|
path: _path + ".type",
|