@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
|
@@ -41,9 +41,13 @@ exports.JsonSchemaFactory = void 0;
|
|
|
41
41
|
const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString.js"));
|
|
42
42
|
const __typia_transform__assertGuard = __importStar(require("typia/lib/internal/_assertGuard.js"));
|
|
43
43
|
const utils_1 = require("@autobe/utils");
|
|
44
|
+
const openapi_1 = require("@samchon/openapi");
|
|
44
45
|
const typia_1 = __importDefault(require("typia"));
|
|
45
46
|
var JsonSchemaFactory;
|
|
46
47
|
(function (JsonSchemaFactory) {
|
|
48
|
+
/* -----------------------------------------------------------
|
|
49
|
+
ASSIGNMENTS
|
|
50
|
+
----------------------------------------------------------- */
|
|
47
51
|
JsonSchemaFactory.presets = (typeNames) => {
|
|
48
52
|
const schemas = {};
|
|
49
53
|
for (const [key, value] of Object.entries(DEFAULT_SCHEMAS)) {
|
|
@@ -78,6 +82,63 @@ var JsonSchemaFactory;
|
|
|
78
82
|
value.required.push("token");
|
|
79
83
|
}
|
|
80
84
|
};
|
|
85
|
+
JsonSchemaFactory.finalize = (props) => {
|
|
86
|
+
removeUnused(props.document);
|
|
87
|
+
fixTimestamps(props);
|
|
88
|
+
};
|
|
89
|
+
const removeUnused = (document) => {
|
|
90
|
+
const used = new Set();
|
|
91
|
+
const visit = (schema) => openapi_1.OpenApiTypeChecker.visit({
|
|
92
|
+
components: { schemas: document.components.schemas },
|
|
93
|
+
schema,
|
|
94
|
+
closure: (next) => {
|
|
95
|
+
if (openapi_1.OpenApiTypeChecker.isReference(next)) {
|
|
96
|
+
const key = next.$ref.split("/").pop();
|
|
97
|
+
used.add(key);
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
for (const op of document.operations) {
|
|
102
|
+
if (op.requestBody !== null)
|
|
103
|
+
visit({
|
|
104
|
+
$ref: `#/components/schemas/${op.requestBody.typeName}`,
|
|
105
|
+
});
|
|
106
|
+
if (op.responseBody !== null)
|
|
107
|
+
visit({
|
|
108
|
+
$ref: `#/components/schemas/${op.responseBody.typeName}`,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
for (const key of Object.keys(document.components.schemas))
|
|
112
|
+
if (used.has(key) === false)
|
|
113
|
+
delete document.components.schemas[key];
|
|
114
|
+
};
|
|
115
|
+
const fixTimestamps = (props) => {
|
|
116
|
+
const entireModels = props.application.files
|
|
117
|
+
.map((f) => f.models)
|
|
118
|
+
.flat();
|
|
119
|
+
for (const value of Object.values(props.document.components.schemas)) {
|
|
120
|
+
if (utils_1.AutoBeOpenApiTypeChecker.isObject(value) === false)
|
|
121
|
+
continue;
|
|
122
|
+
const model = value["x-autobe-prisma-schema"]
|
|
123
|
+
? entireModels.find((m) => m.name === value["x-autobe-prisma-schema"])
|
|
124
|
+
: undefined;
|
|
125
|
+
if (model === undefined)
|
|
126
|
+
continue;
|
|
127
|
+
const properties = Object.keys(value.properties);
|
|
128
|
+
for (const key of properties) {
|
|
129
|
+
if (key !== "created_at" &&
|
|
130
|
+
key !== "updated_at" &&
|
|
131
|
+
key !== "deleted_at")
|
|
132
|
+
continue;
|
|
133
|
+
const column = model.plainFields.find((c) => c.name === key);
|
|
134
|
+
if (column === undefined)
|
|
135
|
+
delete value.properties[key];
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
/* -----------------------------------------------------------
|
|
140
|
+
PAGINATION
|
|
141
|
+
----------------------------------------------------------- */
|
|
81
142
|
JsonSchemaFactory.page = (key) => ({
|
|
82
143
|
type: "object",
|
|
83
144
|
properties: {
|
|
@@ -100,7 +161,7 @@ var JsonSchemaFactory;
|
|
|
100
161
|
Collection of records with pagination information.
|
|
101
162
|
`,
|
|
102
163
|
});
|
|
103
|
-
JsonSchemaFactory.
|
|
164
|
+
JsonSchemaFactory.fixPage = (path, input) => {
|
|
104
165
|
if (isRecord(input) === false || isRecord(input[path]) === false)
|
|
105
166
|
return;
|
|
106
167
|
if (input[path].description)
|
|
@@ -210,8 +271,8 @@ const DEFAULT_SCHEMAS = (() => { const _io0 = (input, _exceptionable = true) =>
|
|
|
210
271
|
if (undefined === value)
|
|
211
272
|
return true;
|
|
212
273
|
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))
|
|
274
|
+
})); const _io13 = (input, _exceptionable = true) => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("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 => {
|
|
275
|
+
if (["x-autobe-prisma-schema", "properties", "additionalProperties", "required", "type"].some(prop => key === prop))
|
|
215
276
|
return true;
|
|
216
277
|
const value = input[key];
|
|
217
278
|
if (undefined === value)
|
|
@@ -250,8 +311,8 @@ const DEFAULT_SCHEMAS = (() => { const _io0 = (input, _exceptionable = true) =>
|
|
|
250
311
|
if (undefined === value)
|
|
251
312
|
return true;
|
|
252
313
|
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))
|
|
314
|
+
}); const _io19 = (input, _exceptionable = true) => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("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 => {
|
|
315
|
+
if (["x-autobe-prisma-schema", "properties", "additionalProperties", "required", "type", "description"].some(prop => key === prop))
|
|
255
316
|
return true;
|
|
256
317
|
const value = input[key];
|
|
257
318
|
if (undefined === value)
|
|
@@ -884,7 +945,12 @@ const DEFAULT_SCHEMAS = (() => { const _io0 = (input, _exceptionable = true) =>
|
|
|
884
945
|
expected: "undefined",
|
|
885
946
|
value: value
|
|
886
947
|
}, _errorFactory);
|
|
887
|
-
}))); const _ao13 = (input, _path, _exceptionable = true) => (
|
|
948
|
+
}))); const _ao13 = (input, _path, _exceptionable = true) => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
949
|
+
method: "typia.assertEquals",
|
|
950
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
951
|
+
expected: "(null | string | undefined)",
|
|
952
|
+
value: input["x-autobe-prisma-schema"]
|
|
953
|
+
}, _errorFactory)) && (("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
888
954
|
method: "typia.assertEquals",
|
|
889
955
|
path: _path + ".properties",
|
|
890
956
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
@@ -930,7 +996,7 @@ const DEFAULT_SCHEMAS = (() => { const _io0 = (input, _exceptionable = true) =>
|
|
|
930
996
|
expected: "\"object\"",
|
|
931
997
|
value: input.type
|
|
932
998
|
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
933
|
-
if (["properties", "additionalProperties", "required", "type"].some(prop => key === prop))
|
|
999
|
+
if (["x-autobe-prisma-schema", "properties", "additionalProperties", "required", "type"].some(prop => key === prop))
|
|
934
1000
|
return true;
|
|
935
1001
|
const value = input[key];
|
|
936
1002
|
if (undefined === value)
|
|
@@ -1054,7 +1120,12 @@ const DEFAULT_SCHEMAS = (() => { const _io0 = (input, _exceptionable = true) =>
|
|
|
1054
1120
|
expected: "string",
|
|
1055
1121
|
value: value
|
|
1056
1122
|
}, _errorFactory);
|
|
1057
|
-
}); const _ao19 = (input, _path, _exceptionable = true) => (
|
|
1123
|
+
}); const _ao19 = (input, _path, _exceptionable = true) => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1124
|
+
method: "typia.assertEquals",
|
|
1125
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
1126
|
+
expected: "(null | string | undefined)",
|
|
1127
|
+
value: input["x-autobe-prisma-schema"]
|
|
1128
|
+
}, _errorFactory)) && (("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1058
1129
|
method: "typia.assertEquals",
|
|
1059
1130
|
path: _path + ".properties",
|
|
1060
1131
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
@@ -1105,7 +1176,7 @@ const DEFAULT_SCHEMAS = (() => { const _io0 = (input, _exceptionable = true) =>
|
|
|
1105
1176
|
expected: "string",
|
|
1106
1177
|
value: input.description
|
|
1107
1178
|
}, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
1108
|
-
if (["properties", "additionalProperties", "required", "type", "description"].some(prop => key === prop))
|
|
1179
|
+
if (["x-autobe-prisma-schema", "properties", "additionalProperties", "required", "type", "description"].some(prop => key === prop))
|
|
1109
1180
|
return true;
|
|
1110
1181
|
const value = input[key];
|
|
1111
1182
|
if (undefined === value)
|
|
@@ -1341,6 +1412,37 @@ const DEFAULT_SCHEMAS = (() => { const _io0 = (input, _exceptionable = true) =>
|
|
|
1341
1412
|
],
|
|
1342
1413
|
description: "Page information."
|
|
1343
1414
|
},
|
|
1415
|
+
"IPage.IRequest": {
|
|
1416
|
+
type: "object",
|
|
1417
|
+
properties: {
|
|
1418
|
+
page: {
|
|
1419
|
+
oneOf: [
|
|
1420
|
+
{
|
|
1421
|
+
type: "null"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
type: "integer",
|
|
1425
|
+
minimum: 0
|
|
1426
|
+
}
|
|
1427
|
+
],
|
|
1428
|
+
description: "Page number."
|
|
1429
|
+
},
|
|
1430
|
+
limit: {
|
|
1431
|
+
oneOf: [
|
|
1432
|
+
{
|
|
1433
|
+
type: "null"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
type: "integer",
|
|
1437
|
+
minimum: 0
|
|
1438
|
+
}
|
|
1439
|
+
],
|
|
1440
|
+
description: "Limitation of records per a page."
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
required: [],
|
|
1444
|
+
description: "Page request data"
|
|
1445
|
+
},
|
|
1344
1446
|
IAuthorizationToken: {
|
|
1345
1447
|
type: "object",
|
|
1346
1448
|
properties: {
|
|
@@ -1377,6 +1479,9 @@ const DEFAULT_SCHEMAS = (() => { const _io0 = (input, _exceptionable = true) =>
|
|
|
1377
1479
|
{
|
|
1378
1480
|
$ref: "#/components/schemas/IPage.IPagination"
|
|
1379
1481
|
},
|
|
1482
|
+
{
|
|
1483
|
+
$ref: "#/components/schemas/IPage.IRequest"
|
|
1484
|
+
},
|
|
1380
1485
|
{
|
|
1381
1486
|
$ref: "#/components/schemas/IAuthorizationToken"
|
|
1382
1487
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonSchemaFactory.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/utils/JsonSchemaFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAAqE;AACrE,kDAAoC;AAEpC,IAAiB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"JsonSchemaFactory.js","sourceRoot":"","sources":["../../../../src/or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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGnB,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACG,UAAU,0CAAE,OAAO,CACvB,CAAC"}
|
|
@@ -6,7 +6,8 @@ const Escaper_1 = require("typia/lib/utils/Escaper");
|
|
|
6
6
|
var JsonSchemaValidator;
|
|
7
7
|
(function (JsonSchemaValidator) {
|
|
8
8
|
JsonSchemaValidator.validateSchemas = (props) => {
|
|
9
|
-
|
|
9
|
+
validateAuthorization(props);
|
|
10
|
+
validatePrismaSchema(props.errors);
|
|
10
11
|
for (const key of Object.keys(props.schemas))
|
|
11
12
|
JsonSchemaValidator.validateKey({
|
|
12
13
|
errors: props.errors,
|
|
@@ -31,7 +32,26 @@ var JsonSchemaValidator;
|
|
|
31
32
|
it to a valid variable name at the next time.
|
|
32
33
|
`,
|
|
33
34
|
});
|
|
34
|
-
if (props.key
|
|
35
|
+
if (props.key.endsWith(".IPage")) {
|
|
36
|
+
const expected = `IPage${props.key.substring(0, props.key.length - 6)}`;
|
|
37
|
+
props.errors.push({
|
|
38
|
+
path: `${props.path}[${JSON.stringify(props.key)}]`,
|
|
39
|
+
expected: `"IPage" must be followed by another interface name. Use ${JSON.stringify(expected)} instead.`,
|
|
40
|
+
value: props.key,
|
|
41
|
+
description: utils_1.StringUtil.trim `
|
|
42
|
+
"IPage" is a reserved type name for pagination response.
|
|
43
|
+
The pagination data type name must be post-fixed after "IPage".
|
|
44
|
+
|
|
45
|
+
However, you've defined ${JSON.stringify(props.key)},
|
|
46
|
+
post-fixing ".IPage" after the pagination data type name.
|
|
47
|
+
|
|
48
|
+
Change it to a valid pagination type name to be
|
|
49
|
+
${JSON.stringify(expected)} at the next time. Note that,
|
|
50
|
+
this is not a recommendation, but an instruction you must follow.
|
|
51
|
+
`,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
else if (props.key === "IPageIRequest")
|
|
35
55
|
props.errors.push({
|
|
36
56
|
path: `${props.path}[${JSON.stringify(props.key)}]`,
|
|
37
57
|
expected: `"IPageIRequest" is a mistake. Use "IPage.IRequest" instead.`,
|
|
@@ -91,7 +111,7 @@ var JsonSchemaValidator;
|
|
|
91
111
|
});
|
|
92
112
|
}
|
|
93
113
|
};
|
|
94
|
-
const
|
|
114
|
+
const validateAuthorization = (props) => {
|
|
95
115
|
var _a, _b;
|
|
96
116
|
for (const [key, value] of Object.entries(props.schemas)) {
|
|
97
117
|
if (!key.endsWith(".IAuthorized"))
|
|
@@ -116,5 +136,28 @@ var JsonSchemaValidator;
|
|
|
116
136
|
value.required.push("token");
|
|
117
137
|
}
|
|
118
138
|
};
|
|
139
|
+
const validatePrismaSchema = (errors) => {
|
|
140
|
+
for (const e of errors) {
|
|
141
|
+
if (e.path.endsWith(`.properties["x-autobe-prisma-schema"]`) === false)
|
|
142
|
+
continue;
|
|
143
|
+
e.expected =
|
|
144
|
+
"undefined value (remove this property and re-define it in the root schema)";
|
|
145
|
+
e.description = utils_1.StringUtil.trim `
|
|
146
|
+
You have defined a property named "x-autobe-prisma-schema"
|
|
147
|
+
somewhere wrong place.
|
|
148
|
+
|
|
149
|
+
You have defined a property name "x-autobe-prisma-schema" as
|
|
150
|
+
an object type. However, this "x-autobe-prisma-schema" property
|
|
151
|
+
must be defined only in the root schema object as a metadata,
|
|
152
|
+
not in the nested object property.
|
|
153
|
+
|
|
154
|
+
Remove this property at the next time, and re-define it in the
|
|
155
|
+
root object schema.
|
|
156
|
+
|
|
157
|
+
- Current path (wrong): ${e.path}
|
|
158
|
+
- Must be (object root): ${e.path.replace(`.properties["x-autobe-prisma-schema"]`, `["x-autobe-prisma-schema"]`)}
|
|
159
|
+
`;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
119
162
|
})(JsonSchemaValidator || (exports.JsonSchemaValidator = JsonSchemaValidator = {}));
|
|
120
163
|
//# sourceMappingURL=JsonSchemaValidator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonSchemaValidator.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/utils/JsonSchemaValidator.ts"],"names":[],"mappings":";;;AACA,yCAAqE;AAErE,qDAAkD;AAElD,IAAiB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"JsonSchemaValidator.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/utils/JsonSchemaValidator.ts"],"names":[],"mappings":";;;AACA,yCAAqE;AAErE,qDAAkD;AAElD,IAAiB,mBAAmB,CA2KnC;AA3KD,WAAiB,mBAAmB;IAOrB,mCAAe,GAAG,CAAC,KAAa,EAAQ,EAAE;QACrD,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAC7B,oBAAoB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACnC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YAC1C,oBAAA,WAAW,CAAC;gBACV,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,GAAG;aACJ,CAAC,CAAC;IACP,CAAC,CAAC;IAEW,+BAAW,GAAG,CAAC,KAI3B,EAAQ,EAAE;QACT,MAAM,QAAQ,GAAa,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAChD,IAAI,QAAQ,CAAC,KAAK,CAAC,iBAAO,CAAC,QAAQ,CAAC,KAAK,KAAK;YAC5C,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;gBAChB,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC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A0C;aACL,CAAC;YAErD,MAAA,KAAK,CAAC,QAAQ,oCAAd,KAAK,CAAC,QAAQ,GAAK,EAAE,EAAC;YACtB,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,KAAK;gBAC5C,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjC,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,oBAAoB,GAAG,CAAC,MAA4B,EAAQ,EAAE;QAClE,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;YACvB,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,uCAAuC,CAAC,KAAK,KAAK;gBACpE,SAAS;YACX,CAAC,CAAC,QAAQ;gBACR,4EAA4E,CAAC;YAC/E,CAAC,CAAC,WAAW,GAAG,kBAAU,CAAC,IAAI,CAAA;;;;;;;;;;;;kCAYH,CAAC,CAAC,IAAI;mCACL,CAAC,CAAC,IAAI,CAAC,OAAO,CACvC,uCAAuC,EACvC,4BAA4B,CAC7B;OACF,CAAC;QACJ,CAAC;IACH,CAAC,CAAC;AACJ,CAAC,EA3KgB,mBAAmB,mCAAnB,mBAAmB,QA2KnC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
2
|
import { IValidation } from "typia";
|
|
3
3
|
export declare namespace OperationValidator {
|
|
4
|
-
|
|
4
|
+
const validate: (props: {
|
|
5
5
|
errors: IValidation.IError[];
|
|
6
6
|
path: string;
|
|
7
|
-
operations: Array<Omit<AutoBeOpenApi.IOperation, "authorizationRole" | "authorizationType">>;
|
|
8
|
-
}
|
|
9
|
-
const validate: (props: IProps) => void;
|
|
7
|
+
operations: Array<Omit<AutoBeOpenApi.IOperation, "authorizationRole" | "authorizationType" | "prerequisites">>;
|
|
8
|
+
}) => void;
|
|
10
9
|
}
|
|
@@ -49,7 +49,7 @@ var OperationValidator;
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
// validate duplicated endpoints
|
|
52
|
-
const endpoints = new tstl_1.HashMap(utils_1.
|
|
52
|
+
const endpoints = new tstl_1.HashMap(utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals);
|
|
53
53
|
props.operations.forEach((op, i) => {
|
|
54
54
|
const key = {
|
|
55
55
|
path: op.path,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationValidator.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/utils/OperationValidator.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"OperationValidator.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/utils/OperationValidator.ts"],"names":[],"mappings":";;;AACA,yCAA4E;AAC5E,+BAA+B;AAE/B,qDAAkD;AAElD,0DAAuD;AACvD,+DAA4D;AAE5D,IAAiB,kBAAkB,CAwHlC;AAxHD,WAAiB,kBAAkB;IACpB,2BAAQ,GAAG,CAAC,KASxB,EAAQ,EAAE;QACT,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE;YACjC,8BAA8B;YAC9B,IAAI,EAAE,CAAC,MAAM,KAAK,KAAK,IAAI,EAAE,CAAC,WAAW,KAAK,IAAI;gBAChD,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;oBAChB,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,IAAI,CAAC,eAAe;oBACvC,QAAQ,EACN,qFAAqF;oBACvF,KAAK,EAAE,EAAE,CAAC,WAAW;iBACtB,CAAC,CAAC;YACL,iBAAiB;YACjB,IAAI,iBAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK;gBACrC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;oBAChB,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ;oBAChC,QAAQ,EAAE,uB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D,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACzB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;oBAChB,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ;oBAChC,QAAQ,EAAE,yCAAyC;oBACnD,KAAK,EAAE,EAAE,CAAC,IAAI;oBACd,WAAW,EAAE,kBAAU,CAAC,IAAI,CAAA;4DACsB,EAAE,CAAC,IAAI,eAAe,GAAG;;;;;;;;;cASvE,OAAO;yBACN,GAAG,CACF,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,eAAe,GAAG,GAAG,CAC9D;yBACA,IAAI,CAAC,IAAI,CAAC;WACd;iBACF,CAAC,CAAC;YACL,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,EAxHgB,kBAAkB,kCAAlB,kBAAkB,QAwHlC"}
|
|
@@ -250,7 +250,7 @@ const claude = {
|
|
|
250
250
|
value: input.rationale
|
|
251
251
|
}), (Array.isArray(input.tables) || _report(_exceptionable, {
|
|
252
252
|
path: _path + ".tables",
|
|
253
|
-
expected: "(Array<string &
|
|
253
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
254
254
|
value: input.tables
|
|
255
255
|
})) && ((1 <= input.tables.length || _report(_exceptionable, {
|
|
256
256
|
path: _path + ".tables",
|
|
@@ -258,15 +258,15 @@ const claude = {
|
|
|
258
258
|
value: input.tables
|
|
259
259
|
})) && input.tables.map((elem, _index4) => "string" === typeof elem && (RegExp("^[a-z][a-z0-9_]*$").test(elem) || _report(_exceptionable, {
|
|
260
260
|
path: _path + ".tables[" + _index4 + "]",
|
|
261
|
-
expected: "string &
|
|
261
|
+
expected: "string & SnakeCasePattern",
|
|
262
262
|
value: elem
|
|
263
263
|
})) || _report(_exceptionable, {
|
|
264
264
|
path: _path + ".tables[" + _index4 + "]",
|
|
265
|
-
expected: "(string &
|
|
265
|
+
expected: "(string & SnakeCasePattern)",
|
|
266
266
|
value: elem
|
|
267
267
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
268
268
|
path: _path + ".tables",
|
|
269
|
-
expected: "(Array<string &
|
|
269
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
270
270
|
value: input.tables
|
|
271
271
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
272
272
|
if (false === __is(input)) {
|
|
@@ -445,7 +445,7 @@ const collection = {
|
|
|
445
445
|
value: input.rationale
|
|
446
446
|
}), (Array.isArray(input.tables) || _report(_exceptionable, {
|
|
447
447
|
path: _path + ".tables",
|
|
448
|
-
expected: "(Array<string &
|
|
448
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
449
449
|
value: input.tables
|
|
450
450
|
})) && ((1 <= input.tables.length || _report(_exceptionable, {
|
|
451
451
|
path: _path + ".tables",
|
|
@@ -453,15 +453,15 @@ const collection = {
|
|
|
453
453
|
value: input.tables
|
|
454
454
|
})) && input.tables.map((elem, _index4) => "string" === typeof elem && (RegExp("^[a-z][a-z0-9_]*$").test(elem) || _report(_exceptionable, {
|
|
455
455
|
path: _path + ".tables[" + _index4 + "]",
|
|
456
|
-
expected: "string &
|
|
456
|
+
expected: "string & SnakeCasePattern",
|
|
457
457
|
value: elem
|
|
458
458
|
})) || _report(_exceptionable, {
|
|
459
459
|
path: _path + ".tables[" + _index4 + "]",
|
|
460
|
-
expected: "(string &
|
|
460
|
+
expected: "(string & SnakeCasePattern)",
|
|
461
461
|
value: elem
|
|
462
462
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
463
463
|
path: _path + ".tables",
|
|
464
|
-
expected: "(Array<string &
|
|
464
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
465
465
|
value: input.tables
|
|
466
466
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
467
467
|
if (false === __is(input)) {
|
|
@@ -522,11 +522,11 @@ const claude = {
|
|
|
522
522
|
value: input.models
|
|
523
523
|
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
524
524
|
path: _path + ".name",
|
|
525
|
-
expected: "string &
|
|
525
|
+
expected: "string & SnakeCasePattern",
|
|
526
526
|
value: input.name
|
|
527
527
|
})) || _report(_exceptionable, {
|
|
528
528
|
path: _path + ".name",
|
|
529
|
-
expected: "(string &
|
|
529
|
+
expected: "(string & SnakeCasePattern)",
|
|
530
530
|
value: input.name
|
|
531
531
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
532
532
|
path: _path + ".description",
|
|
@@ -630,11 +630,11 @@ const claude = {
|
|
|
630
630
|
value: input.ginIndexes
|
|
631
631
|
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
632
632
|
path: _path + ".name",
|
|
633
|
-
expected: "string &
|
|
633
|
+
expected: "string & SnakeCasePattern",
|
|
634
634
|
value: input.name
|
|
635
635
|
})) || _report(_exceptionable, {
|
|
636
636
|
path: _path + ".name",
|
|
637
|
-
expected: "(string &
|
|
637
|
+
expected: "(string & SnakeCasePattern)",
|
|
638
638
|
value: input.name
|
|
639
639
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
640
640
|
path: _path + ".type",
|
|
@@ -646,11 +646,11 @@ const claude = {
|
|
|
646
646
|
value: input.description
|
|
647
647
|
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
648
648
|
path: _path + ".name",
|
|
649
|
-
expected: "string &
|
|
649
|
+
expected: "string & SnakeCasePattern",
|
|
650
650
|
value: input.name
|
|
651
651
|
})) || _report(_exceptionable, {
|
|
652
652
|
path: _path + ".name",
|
|
653
|
-
expected: "(string &
|
|
653
|
+
expected: "(string & SnakeCasePattern)",
|
|
654
654
|
value: input.name
|
|
655
655
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
656
656
|
path: _path + ".type",
|
|
@@ -678,11 +678,11 @@ const claude = {
|
|
|
678
678
|
value: input.nullable
|
|
679
679
|
})].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, {
|
|
680
680
|
path: _path + ".name",
|
|
681
|
-
expected: "string &
|
|
681
|
+
expected: "string & CamelCasePattern",
|
|
682
682
|
value: input.name
|
|
683
683
|
})) || _report(_exceptionable, {
|
|
684
684
|
path: _path + ".name",
|
|
685
|
-
expected: "(string &
|
|
685
|
+
expected: "(string & CamelCasePattern)",
|
|
686
686
|
value: input.name
|
|
687
687
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
688
688
|
path: _path + ".targetModel",
|
|
@@ -690,11 +690,11 @@ const claude = {
|
|
|
690
690
|
value: input.targetModel
|
|
691
691
|
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
692
692
|
path: _path + ".name",
|
|
693
|
-
expected: "string &
|
|
693
|
+
expected: "string & SnakeCasePattern",
|
|
694
694
|
value: input.name
|
|
695
695
|
})) || _report(_exceptionable, {
|
|
696
696
|
path: _path + ".name",
|
|
697
|
-
expected: "(string &
|
|
697
|
+
expected: "(string & SnakeCasePattern)",
|
|
698
698
|
value: input.name
|
|
699
699
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
700
700
|
path: _path + ".type",
|
|
@@ -1096,11 +1096,11 @@ const collection = {
|
|
|
1096
1096
|
value: input.models
|
|
1097
1097
|
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1098
1098
|
path: _path + ".name",
|
|
1099
|
-
expected: "string &
|
|
1099
|
+
expected: "string & SnakeCasePattern",
|
|
1100
1100
|
value: input.name
|
|
1101
1101
|
})) || _report(_exceptionable, {
|
|
1102
1102
|
path: _path + ".name",
|
|
1103
|
-
expected: "(string &
|
|
1103
|
+
expected: "(string & SnakeCasePattern)",
|
|
1104
1104
|
value: input.name
|
|
1105
1105
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
1106
1106
|
path: _path + ".description",
|
|
@@ -1204,11 +1204,11 @@ const collection = {
|
|
|
1204
1204
|
value: input.ginIndexes
|
|
1205
1205
|
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1206
1206
|
path: _path + ".name",
|
|
1207
|
-
expected: "string &
|
|
1207
|
+
expected: "string & SnakeCasePattern",
|
|
1208
1208
|
value: input.name
|
|
1209
1209
|
})) || _report(_exceptionable, {
|
|
1210
1210
|
path: _path + ".name",
|
|
1211
|
-
expected: "(string &
|
|
1211
|
+
expected: "(string & SnakeCasePattern)",
|
|
1212
1212
|
value: input.name
|
|
1213
1213
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
1214
1214
|
path: _path + ".type",
|
|
@@ -1220,11 +1220,11 @@ const collection = {
|
|
|
1220
1220
|
value: input.description
|
|
1221
1221
|
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1222
1222
|
path: _path + ".name",
|
|
1223
|
-
expected: "string &
|
|
1223
|
+
expected: "string & SnakeCasePattern",
|
|
1224
1224
|
value: input.name
|
|
1225
1225
|
})) || _report(_exceptionable, {
|
|
1226
1226
|
path: _path + ".name",
|
|
1227
|
-
expected: "(string &
|
|
1227
|
+
expected: "(string & SnakeCasePattern)",
|
|
1228
1228
|
value: input.name
|
|
1229
1229
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
1230
1230
|
path: _path + ".type",
|
|
@@ -1252,11 +1252,11 @@ const collection = {
|
|
|
1252
1252
|
value: input.nullable
|
|
1253
1253
|
})].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, {
|
|
1254
1254
|
path: _path + ".name",
|
|
1255
|
-
expected: "string &
|
|
1255
|
+
expected: "string & CamelCasePattern",
|
|
1256
1256
|
value: input.name
|
|
1257
1257
|
})) || _report(_exceptionable, {
|
|
1258
1258
|
path: _path + ".name",
|
|
1259
|
-
expected: "(string &
|
|
1259
|
+
expected: "(string & CamelCasePattern)",
|
|
1260
1260
|
value: input.name
|
|
1261
1261
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
1262
1262
|
path: _path + ".targetModel",
|
|
@@ -1264,11 +1264,11 @@ const collection = {
|
|
|
1264
1264
|
value: input.targetModel
|
|
1265
1265
|
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
1266
1266
|
path: _path + ".name",
|
|
1267
|
-
expected: "string &
|
|
1267
|
+
expected: "string & SnakeCasePattern",
|
|
1268
1268
|
value: input.name
|
|
1269
1269
|
})) || _report(_exceptionable, {
|
|
1270
1270
|
path: _path + ".name",
|
|
1271
|
-
expected: "(string &
|
|
1271
|
+
expected: "(string & SnakeCasePattern)",
|
|
1272
1272
|
value: input.name
|
|
1273
1273
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
1274
1274
|
path: _path + ".type",
|