@autobe/agent 0.27.0 → 0.28.0
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/constants/AutoBeSystemPromptConstant.d.ts +1 -1
- package/lib/context/assertSchemaModel.d.ts +1 -1
- package/lib/context/assertSchemaModel.js +4 -7
- package/lib/context/assertSchemaModel.js.map +1 -1
- package/lib/index.mjs +18395 -8004
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +164 -86
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +637 -321
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +143 -74
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +17 -52
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +25 -22
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +7 -23
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +165 -2
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/orchestrate/facade/createAutoBeFacadeController.js +773 -403
- package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +739 -2
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +1625 -9
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +248 -131
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +255 -133
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +339 -226
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +625 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +776 -3
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +205 -3
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +107 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1664 -9
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +1625 -9
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +389 -196
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1166 -590
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +1184 -599
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +4 -2
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +360 -179
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +396 -197
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +130 -2
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +165 -2
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +130 -2
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +131 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +166 -2
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +255 -3
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +281 -3
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +139 -2
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/package.json +9 -9
- package/src/constants/AutoBeSystemPromptConstant.ts +1 -1
- package/src/context/assertSchemaModel.ts +5 -8
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +7 -9
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +13 -9
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +7 -9
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +19 -54
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +25 -22
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +8 -24
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +15 -1
- package/src/orchestrate/facade/createAutoBeFacadeController.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +13 -9
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +13 -9
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +17 -14
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +14 -1
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +9 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +14 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +11 -1
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +13 -9
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +7 -9
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +7 -10
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +13 -9
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +13 -9
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +11 -1
- package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +15 -1
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +11 -1
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +5 -1
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +1 -1
- package/src/orchestrate/test/orchestrateTestCorrect.ts +11 -1
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +18 -1
- package/src/orchestrate/test/orchestrateTestScenario.ts +11 -1
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +11 -1
- package/src/orchestrate/test/orchestrateTestWrite.ts +11 -1
|
@@ -873,7 +873,11 @@ function createController(props) {
|
|
|
873
873
|
};
|
|
874
874
|
return result;
|
|
875
875
|
};
|
|
876
|
-
const application = collection[props.model === "chatgpt"
|
|
876
|
+
const application = collection[props.model === "chatgpt"
|
|
877
|
+
? "chatgpt"
|
|
878
|
+
: props.model === "gemini"
|
|
879
|
+
? "gemini"
|
|
880
|
+
: "claude"](validate);
|
|
877
881
|
return {
|
|
878
882
|
protocol: "class",
|
|
879
883
|
name: "ContentReviewer",
|
|
@@ -898,13 +902,15 @@ const collection = {
|
|
|
898
902
|
{
|
|
899
903
|
name: "review",
|
|
900
904
|
parameters: {
|
|
901
|
-
description: " Content review results including completeness issues found,\nfixes applied, and modified schemas\n\n------------------------------\n\nDescription of the current {@link IAutoBeInterfaceSchemaContentReviewApplication.IProps} type:\n\n> Output structure for the content review function.\n> \n> Contains the content analysis, completeness fixes, and schemas modified for\n> content quality during the validation process
|
|
905
|
+
description: " Content review results including completeness issues found,\nfixes applied, and modified schemas\n\n------------------------------\n\nDescription of the current {@link IAutoBeInterfaceSchemaContentReviewApplication.IProps} type:\n\n> Output structure for the content review function.\n> \n> Contains the content analysis, completeness fixes, and schemas modified for\n> content quality during the validation process.",
|
|
902
906
|
type: "object",
|
|
903
907
|
properties: {
|
|
904
908
|
think: {
|
|
909
|
+
description: "Content analysis and completeness planning information.",
|
|
905
910
|
$ref: "#/$defs/IAutoBeInterfaceSchemaContentReviewApplication.IThink"
|
|
906
911
|
},
|
|
907
912
|
content: {
|
|
913
|
+
description: "Modified schemas resulting from content and completeness fixes.\n\nContains ONLY the schemas that were modified for content reasons during\nreview. This includes both modified existing schemas and newly created\nvariant schemas.\n\nContent modifications include:\n\n- Adding missing fields from Prisma schema\n- Correcting data type mappings\n- Fixing required field arrays\n- Enhancing or adding descriptions\n- Creating missing variant types (ISummary, IUpdate, etc.)\n- Ensuring cross-variant consistency\n\nReturn empty object {} when all content is already complete and accurate,\nrequiring no modifications.",
|
|
908
914
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
909
915
|
}
|
|
910
916
|
},
|
|
@@ -1171,10 +1177,11 @@ const collection = {
|
|
|
1171
1177
|
]
|
|
1172
1178
|
},
|
|
1173
1179
|
"AutoBeOpenApi.IJsonSchemaDescriptive.IArray": {
|
|
1174
|
-
description: "Array type info
|
|
1180
|
+
description: "Array type info.",
|
|
1175
1181
|
type: "object",
|
|
1176
1182
|
properties: {
|
|
1177
1183
|
items: {
|
|
1184
|
+
description: "Items type info.\n\nThe `items` means the type of the array elements. In other words, it is\nthe type schema info of the `T` in the TypeScript array type\n`Array<T>`.",
|
|
1178
1185
|
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema"
|
|
1179
1186
|
},
|
|
1180
1187
|
uniqueItems: {
|
|
@@ -1413,10 +1420,11 @@ const collection = {
|
|
|
1413
1420
|
]
|
|
1414
1421
|
},
|
|
1415
1422
|
"AutoBeOpenApi.IJsonSchema.IArray": {
|
|
1416
|
-
description: "Array type info
|
|
1423
|
+
description: "Array type info.",
|
|
1417
1424
|
type: "object",
|
|
1418
1425
|
properties: {
|
|
1419
1426
|
items: {
|
|
1427
|
+
description: "Items type info.\n\nThe `items` means the type of the array elements. In other words, it is\nthe type schema info of the `T` in the TypeScript array type\n`Array<T>`.",
|
|
1420
1428
|
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema"
|
|
1421
1429
|
},
|
|
1422
1430
|
uniqueItems: {
|
|
@@ -1445,7 +1453,7 @@ const collection = {
|
|
|
1445
1453
|
]
|
|
1446
1454
|
},
|
|
1447
1455
|
"AutoBeOpenApi.IJsonSchema.IObject": {
|
|
1448
|
-
description: "Object type info
|
|
1456
|
+
description: "Object type info.",
|
|
1449
1457
|
type: "object",
|
|
1450
1458
|
properties: {
|
|
1451
1459
|
"x-autobe-prisma-schema": {
|
|
@@ -1460,6 +1468,7 @@ const collection = {
|
|
|
1460
1468
|
]
|
|
1461
1469
|
},
|
|
1462
1470
|
properties: {
|
|
1471
|
+
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's\nregular properties. The key is the name of the regular property, and\nthe value is the type schema info.\n\nIMPORTANT: Each property in this object MUST have a detailed\ndescription that references and aligns with the description comments\nfrom the corresponding Prisma DB schema column.\n\nIf you need additional properties that is represented by dynamic key,\nyou can use the {@link additionalProperties} instead.",
|
|
1463
1472
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
1464
1473
|
},
|
|
1465
1474
|
additionalProperties: {
|
|
@@ -1554,7 +1563,7 @@ const collection = {
|
|
|
1554
1563
|
]
|
|
1555
1564
|
},
|
|
1556
1565
|
"AutoBeOpenApi.IJsonSchema.IOneOf": {
|
|
1557
|
-
description: "Union type.\n\n`IOneOf` represents an union type of the TypeScript (`A | B | C`).\n\nFor reference, even though your Swagger (or OpenAPI) document has defined\n`anyOf` instead of the `oneOf`, {@link AutoBeOpenApi} forcibly converts it\nto `oneOf` type
|
|
1566
|
+
description: "Union type.\n\n`IOneOf` represents an union type of the TypeScript (`A | B | C`).\n\nFor reference, even though your Swagger (or OpenAPI) document has defined\n`anyOf` instead of the `oneOf`, {@link AutoBeOpenApi} forcibly converts it\nto `oneOf` type.",
|
|
1558
1567
|
type: "object",
|
|
1559
1568
|
properties: {
|
|
1560
1569
|
oneOf: {
|
|
@@ -1593,6 +1602,7 @@ const collection = {
|
|
|
1593
1602
|
}
|
|
1594
1603
|
},
|
|
1595
1604
|
discriminator: {
|
|
1605
|
+
description: "Discriminator info of the union type.",
|
|
1596
1606
|
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator"
|
|
1597
1607
|
}
|
|
1598
1608
|
},
|
|
@@ -1601,7 +1611,7 @@ const collection = {
|
|
|
1601
1611
|
]
|
|
1602
1612
|
},
|
|
1603
1613
|
"AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator": {
|
|
1604
|
-
description: "Discriminator info of the union type
|
|
1614
|
+
description: "Discriminator info of the union type.",
|
|
1605
1615
|
type: "object",
|
|
1606
1616
|
properties: {
|
|
1607
1617
|
propertyName: {
|
|
@@ -1609,6 +1619,7 @@ const collection = {
|
|
|
1609
1619
|
type: "string"
|
|
1610
1620
|
},
|
|
1611
1621
|
mapping: {
|
|
1622
|
+
description: "Mapping of the discriminator value to the schema name.\n\nThis property is valid only for {@link IReference} typed\n{@link IOneOf.oneof} elements. Therefore, `key` of `mapping` is the\ndiscriminator value, and `value` of `mapping` is the schema name like\n`#/components/schemas/SomeObject`.",
|
|
1612
1623
|
$ref: "#/$defs/Recordstringstring"
|
|
1613
1624
|
}
|
|
1614
1625
|
},
|
|
@@ -1626,7 +1637,7 @@ const collection = {
|
|
|
1626
1637
|
}
|
|
1627
1638
|
},
|
|
1628
1639
|
"AutoBeOpenApi.IJsonSchemaDescriptive.IObject": {
|
|
1629
|
-
description: "Object type info
|
|
1640
|
+
description: "Object type info.",
|
|
1630
1641
|
type: "object",
|
|
1631
1642
|
properties: {
|
|
1632
1643
|
"x-autobe-prisma-schema": {
|
|
@@ -1641,6 +1652,7 @@ const collection = {
|
|
|
1641
1652
|
]
|
|
1642
1653
|
},
|
|
1643
1654
|
properties: {
|
|
1655
|
+
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's\nregular properties. The key is the name of the regular property, and\nthe value is the type schema info.\n\nIMPORTANT: Each property in this object MUST have a detailed\ndescription that references and aligns with the description comments\nfrom the corresponding Prisma DB schema column.\n\nIf you need additional properties that is represented by dynamic key,\nyou can use the {@link additionalProperties} instead.",
|
|
1644
1656
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
1645
1657
|
},
|
|
1646
1658
|
additionalProperties: {
|
|
@@ -1729,7 +1741,7 @@ const collection = {
|
|
|
1729
1741
|
]
|
|
1730
1742
|
},
|
|
1731
1743
|
"AutoBeOpenApi.IJsonSchemaDescriptive.IOneOf": {
|
|
1732
|
-
description: "Union type.\n\n`IOneOf` represents an union type of the TypeScript (`A | B | C`).\n\nFor reference, even though your Swagger (or OpenAPI) document has defined\n`anyOf` instead of the `oneOf`, {@link AutoBeOpenApi} forcibly converts it\nto `oneOf` type
|
|
1744
|
+
description: "Union type.\n\n`IOneOf` represents an union type of the TypeScript (`A | B | C`).\n\nFor reference, even though your Swagger (or OpenAPI) document has defined\n`anyOf` instead of the `oneOf`, {@link AutoBeOpenApi} forcibly converts it\nto `oneOf` type.",
|
|
1733
1745
|
type: "object",
|
|
1734
1746
|
properties: {
|
|
1735
1747
|
oneOf: {
|
|
@@ -1768,6 +1780,7 @@ const collection = {
|
|
|
1768
1780
|
}
|
|
1769
1781
|
},
|
|
1770
1782
|
discriminator: {
|
|
1783
|
+
description: "Discriminator info of the union type.",
|
|
1771
1784
|
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator"
|
|
1772
1785
|
},
|
|
1773
1786
|
description: {
|
|
@@ -4208,5 +4221,1647 @@ const collection = {
|
|
|
4208
4221
|
}), { equals: false }));
|
|
4209
4222
|
return application;
|
|
4210
4223
|
})(),
|
|
4224
|
+
gemini: (validate) => (() => {
|
|
4225
|
+
const application = {
|
|
4226
|
+
model: "gemini",
|
|
4227
|
+
options: {
|
|
4228
|
+
reference: true,
|
|
4229
|
+
separate: null
|
|
4230
|
+
},
|
|
4231
|
+
functions: [
|
|
4232
|
+
{
|
|
4233
|
+
name: "review",
|
|
4234
|
+
parameters: {
|
|
4235
|
+
description: " Content review results including completeness issues found,\nfixes applied, and modified schemas\n\n------------------------------\n\nDescription of the current {@link IAutoBeInterfaceSchemaContentReviewApplication.IProps} type:\n\n> Output structure for the content review function.\n> \n> Contains the content analysis, completeness fixes, and schemas modified for\n> content quality during the validation process.",
|
|
4236
|
+
type: "object",
|
|
4237
|
+
properties: {
|
|
4238
|
+
think: {
|
|
4239
|
+
description: "Content analysis and completeness planning information.",
|
|
4240
|
+
$ref: "#/$defs/IAutoBeInterfaceSchemaContentReviewApplication.IThink"
|
|
4241
|
+
},
|
|
4242
|
+
content: {
|
|
4243
|
+
description: "Modified schemas resulting from content and completeness fixes.\n\nContains ONLY the schemas that were modified for content reasons during\nreview. This includes both modified existing schemas and newly created\nvariant schemas.\n\nContent modifications include:\n\n- Adding missing fields from Prisma schema\n- Correcting data type mappings\n- Fixing required field arrays\n- Enhancing or adding descriptions\n- Creating missing variant types (ISummary, IUpdate, etc.)\n- Ensuring cross-variant consistency\n\nReturn empty object {} when all content is already complete and accurate,\nrequiring no modifications.",
|
|
4244
|
+
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
4245
|
+
}
|
|
4246
|
+
},
|
|
4247
|
+
required: [
|
|
4248
|
+
"think",
|
|
4249
|
+
"content"
|
|
4250
|
+
],
|
|
4251
|
+
additionalProperties: false,
|
|
4252
|
+
$defs: {
|
|
4253
|
+
"IAutoBeInterfaceSchemaContentReviewApplication.IThink": {
|
|
4254
|
+
type: "object",
|
|
4255
|
+
properties: {
|
|
4256
|
+
review: {
|
|
4257
|
+
description: "Content completeness and quality findings from the review process.\n\nDocuments all content issues discovered during validation, categorized by\ntype: field completeness, type accuracy, required fields, descriptions,\nvariant consistency, and missing variants. Each issue includes the\naffected schema and specific problem identified.\n\nCommon issues documented:\n\n- Field Completeness: Missing fields that exist in Prisma schema\n- Type Accuracy: Incorrect type mappings (e.g., Decimal as string)\n- Required Fields: Misaligned with Prisma nullable settings\n- Description Quality: Missing or inadequate descriptions\n- Variant Consistency: Same field with different types across variants\n- Missing Variants: Required DTO variants not present\n\nShould state \"No content or completeness issues found.\" when all schemas\nhave complete and accurate content.",
|
|
4258
|
+
type: "string"
|
|
4259
|
+
},
|
|
4260
|
+
plan: {
|
|
4261
|
+
description: "Content corrections and completeness fixes applied during review.\n\nLists all content modifications implemented, organized by fix type:\nfields added, types corrected, required arrays fixed, descriptions\nenhanced, consistency fixes, and variants created. Documents both field-\nlevel changes and schema-level additions.\n\nTypical fixes documented:\n\n- Fields added to match Prisma schema\n- Type mappings corrected (Int\u2192integer, Decimal\u2192number)\n- Required arrays aligned with nullability\n- Descriptions added or enhanced for clarity\n- Variant consistency issues resolved\n- Missing variants created with appropriate fields\n\nShould state \"No content issues require fixes. All DTOs are complete and\nconsistent.\" when no content modifications were necessary.",
|
|
4262
|
+
type: "string"
|
|
4263
|
+
}
|
|
4264
|
+
},
|
|
4265
|
+
required: [
|
|
4266
|
+
"review",
|
|
4267
|
+
"plan"
|
|
4268
|
+
]
|
|
4269
|
+
},
|
|
4270
|
+
"RecordstringAutoBeOpenApi.IJsonSchemaDescriptive": {
|
|
4271
|
+
description: "Construct a type with a set of properties K of type T",
|
|
4272
|
+
type: "object",
|
|
4273
|
+
properties: {},
|
|
4274
|
+
required: [],
|
|
4275
|
+
additionalProperties: {
|
|
4276
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive"
|
|
4277
|
+
}
|
|
4278
|
+
},
|
|
4279
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive": {
|
|
4280
|
+
description: "Descriptive type schema info.\n\n`AutoBeOpenApi.IJsonSchemaDescriptive` is a type schema info of the OpenAPI\nGenerative, but it has a `description` property which is required.\n\n`AutoBeOpenApi.IJsonSchemaDescriptive` basically follows the JSON schema\nspecification of OpenAPI v3.1, but a little bit shrunk to remove ambiguous\nand duplicated expressions of OpenAPI v3.1 for the convenience, clarity,\nand AI generation.\n\nCRITICAL INSTRUCTIONS FOR OPTIMAL AI GENERATION:\n\nWhen creating descriptions for components, types, and properties:\n\n1. ALWAYS refer to and incorporate the description comments from the\n corresponding Prisma DB schema tables and columns. The descriptions\n should match the style, level of detail, and terminology used in the\n Prisma schema.\n2. ALL descriptions MUST be organized into MULTIPLE PARAGRAPHS separated by\n line breaks. Single-paragraph descriptions should be avoided.\n3. Descriptions should comprehensively cover:\n\n - The purpose and business meaning of the type or property\n - Relationships to other entities\n - Validation rules, constraints, and edge cases\n - Usage context and examples when helpful\n4. For each property of an object type, ensure its description reflects the\n corresponding column description in the Prisma DB schema, maintaining\n the same level of detail and terminology\n5. Descriptions should be so detailed and clear that anyone reading them can\n fully understand the type or property without needing to reference any\n other documentation",
|
|
4281
|
+
anyOf: [
|
|
4282
|
+
{
|
|
4283
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.IConstant"
|
|
4284
|
+
},
|
|
4285
|
+
{
|
|
4286
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.IBoolean"
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.IInteger"
|
|
4290
|
+
},
|
|
4291
|
+
{
|
|
4292
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.INumber"
|
|
4293
|
+
},
|
|
4294
|
+
{
|
|
4295
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.IString"
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.IArray"
|
|
4299
|
+
},
|
|
4300
|
+
{
|
|
4301
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.IObject"
|
|
4302
|
+
},
|
|
4303
|
+
{
|
|
4304
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.IReference"
|
|
4305
|
+
},
|
|
4306
|
+
{
|
|
4307
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.IOneOf"
|
|
4308
|
+
},
|
|
4309
|
+
{
|
|
4310
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchemaDescriptive.INull"
|
|
4311
|
+
}
|
|
4312
|
+
]
|
|
4313
|
+
},
|
|
4314
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.IConstant": {
|
|
4315
|
+
description: "Constant value type.",
|
|
4316
|
+
type: "object",
|
|
4317
|
+
properties: {
|
|
4318
|
+
"const": {
|
|
4319
|
+
description: "The constant value.",
|
|
4320
|
+
anyOf: [
|
|
4321
|
+
{
|
|
4322
|
+
type: "string"
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
type: "number"
|
|
4326
|
+
},
|
|
4327
|
+
{
|
|
4328
|
+
type: "boolean"
|
|
4329
|
+
}
|
|
4330
|
+
]
|
|
4331
|
+
},
|
|
4332
|
+
description: {
|
|
4333
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
4334
|
+
type: "string"
|
|
4335
|
+
}
|
|
4336
|
+
},
|
|
4337
|
+
required: [
|
|
4338
|
+
"const",
|
|
4339
|
+
"description"
|
|
4340
|
+
]
|
|
4341
|
+
},
|
|
4342
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.IBoolean": {
|
|
4343
|
+
description: "Boolean type info.",
|
|
4344
|
+
type: "object",
|
|
4345
|
+
properties: {
|
|
4346
|
+
type: {
|
|
4347
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4348
|
+
type: "string",
|
|
4349
|
+
"enum": [
|
|
4350
|
+
"boolean"
|
|
4351
|
+
]
|
|
4352
|
+
},
|
|
4353
|
+
description: {
|
|
4354
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
4355
|
+
type: "string"
|
|
4356
|
+
}
|
|
4357
|
+
},
|
|
4358
|
+
required: [
|
|
4359
|
+
"type",
|
|
4360
|
+
"description"
|
|
4361
|
+
]
|
|
4362
|
+
},
|
|
4363
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.IInteger": {
|
|
4364
|
+
description: "Integer type info.",
|
|
4365
|
+
type: "object",
|
|
4366
|
+
properties: {
|
|
4367
|
+
minimum: {
|
|
4368
|
+
description: "Minimum value restriction.",
|
|
4369
|
+
type: "integer"
|
|
4370
|
+
},
|
|
4371
|
+
maximum: {
|
|
4372
|
+
description: "Maximum value restriction.",
|
|
4373
|
+
type: "integer"
|
|
4374
|
+
},
|
|
4375
|
+
exclusiveMinimum: {
|
|
4376
|
+
description: "Exclusive minimum value restriction.",
|
|
4377
|
+
type: "number"
|
|
4378
|
+
},
|
|
4379
|
+
exclusiveMaximum: {
|
|
4380
|
+
description: "Exclusive maximum value restriction.",
|
|
4381
|
+
type: "number"
|
|
4382
|
+
},
|
|
4383
|
+
multipleOf: {
|
|
4384
|
+
description: "Multiple of value restriction.\n\n\n@exclusiveMinimum 0",
|
|
4385
|
+
type: "integer"
|
|
4386
|
+
},
|
|
4387
|
+
type: {
|
|
4388
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4389
|
+
type: "string",
|
|
4390
|
+
"enum": [
|
|
4391
|
+
"integer"
|
|
4392
|
+
]
|
|
4393
|
+
},
|
|
4394
|
+
description: {
|
|
4395
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
4396
|
+
type: "string"
|
|
4397
|
+
}
|
|
4398
|
+
},
|
|
4399
|
+
required: [
|
|
4400
|
+
"type",
|
|
4401
|
+
"description"
|
|
4402
|
+
]
|
|
4403
|
+
},
|
|
4404
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.INumber": {
|
|
4405
|
+
description: "Number (double) type info.",
|
|
4406
|
+
type: "object",
|
|
4407
|
+
properties: {
|
|
4408
|
+
minimum: {
|
|
4409
|
+
description: "Minimum value restriction.",
|
|
4410
|
+
type: "number"
|
|
4411
|
+
},
|
|
4412
|
+
maximum: {
|
|
4413
|
+
description: "Maximum value restriction.",
|
|
4414
|
+
type: "number"
|
|
4415
|
+
},
|
|
4416
|
+
exclusiveMinimum: {
|
|
4417
|
+
description: "Exclusive minimum value restriction.",
|
|
4418
|
+
type: "number"
|
|
4419
|
+
},
|
|
4420
|
+
exclusiveMaximum: {
|
|
4421
|
+
description: "Exclusive maximum value restriction.",
|
|
4422
|
+
type: "number"
|
|
4423
|
+
},
|
|
4424
|
+
multipleOf: {
|
|
4425
|
+
description: "Multiple of value restriction.\n\n\n@exclusiveMinimum 0",
|
|
4426
|
+
type: "number"
|
|
4427
|
+
},
|
|
4428
|
+
type: {
|
|
4429
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4430
|
+
type: "string",
|
|
4431
|
+
"enum": [
|
|
4432
|
+
"number"
|
|
4433
|
+
]
|
|
4434
|
+
},
|
|
4435
|
+
description: {
|
|
4436
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
4437
|
+
type: "string"
|
|
4438
|
+
}
|
|
4439
|
+
},
|
|
4440
|
+
required: [
|
|
4441
|
+
"type",
|
|
4442
|
+
"description"
|
|
4443
|
+
]
|
|
4444
|
+
},
|
|
4445
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.IString": {
|
|
4446
|
+
description: "String type info.",
|
|
4447
|
+
type: "object",
|
|
4448
|
+
properties: {
|
|
4449
|
+
format: {
|
|
4450
|
+
description: "Format restriction.",
|
|
4451
|
+
type: "string",
|
|
4452
|
+
"enum": [
|
|
4453
|
+
"date-time",
|
|
4454
|
+
"password",
|
|
4455
|
+
"regex",
|
|
4456
|
+
"uuid",
|
|
4457
|
+
"email",
|
|
4458
|
+
"hostname",
|
|
4459
|
+
"idn-email",
|
|
4460
|
+
"idn-hostname",
|
|
4461
|
+
"iri",
|
|
4462
|
+
"iri-reference",
|
|
4463
|
+
"ipv4",
|
|
4464
|
+
"ipv6",
|
|
4465
|
+
"uri",
|
|
4466
|
+
"uri-reference",
|
|
4467
|
+
"uri-template",
|
|
4468
|
+
"url",
|
|
4469
|
+
"date",
|
|
4470
|
+
"time",
|
|
4471
|
+
"duration",
|
|
4472
|
+
"json-pointer",
|
|
4473
|
+
"relative-json-pointer"
|
|
4474
|
+
]
|
|
4475
|
+
},
|
|
4476
|
+
pattern: {
|
|
4477
|
+
description: "Pattern restriction.",
|
|
4478
|
+
type: "string"
|
|
4479
|
+
},
|
|
4480
|
+
contentMediaType: {
|
|
4481
|
+
description: "Content media type restriction.",
|
|
4482
|
+
type: "string"
|
|
4483
|
+
},
|
|
4484
|
+
minLength: {
|
|
4485
|
+
description: "Minimum length restriction.\n\n\n@minimum 0",
|
|
4486
|
+
type: "integer"
|
|
4487
|
+
},
|
|
4488
|
+
maxLength: {
|
|
4489
|
+
description: "Maximum length restriction.\n\n\n@minimum 0",
|
|
4490
|
+
type: "integer"
|
|
4491
|
+
},
|
|
4492
|
+
type: {
|
|
4493
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4494
|
+
type: "string",
|
|
4495
|
+
"enum": [
|
|
4496
|
+
"string"
|
|
4497
|
+
]
|
|
4498
|
+
},
|
|
4499
|
+
description: {
|
|
4500
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
4501
|
+
type: "string"
|
|
4502
|
+
}
|
|
4503
|
+
},
|
|
4504
|
+
required: [
|
|
4505
|
+
"type",
|
|
4506
|
+
"description"
|
|
4507
|
+
]
|
|
4508
|
+
},
|
|
4509
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.IArray": {
|
|
4510
|
+
description: "Array type info.",
|
|
4511
|
+
type: "object",
|
|
4512
|
+
properties: {
|
|
4513
|
+
items: {
|
|
4514
|
+
description: "Items type info.\n\nThe `items` means the type of the array elements. In other words, it is\nthe type schema info of the `T` in the TypeScript array type\n`Array<T>`.",
|
|
4515
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema"
|
|
4516
|
+
},
|
|
4517
|
+
uniqueItems: {
|
|
4518
|
+
description: "Unique items restriction.\n\nIf this property value is `true`, target array must have unique items.",
|
|
4519
|
+
type: "boolean"
|
|
4520
|
+
},
|
|
4521
|
+
minItems: {
|
|
4522
|
+
description: "Minimum items restriction.\n\nRestriction of minimum number of items in the array.\n\n\n@minimum 0",
|
|
4523
|
+
type: "integer"
|
|
4524
|
+
},
|
|
4525
|
+
maxItems: {
|
|
4526
|
+
description: "Maximum items restriction.\n\nRestriction of maximum number of items in the array.\n\n\n@minimum 0",
|
|
4527
|
+
type: "integer"
|
|
4528
|
+
},
|
|
4529
|
+
type: {
|
|
4530
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4531
|
+
type: "string",
|
|
4532
|
+
"enum": [
|
|
4533
|
+
"array"
|
|
4534
|
+
]
|
|
4535
|
+
},
|
|
4536
|
+
description: {
|
|
4537
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
4538
|
+
type: "string"
|
|
4539
|
+
}
|
|
4540
|
+
},
|
|
4541
|
+
required: [
|
|
4542
|
+
"items",
|
|
4543
|
+
"type",
|
|
4544
|
+
"description"
|
|
4545
|
+
]
|
|
4546
|
+
},
|
|
4547
|
+
"AutoBeOpenApi.IJsonSchema": {
|
|
4548
|
+
description: "Type schema info.\n\n`AutoBeOpenApi.IJsonSchema` is a type schema info of the OpenAPI\nGenerative.\n\n`AutoBeOpenApi.IJsonSchema` basically follows the JSON schema specification\nof OpenAPI v3.1, but a little bit shrunk to remove ambiguous and duplicated\nexpressions of OpenAPI v3.1 for the convenience, clarity, and AI\ngeneration.\n\n## CRITICAL: Union Type Expression\n\nIn this type system, union types (including nullable types) MUST be\nexpressed using the `IOneOf` structure. NEVER use array notation in the\n`type` field.\n\n\u274C **FORBIDDEN** - Array notation in type field:\n\n```typescript\n{\n \"type\": [\"string\", \"null\"] // NEVER DO THIS!\n}\n```\n\n\u2705 **CORRECT** - Using IOneOf for unions:\n\n```typescript\n// For nullable string:\n{\n oneOf: [{ type: \"string\" }, { type: \"null\" }];\n}\n\n// For string | number union:\n{\n oneOf: [{ type: \"string\" }, { type: \"number\" }];\n}\n```\n\nThe `type` field in any schema object is a discriminator that identifies\nthe schema type and MUST contain exactly one string value.",
|
|
4549
|
+
anyOf: [
|
|
4550
|
+
{
|
|
4551
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
|
|
4552
|
+
},
|
|
4553
|
+
{
|
|
4554
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
|
|
4555
|
+
},
|
|
4556
|
+
{
|
|
4557
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
|
|
4558
|
+
},
|
|
4559
|
+
{
|
|
4560
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IConstant"
|
|
4561
|
+
},
|
|
4562
|
+
{
|
|
4563
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IBoolean"
|
|
4564
|
+
},
|
|
4565
|
+
{
|
|
4566
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IArray"
|
|
4567
|
+
},
|
|
4568
|
+
{
|
|
4569
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IObject"
|
|
4570
|
+
},
|
|
4571
|
+
{
|
|
4572
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IReference"
|
|
4573
|
+
},
|
|
4574
|
+
{
|
|
4575
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IOneOf"
|
|
4576
|
+
},
|
|
4577
|
+
{
|
|
4578
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INull"
|
|
4579
|
+
}
|
|
4580
|
+
]
|
|
4581
|
+
},
|
|
4582
|
+
"AutoBeOpenApi.IJsonSchema.IInteger": {
|
|
4583
|
+
description: "Integer type info.",
|
|
4584
|
+
type: "object",
|
|
4585
|
+
properties: {
|
|
4586
|
+
minimum: {
|
|
4587
|
+
description: "Minimum value restriction.",
|
|
4588
|
+
type: "integer"
|
|
4589
|
+
},
|
|
4590
|
+
maximum: {
|
|
4591
|
+
description: "Maximum value restriction.",
|
|
4592
|
+
type: "integer"
|
|
4593
|
+
},
|
|
4594
|
+
exclusiveMinimum: {
|
|
4595
|
+
description: "Exclusive minimum value restriction.",
|
|
4596
|
+
type: "number"
|
|
4597
|
+
},
|
|
4598
|
+
exclusiveMaximum: {
|
|
4599
|
+
description: "Exclusive maximum value restriction.",
|
|
4600
|
+
type: "number"
|
|
4601
|
+
},
|
|
4602
|
+
multipleOf: {
|
|
4603
|
+
description: "Multiple of value restriction.\n\n\n@exclusiveMinimum 0",
|
|
4604
|
+
type: "integer"
|
|
4605
|
+
},
|
|
4606
|
+
type: {
|
|
4607
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4608
|
+
type: "string",
|
|
4609
|
+
"enum": [
|
|
4610
|
+
"integer"
|
|
4611
|
+
]
|
|
4612
|
+
}
|
|
4613
|
+
},
|
|
4614
|
+
required: [
|
|
4615
|
+
"type"
|
|
4616
|
+
]
|
|
4617
|
+
},
|
|
4618
|
+
"AutoBeOpenApi.IJsonSchema.INumber": {
|
|
4619
|
+
description: "Number (double) type info.",
|
|
4620
|
+
type: "object",
|
|
4621
|
+
properties: {
|
|
4622
|
+
minimum: {
|
|
4623
|
+
description: "Minimum value restriction.",
|
|
4624
|
+
type: "number"
|
|
4625
|
+
},
|
|
4626
|
+
maximum: {
|
|
4627
|
+
description: "Maximum value restriction.",
|
|
4628
|
+
type: "number"
|
|
4629
|
+
},
|
|
4630
|
+
exclusiveMinimum: {
|
|
4631
|
+
description: "Exclusive minimum value restriction.",
|
|
4632
|
+
type: "number"
|
|
4633
|
+
},
|
|
4634
|
+
exclusiveMaximum: {
|
|
4635
|
+
description: "Exclusive maximum value restriction.",
|
|
4636
|
+
type: "number"
|
|
4637
|
+
},
|
|
4638
|
+
multipleOf: {
|
|
4639
|
+
description: "Multiple of value restriction.\n\n\n@exclusiveMinimum 0",
|
|
4640
|
+
type: "number"
|
|
4641
|
+
},
|
|
4642
|
+
type: {
|
|
4643
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4644
|
+
type: "string",
|
|
4645
|
+
"enum": [
|
|
4646
|
+
"number"
|
|
4647
|
+
]
|
|
4648
|
+
}
|
|
4649
|
+
},
|
|
4650
|
+
required: [
|
|
4651
|
+
"type"
|
|
4652
|
+
]
|
|
4653
|
+
},
|
|
4654
|
+
"AutoBeOpenApi.IJsonSchema.IString": {
|
|
4655
|
+
description: "String type info.",
|
|
4656
|
+
type: "object",
|
|
4657
|
+
properties: {
|
|
4658
|
+
format: {
|
|
4659
|
+
description: "Format restriction.",
|
|
4660
|
+
type: "string",
|
|
4661
|
+
"enum": [
|
|
4662
|
+
"date-time",
|
|
4663
|
+
"password",
|
|
4664
|
+
"regex",
|
|
4665
|
+
"uuid",
|
|
4666
|
+
"email",
|
|
4667
|
+
"hostname",
|
|
4668
|
+
"idn-email",
|
|
4669
|
+
"idn-hostname",
|
|
4670
|
+
"iri",
|
|
4671
|
+
"iri-reference",
|
|
4672
|
+
"ipv4",
|
|
4673
|
+
"ipv6",
|
|
4674
|
+
"uri",
|
|
4675
|
+
"uri-reference",
|
|
4676
|
+
"uri-template",
|
|
4677
|
+
"url",
|
|
4678
|
+
"date",
|
|
4679
|
+
"time",
|
|
4680
|
+
"duration",
|
|
4681
|
+
"json-pointer",
|
|
4682
|
+
"relative-json-pointer"
|
|
4683
|
+
]
|
|
4684
|
+
},
|
|
4685
|
+
pattern: {
|
|
4686
|
+
description: "Pattern restriction.",
|
|
4687
|
+
type: "string"
|
|
4688
|
+
},
|
|
4689
|
+
contentMediaType: {
|
|
4690
|
+
description: "Content media type restriction.",
|
|
4691
|
+
type: "string"
|
|
4692
|
+
},
|
|
4693
|
+
minLength: {
|
|
4694
|
+
description: "Minimum length restriction.\n\n\n@minimum 0",
|
|
4695
|
+
type: "integer"
|
|
4696
|
+
},
|
|
4697
|
+
maxLength: {
|
|
4698
|
+
description: "Maximum length restriction.\n\n\n@minimum 0",
|
|
4699
|
+
type: "integer"
|
|
4700
|
+
},
|
|
4701
|
+
type: {
|
|
4702
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4703
|
+
type: "string",
|
|
4704
|
+
"enum": [
|
|
4705
|
+
"string"
|
|
4706
|
+
]
|
|
4707
|
+
}
|
|
4708
|
+
},
|
|
4709
|
+
required: [
|
|
4710
|
+
"type"
|
|
4711
|
+
]
|
|
4712
|
+
},
|
|
4713
|
+
"AutoBeOpenApi.IJsonSchema.IConstant": {
|
|
4714
|
+
description: "Constant value type.",
|
|
4715
|
+
type: "object",
|
|
4716
|
+
properties: {
|
|
4717
|
+
"const": {
|
|
4718
|
+
description: "The constant value.",
|
|
4719
|
+
anyOf: [
|
|
4720
|
+
{
|
|
4721
|
+
type: "string"
|
|
4722
|
+
},
|
|
4723
|
+
{
|
|
4724
|
+
type: "number"
|
|
4725
|
+
},
|
|
4726
|
+
{
|
|
4727
|
+
type: "boolean"
|
|
4728
|
+
}
|
|
4729
|
+
]
|
|
4730
|
+
}
|
|
4731
|
+
},
|
|
4732
|
+
required: [
|
|
4733
|
+
"const"
|
|
4734
|
+
]
|
|
4735
|
+
},
|
|
4736
|
+
"AutoBeOpenApi.IJsonSchema.IBoolean": {
|
|
4737
|
+
description: "Boolean type info.",
|
|
4738
|
+
type: "object",
|
|
4739
|
+
properties: {
|
|
4740
|
+
type: {
|
|
4741
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4742
|
+
type: "string",
|
|
4743
|
+
"enum": [
|
|
4744
|
+
"boolean"
|
|
4745
|
+
]
|
|
4746
|
+
}
|
|
4747
|
+
},
|
|
4748
|
+
required: [
|
|
4749
|
+
"type"
|
|
4750
|
+
]
|
|
4751
|
+
},
|
|
4752
|
+
"AutoBeOpenApi.IJsonSchema.IArray": {
|
|
4753
|
+
description: "Array type info.",
|
|
4754
|
+
type: "object",
|
|
4755
|
+
properties: {
|
|
4756
|
+
items: {
|
|
4757
|
+
description: "Items type info.\n\nThe `items` means the type of the array elements. In other words, it is\nthe type schema info of the `T` in the TypeScript array type\n`Array<T>`.",
|
|
4758
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema"
|
|
4759
|
+
},
|
|
4760
|
+
uniqueItems: {
|
|
4761
|
+
description: "Unique items restriction.\n\nIf this property value is `true`, target array must have unique items.",
|
|
4762
|
+
type: "boolean"
|
|
4763
|
+
},
|
|
4764
|
+
minItems: {
|
|
4765
|
+
description: "Minimum items restriction.\n\nRestriction of minimum number of items in the array.\n\n\n@minimum 0",
|
|
4766
|
+
type: "integer"
|
|
4767
|
+
},
|
|
4768
|
+
maxItems: {
|
|
4769
|
+
description: "Maximum items restriction.\n\nRestriction of maximum number of items in the array.\n\n\n@minimum 0",
|
|
4770
|
+
type: "integer"
|
|
4771
|
+
},
|
|
4772
|
+
type: {
|
|
4773
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4774
|
+
type: "string",
|
|
4775
|
+
"enum": [
|
|
4776
|
+
"array"
|
|
4777
|
+
]
|
|
4778
|
+
}
|
|
4779
|
+
},
|
|
4780
|
+
required: [
|
|
4781
|
+
"items",
|
|
4782
|
+
"type"
|
|
4783
|
+
]
|
|
4784
|
+
},
|
|
4785
|
+
"AutoBeOpenApi.IJsonSchema.IObject": {
|
|
4786
|
+
description: "Object type info.",
|
|
4787
|
+
type: "object",
|
|
4788
|
+
properties: {
|
|
4789
|
+
"x-autobe-prisma-schema": {
|
|
4790
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
4791
|
+
anyOf: [
|
|
4792
|
+
{
|
|
4793
|
+
type: "null"
|
|
4794
|
+
},
|
|
4795
|
+
{
|
|
4796
|
+
type: "string"
|
|
4797
|
+
}
|
|
4798
|
+
]
|
|
4799
|
+
},
|
|
4800
|
+
properties: {
|
|
4801
|
+
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's\nregular properties. The key is the name of the regular property, and\nthe value is the type schema info.\n\nIMPORTANT: Each property in this object MUST have a detailed\ndescription that references and aligns with the description comments\nfrom the corresponding Prisma DB schema column.\n\nIf you need additional properties that is represented by dynamic key,\nyou can use the {@link additionalProperties} instead.",
|
|
4802
|
+
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
4803
|
+
},
|
|
4804
|
+
additionalProperties: {
|
|
4805
|
+
description: "Additional properties' info.\n\nThe `additionalProperties` means the type schema info of the additional\nproperties that are not listed in the {@link properties}.\n\nIf the value is `false`, it means that the additional properties are\nnot specified. Otherwise, if the value is {@link IJsonSchema} type, it\nmeans that the additional properties must follow the type schema info.\n\n- `false`: No additional properties\n- `IJsonSchema`: `Record<string, T>`",
|
|
4806
|
+
anyOf: [
|
|
4807
|
+
{
|
|
4808
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
|
|
4809
|
+
},
|
|
4810
|
+
{
|
|
4811
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
|
|
4812
|
+
},
|
|
4813
|
+
{
|
|
4814
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
|
|
4815
|
+
},
|
|
4816
|
+
{
|
|
4817
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IConstant"
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INull"
|
|
4821
|
+
},
|
|
4822
|
+
{
|
|
4823
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IBoolean"
|
|
4824
|
+
},
|
|
4825
|
+
{
|
|
4826
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IArray"
|
|
4827
|
+
},
|
|
4828
|
+
{
|
|
4829
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IObject"
|
|
4830
|
+
},
|
|
4831
|
+
{
|
|
4832
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IReference"
|
|
4833
|
+
},
|
|
4834
|
+
{
|
|
4835
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IOneOf"
|
|
4836
|
+
},
|
|
4837
|
+
{
|
|
4838
|
+
type: "boolean",
|
|
4839
|
+
"enum": [
|
|
4840
|
+
false
|
|
4841
|
+
]
|
|
4842
|
+
}
|
|
4843
|
+
]
|
|
4844
|
+
},
|
|
4845
|
+
required: {
|
|
4846
|
+
description: "List of key values of the required properties.\n\nThe `required` means a list of the key values of the required\n{@link properties}. If some property key is not listed in the `required`\nlist, it means that property is optional. Otherwise some property key\nexists in the `required` list, it means that the property must be\nfilled.\n\nBelow is an example of the {@link properties} and `required`.\n\n```typescript\ninterface SomeObject {\n id: string;\n email: string;\n name?: string;\n}\n```\n\nAs you can see, `id` and `email` {@link properties} are {@link required},\nso that they are listed in the `required` list.\n\n```json\n{\n \"type\": \"object\",\n \"properties\": {\n \"id\": { \"type\": \"string\" },\n \"email\": { \"type\": \"string\" },\n \"name\": { \"type\": \"string\" }\n },\n \"required\": [\"id\", \"email\"]\n}\n```",
|
|
4847
|
+
type: "array",
|
|
4848
|
+
items: {
|
|
4849
|
+
type: "string"
|
|
4850
|
+
}
|
|
4851
|
+
},
|
|
4852
|
+
type: {
|
|
4853
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4854
|
+
type: "string",
|
|
4855
|
+
"enum": [
|
|
4856
|
+
"object"
|
|
4857
|
+
]
|
|
4858
|
+
}
|
|
4859
|
+
},
|
|
4860
|
+
required: [
|
|
4861
|
+
"properties",
|
|
4862
|
+
"required",
|
|
4863
|
+
"type"
|
|
4864
|
+
]
|
|
4865
|
+
},
|
|
4866
|
+
"AutoBeOpenApi.IJsonSchema.INull": {
|
|
4867
|
+
description: "Null type.",
|
|
4868
|
+
type: "object",
|
|
4869
|
+
properties: {
|
|
4870
|
+
type: {
|
|
4871
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
4872
|
+
type: "string",
|
|
4873
|
+
"enum": [
|
|
4874
|
+
"null"
|
|
4875
|
+
]
|
|
4876
|
+
}
|
|
4877
|
+
},
|
|
4878
|
+
required: [
|
|
4879
|
+
"type"
|
|
4880
|
+
]
|
|
4881
|
+
},
|
|
4882
|
+
"AutoBeOpenApi.IJsonSchema.IReference": {
|
|
4883
|
+
description: "Reference type directing named schema.",
|
|
4884
|
+
type: "object",
|
|
4885
|
+
properties: {
|
|
4886
|
+
$ref: {
|
|
4887
|
+
description: "Reference to the named schema.\n\nThe `ref` is a reference to the named schema. Format of the `$ref` is\nfollowing the JSON Pointer specification. In the OpenAPI, the `$ref`\nstarts with `#/components/schemas/` which means the type is stored in\nthe {@link AutoBeOpenApi.IComponents.schemas} object.\n\n- `#/components/schemas/SomeObject`\n- `#/components/schemas/AnotherObject`",
|
|
4888
|
+
type: "string"
|
|
4889
|
+
}
|
|
4890
|
+
},
|
|
4891
|
+
required: [
|
|
4892
|
+
"$ref"
|
|
4893
|
+
]
|
|
4894
|
+
},
|
|
4895
|
+
"AutoBeOpenApi.IJsonSchema.IOneOf": {
|
|
4896
|
+
description: "Union type.\n\n`IOneOf` represents an union type of the TypeScript (`A | B | C`).\n\nFor reference, even though your Swagger (or OpenAPI) document has defined\n`anyOf` instead of the `oneOf`, {@link AutoBeOpenApi} forcibly converts it\nto `oneOf` type.",
|
|
4897
|
+
type: "object",
|
|
4898
|
+
properties: {
|
|
4899
|
+
oneOf: {
|
|
4900
|
+
description: "List of the union types.",
|
|
4901
|
+
type: "array",
|
|
4902
|
+
items: {
|
|
4903
|
+
anyOf: [
|
|
4904
|
+
{
|
|
4905
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
|
|
4906
|
+
},
|
|
4907
|
+
{
|
|
4908
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
|
|
4909
|
+
},
|
|
4910
|
+
{
|
|
4911
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
|
|
4912
|
+
},
|
|
4913
|
+
{
|
|
4914
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IConstant"
|
|
4915
|
+
},
|
|
4916
|
+
{
|
|
4917
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INull"
|
|
4918
|
+
},
|
|
4919
|
+
{
|
|
4920
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IBoolean"
|
|
4921
|
+
},
|
|
4922
|
+
{
|
|
4923
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IArray"
|
|
4924
|
+
},
|
|
4925
|
+
{
|
|
4926
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IObject"
|
|
4927
|
+
},
|
|
4928
|
+
{
|
|
4929
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IReference"
|
|
4930
|
+
}
|
|
4931
|
+
]
|
|
4932
|
+
}
|
|
4933
|
+
},
|
|
4934
|
+
discriminator: {
|
|
4935
|
+
description: "Discriminator info of the union type.",
|
|
4936
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator"
|
|
4937
|
+
}
|
|
4938
|
+
},
|
|
4939
|
+
required: [
|
|
4940
|
+
"oneOf"
|
|
4941
|
+
]
|
|
4942
|
+
},
|
|
4943
|
+
"AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator": {
|
|
4944
|
+
description: "Discriminator info of the union type.",
|
|
4945
|
+
type: "object",
|
|
4946
|
+
properties: {
|
|
4947
|
+
propertyName: {
|
|
4948
|
+
description: "Property name for the discriminator.",
|
|
4949
|
+
type: "string"
|
|
4950
|
+
},
|
|
4951
|
+
mapping: {
|
|
4952
|
+
description: "Mapping of the discriminator value to the schema name.\n\nThis property is valid only for {@link IReference} typed\n{@link IOneOf.oneof} elements. Therefore, `key` of `mapping` is the\ndiscriminator value, and `value` of `mapping` is the schema name like\n`#/components/schemas/SomeObject`.",
|
|
4953
|
+
$ref: "#/$defs/Recordstringstring"
|
|
4954
|
+
}
|
|
4955
|
+
},
|
|
4956
|
+
required: [
|
|
4957
|
+
"propertyName"
|
|
4958
|
+
]
|
|
4959
|
+
},
|
|
4960
|
+
Recordstringstring: {
|
|
4961
|
+
description: "Construct a type with a set of properties K of type T",
|
|
4962
|
+
type: "object",
|
|
4963
|
+
properties: {},
|
|
4964
|
+
required: [],
|
|
4965
|
+
additionalProperties: {
|
|
4966
|
+
type: "string"
|
|
4967
|
+
}
|
|
4968
|
+
},
|
|
4969
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.IObject": {
|
|
4970
|
+
description: "Object type info.",
|
|
4971
|
+
type: "object",
|
|
4972
|
+
properties: {
|
|
4973
|
+
"x-autobe-prisma-schema": {
|
|
4974
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
4975
|
+
anyOf: [
|
|
4976
|
+
{
|
|
4977
|
+
type: "null"
|
|
4978
|
+
},
|
|
4979
|
+
{
|
|
4980
|
+
type: "string"
|
|
4981
|
+
}
|
|
4982
|
+
]
|
|
4983
|
+
},
|
|
4984
|
+
properties: {
|
|
4985
|
+
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's\nregular properties. The key is the name of the regular property, and\nthe value is the type schema info.\n\nIMPORTANT: Each property in this object MUST have a detailed\ndescription that references and aligns with the description comments\nfrom the corresponding Prisma DB schema column.\n\nIf you need additional properties that is represented by dynamic key,\nyou can use the {@link additionalProperties} instead.",
|
|
4986
|
+
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
4987
|
+
},
|
|
4988
|
+
additionalProperties: {
|
|
4989
|
+
description: "Additional properties' info.\n\nThe `additionalProperties` means the type schema info of the additional\nproperties that are not listed in the {@link properties}.\n\nIf the value is `false`, it means that the additional properties are\nnot specified. Otherwise, if the value is {@link IJsonSchema} type, it\nmeans that the additional properties must follow the type schema info.\n\n- `false`: No additional properties\n- `IJsonSchema`: `Record<string, T>`",
|
|
4990
|
+
anyOf: [
|
|
4991
|
+
{
|
|
4992
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
|
|
4993
|
+
},
|
|
4994
|
+
{
|
|
4995
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
|
|
4999
|
+
},
|
|
5000
|
+
{
|
|
5001
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IConstant"
|
|
5002
|
+
},
|
|
5003
|
+
{
|
|
5004
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INull"
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IBoolean"
|
|
5008
|
+
},
|
|
5009
|
+
{
|
|
5010
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IArray"
|
|
5011
|
+
},
|
|
5012
|
+
{
|
|
5013
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IObject"
|
|
5014
|
+
},
|
|
5015
|
+
{
|
|
5016
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IReference"
|
|
5017
|
+
},
|
|
5018
|
+
{
|
|
5019
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IOneOf"
|
|
5020
|
+
},
|
|
5021
|
+
{
|
|
5022
|
+
type: "boolean",
|
|
5023
|
+
"enum": [
|
|
5024
|
+
false
|
|
5025
|
+
]
|
|
5026
|
+
}
|
|
5027
|
+
]
|
|
5028
|
+
},
|
|
5029
|
+
required: {
|
|
5030
|
+
description: "List of key values of the required properties.\n\nThe `required` means a list of the key values of the required\n{@link properties}. If some property key is not listed in the `required`\nlist, it means that property is optional. Otherwise some property key\nexists in the `required` list, it means that the property must be\nfilled.\n\nBelow is an example of the {@link properties} and `required`.\n\n```typescript\ninterface SomeObject {\n id: string;\n email: string;\n name?: string;\n}\n```\n\nAs you can see, `id` and `email` {@link properties} are {@link required},\nso that they are listed in the `required` list.\n\n```json\n{\n \"type\": \"object\",\n \"properties\": {\n \"id\": { \"type\": \"string\" },\n \"email\": { \"type\": \"string\" },\n \"name\": { \"type\": \"string\" }\n },\n \"required\": [\"id\", \"email\"]\n}\n```",
|
|
5031
|
+
type: "array",
|
|
5032
|
+
items: {
|
|
5033
|
+
type: "string"
|
|
5034
|
+
}
|
|
5035
|
+
},
|
|
5036
|
+
type: {
|
|
5037
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
5038
|
+
type: "string",
|
|
5039
|
+
"enum": [
|
|
5040
|
+
"object"
|
|
5041
|
+
]
|
|
5042
|
+
},
|
|
5043
|
+
description: {
|
|
5044
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
5045
|
+
type: "string"
|
|
5046
|
+
}
|
|
5047
|
+
},
|
|
5048
|
+
required: [
|
|
5049
|
+
"properties",
|
|
5050
|
+
"required",
|
|
5051
|
+
"type",
|
|
5052
|
+
"description"
|
|
5053
|
+
]
|
|
5054
|
+
},
|
|
5055
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.IReference": {
|
|
5056
|
+
description: "Reference type directing named schema.",
|
|
5057
|
+
type: "object",
|
|
5058
|
+
properties: {
|
|
5059
|
+
$ref: {
|
|
5060
|
+
description: "Reference to the named schema.\n\nThe `ref` is a reference to the named schema. Format of the `$ref` is\nfollowing the JSON Pointer specification. In the OpenAPI, the `$ref`\nstarts with `#/components/schemas/` which means the type is stored in\nthe {@link AutoBeOpenApi.IComponents.schemas} object.\n\n- `#/components/schemas/SomeObject`\n- `#/components/schemas/AnotherObject`",
|
|
5061
|
+
type: "string"
|
|
5062
|
+
},
|
|
5063
|
+
description: {
|
|
5064
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
5065
|
+
type: "string"
|
|
5066
|
+
}
|
|
5067
|
+
},
|
|
5068
|
+
required: [
|
|
5069
|
+
"$ref",
|
|
5070
|
+
"description"
|
|
5071
|
+
]
|
|
5072
|
+
},
|
|
5073
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.IOneOf": {
|
|
5074
|
+
description: "Union type.\n\n`IOneOf` represents an union type of the TypeScript (`A | B | C`).\n\nFor reference, even though your Swagger (or OpenAPI) document has defined\n`anyOf` instead of the `oneOf`, {@link AutoBeOpenApi} forcibly converts it\nto `oneOf` type.",
|
|
5075
|
+
type: "object",
|
|
5076
|
+
properties: {
|
|
5077
|
+
oneOf: {
|
|
5078
|
+
description: "List of the union types.",
|
|
5079
|
+
type: "array",
|
|
5080
|
+
items: {
|
|
5081
|
+
anyOf: [
|
|
5082
|
+
{
|
|
5083
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
|
|
5084
|
+
},
|
|
5085
|
+
{
|
|
5086
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
|
|
5087
|
+
},
|
|
5088
|
+
{
|
|
5089
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IConstant"
|
|
5093
|
+
},
|
|
5094
|
+
{
|
|
5095
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INull"
|
|
5096
|
+
},
|
|
5097
|
+
{
|
|
5098
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IBoolean"
|
|
5099
|
+
},
|
|
5100
|
+
{
|
|
5101
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IArray"
|
|
5102
|
+
},
|
|
5103
|
+
{
|
|
5104
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IObject"
|
|
5105
|
+
},
|
|
5106
|
+
{
|
|
5107
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IReference"
|
|
5108
|
+
}
|
|
5109
|
+
]
|
|
5110
|
+
}
|
|
5111
|
+
},
|
|
5112
|
+
discriminator: {
|
|
5113
|
+
description: "Discriminator info of the union type.",
|
|
5114
|
+
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator"
|
|
5115
|
+
},
|
|
5116
|
+
description: {
|
|
5117
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
5118
|
+
type: "string"
|
|
5119
|
+
}
|
|
5120
|
+
},
|
|
5121
|
+
required: [
|
|
5122
|
+
"oneOf",
|
|
5123
|
+
"description"
|
|
5124
|
+
]
|
|
5125
|
+
},
|
|
5126
|
+
"AutoBeOpenApi.IJsonSchemaDescriptive.INull": {
|
|
5127
|
+
description: "Null type.",
|
|
5128
|
+
type: "object",
|
|
5129
|
+
properties: {
|
|
5130
|
+
type: {
|
|
5131
|
+
description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
|
|
5132
|
+
type: "string",
|
|
5133
|
+
"enum": [
|
|
5134
|
+
"null"
|
|
5135
|
+
]
|
|
5136
|
+
},
|
|
5137
|
+
description: {
|
|
5138
|
+
description: "Description about the type.\n\nCRITICAL: This description MUST be extensively detailed and MUST\nreference and align with the description comments from the\ncorresponding Prisma DB schema tables and columns.\n\nThe description MUST be organized into MULTIPLE PARAGRAPHS (separated\nby line breaks) based on different aspects of the type:\n\n- The purpose and business meaning of the type\n- Relationships to other entities in the system\n- Validation rules, constraints, and edge cases\n- Usage context and examples when helpful\n\nThis structured approach improves readability and helps readers better\nunderstand the type's various characteristics and use cases. The\ndescription should be so comprehensive that anyone reading it can fully\nunderstand the type without needing to reference other documentation.\n\n> MUST be written in English. Never use other languages.",
|
|
5139
|
+
type: "string"
|
|
5140
|
+
}
|
|
5141
|
+
},
|
|
5142
|
+
required: [
|
|
5143
|
+
"type",
|
|
5144
|
+
"description"
|
|
5145
|
+
]
|
|
5146
|
+
}
|
|
5147
|
+
}
|
|
5148
|
+
},
|
|
5149
|
+
description: "Reviews and validates DTO content completeness and consistency in OpenAPI\nschemas.\n\nThis specialized content review function focuses exclusively on ensuring\nDTOs accurately and completely represent their business entities. It\nvalidates field completeness, type accuracy, required field settings, and\ndocumentation quality.\n\nThe review process validates and corrects:\n\n- Field completeness against Prisma schema\n- Data type accuracy (Prisma to OpenAPI type mappings)\n- Required field arrays matching Prisma nullability\n- Description quality and comprehensiveness\n- Consistency across DTO variants (IEntity, ICreate, IUpdate, ISummary)\n- Missing variant detection and creation",
|
|
5150
|
+
validate: (() => { const _iv1 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _iv2 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv7 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv8 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
|
|
5151
|
+
const value = input[key];
|
|
5152
|
+
if (undefined === value)
|
|
5153
|
+
return true;
|
|
5154
|
+
return "object" === typeof value && null !== value && _iu1(value);
|
|
5155
|
+
}); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = input => (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; const _io6 = input => (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; const _io7 = input => (undefined === input.format || true === _iv1.has(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; const _io8 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (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; const _io9 = input => (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; const _io10 = input => (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; const _io11 = input => (undefined === input.format || true === _iv2.has(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; const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; const _io14 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (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; const _io15 = input => (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) && _io2(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type; const _io16 = input => "string" === typeof input.$ref; const _io17 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io19(input.discriminator)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
|
|
5156
|
+
const value = input[key];
|
|
5157
|
+
if (undefined === value)
|
|
5158
|
+
return true;
|
|
5159
|
+
return "string" === typeof value;
|
|
5160
|
+
}); const _io21 = input => (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) && _io2(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type && "string" === typeof input.description; const _io22 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io23 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io19(input.discriminator)) && "string" === typeof input.description; const _io24 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
5161
|
+
if ("number" === input.type)
|
|
5162
|
+
return _io10(input);
|
|
5163
|
+
else if ("integer" === input.type)
|
|
5164
|
+
return _io9(input);
|
|
5165
|
+
else if ("string" === input.type)
|
|
5166
|
+
return _io11(input);
|
|
5167
|
+
else if (undefined !== input["const"])
|
|
5168
|
+
return _io12(input);
|
|
5169
|
+
else if ("null" === input.type)
|
|
5170
|
+
return _io18(input);
|
|
5171
|
+
else if ("boolean" === input.type)
|
|
5172
|
+
return _io13(input);
|
|
5173
|
+
else if ("array" === input.type)
|
|
5174
|
+
return _io14(input);
|
|
5175
|
+
else if ("object" === input.type)
|
|
5176
|
+
return _io15(input);
|
|
5177
|
+
else if (undefined !== input.$ref)
|
|
5178
|
+
return _io16(input);
|
|
5179
|
+
else
|
|
5180
|
+
return false;
|
|
5181
|
+
})(); const _iu1 = input => (() => {
|
|
5182
|
+
if (undefined !== input["const"])
|
|
5183
|
+
return _io3(input);
|
|
5184
|
+
else if ("boolean" === input.type)
|
|
5185
|
+
return _io4(input);
|
|
5186
|
+
else if ("number" === input.type)
|
|
5187
|
+
return _io6(input);
|
|
5188
|
+
else if ("integer" === input.type)
|
|
5189
|
+
return _io5(input);
|
|
5190
|
+
else if ("string" === input.type)
|
|
5191
|
+
return _io7(input);
|
|
5192
|
+
else if ("array" === input.type)
|
|
5193
|
+
return _io8(input);
|
|
5194
|
+
else if ("object" === input.type)
|
|
5195
|
+
return _io21(input);
|
|
5196
|
+
else if (undefined !== input.$ref)
|
|
5197
|
+
return _io22(input);
|
|
5198
|
+
else if (undefined !== input.oneOf)
|
|
5199
|
+
return _io23(input);
|
|
5200
|
+
else if ("null" === input.type)
|
|
5201
|
+
return _io24(input);
|
|
5202
|
+
else
|
|
5203
|
+
return false;
|
|
5204
|
+
})(); const _iu2 = input => (() => {
|
|
5205
|
+
if ("number" === input.type)
|
|
5206
|
+
return _io10(input);
|
|
5207
|
+
else if ("integer" === input.type)
|
|
5208
|
+
return _io9(input);
|
|
5209
|
+
else if ("string" === input.type)
|
|
5210
|
+
return _io11(input);
|
|
5211
|
+
else if (undefined !== input["const"])
|
|
5212
|
+
return _io12(input);
|
|
5213
|
+
else if ("null" === input.type)
|
|
5214
|
+
return _io18(input);
|
|
5215
|
+
else if ("boolean" === input.type)
|
|
5216
|
+
return _io13(input);
|
|
5217
|
+
else if ("array" === input.type)
|
|
5218
|
+
return _io14(input);
|
|
5219
|
+
else if ("object" === input.type)
|
|
5220
|
+
return _io15(input);
|
|
5221
|
+
else if (undefined !== input.$ref)
|
|
5222
|
+
return _io16(input);
|
|
5223
|
+
else if (undefined !== input.oneOf)
|
|
5224
|
+
return _io17(input);
|
|
5225
|
+
else
|
|
5226
|
+
return false;
|
|
5227
|
+
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.think && null !== input.think || _report(_exceptionable, {
|
|
5228
|
+
path: _path + ".think",
|
|
5229
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
5230
|
+
value: input.think
|
|
5231
|
+
})) && _vo1(input.think, _path + ".think", true && _exceptionable) || _report(_exceptionable, {
|
|
5232
|
+
path: _path + ".think",
|
|
5233
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
5234
|
+
value: input.think
|
|
5235
|
+
}), ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || _report(_exceptionable, {
|
|
5236
|
+
path: _path + ".content",
|
|
5237
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
5238
|
+
value: input.content
|
|
5239
|
+
})) && _vo2(input.content, _path + ".content", true && _exceptionable) || _report(_exceptionable, {
|
|
5240
|
+
path: _path + ".content",
|
|
5241
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
5242
|
+
value: input.content
|
|
5243
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
5244
|
+
path: _path + ".review",
|
|
5245
|
+
expected: "string",
|
|
5246
|
+
value: input.review
|
|
5247
|
+
}), "string" === typeof input.plan || _report(_exceptionable, {
|
|
5248
|
+
path: _path + ".plan",
|
|
5249
|
+
expected: "string",
|
|
5250
|
+
value: input.plan
|
|
5251
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
5252
|
+
const value = input[key];
|
|
5253
|
+
if (undefined === value)
|
|
5254
|
+
return true;
|
|
5255
|
+
return ("object" === typeof value && null !== value || _report(_exceptionable, {
|
|
5256
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5257
|
+
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)",
|
|
5258
|
+
value: value
|
|
5259
|
+
})) && _vu1(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
5260
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5261
|
+
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)",
|
|
5262
|
+
value: value
|
|
5263
|
+
});
|
|
5264
|
+
}).every(flag => flag)].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || _report(_exceptionable, {
|
|
5265
|
+
path: _path + "[\"const\"]",
|
|
5266
|
+
expected: "(boolean | number | string)",
|
|
5267
|
+
value: input["const"]
|
|
5268
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5269
|
+
path: _path + ".description",
|
|
5270
|
+
expected: "string",
|
|
5271
|
+
value: input.description
|
|
5272
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["boolean" === input.type || _report(_exceptionable, {
|
|
5273
|
+
path: _path + ".type",
|
|
5274
|
+
expected: "\"boolean\"",
|
|
5275
|
+
value: input.type
|
|
5276
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5277
|
+
path: _path + ".description",
|
|
5278
|
+
expected: "string",
|
|
5279
|
+
value: input.description
|
|
5280
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000 || _report(_exceptionable, {
|
|
5281
|
+
path: _path + ".minimum",
|
|
5282
|
+
expected: "number & Type<\"int64\">",
|
|
5283
|
+
value: input.minimum
|
|
5284
|
+
})) || _report(_exceptionable, {
|
|
5285
|
+
path: _path + ".minimum",
|
|
5286
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
5287
|
+
value: input.minimum
|
|
5288
|
+
}), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || _report(_exceptionable, {
|
|
5289
|
+
path: _path + ".maximum",
|
|
5290
|
+
expected: "number & Type<\"int64\">",
|
|
5291
|
+
value: input.maximum
|
|
5292
|
+
})) || _report(_exceptionable, {
|
|
5293
|
+
path: _path + ".maximum",
|
|
5294
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
5295
|
+
value: input.maximum
|
|
5296
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
|
5297
|
+
path: _path + ".exclusiveMinimum",
|
|
5298
|
+
expected: "(number | undefined)",
|
|
5299
|
+
value: input.exclusiveMinimum
|
|
5300
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
|
5301
|
+
path: _path + ".exclusiveMaximum",
|
|
5302
|
+
expected: "(number | undefined)",
|
|
5303
|
+
value: input.exclusiveMaximum
|
|
5304
|
+
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || _report(_exceptionable, {
|
|
5305
|
+
path: _path + ".multipleOf",
|
|
5306
|
+
expected: "number & Type<\"uint64\">",
|
|
5307
|
+
value: input.multipleOf
|
|
5308
|
+
})) && (0 < input.multipleOf || _report(_exceptionable, {
|
|
5309
|
+
path: _path + ".multipleOf",
|
|
5310
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
5311
|
+
value: input.multipleOf
|
|
5312
|
+
})) || _report(_exceptionable, {
|
|
5313
|
+
path: _path + ".multipleOf",
|
|
5314
|
+
expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
|
|
5315
|
+
value: input.multipleOf
|
|
5316
|
+
}), "integer" === input.type || _report(_exceptionable, {
|
|
5317
|
+
path: _path + ".type",
|
|
5318
|
+
expected: "\"integer\"",
|
|
5319
|
+
value: input.type
|
|
5320
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5321
|
+
path: _path + ".description",
|
|
5322
|
+
expected: "string",
|
|
5323
|
+
value: input.description
|
|
5324
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
|
|
5325
|
+
path: _path + ".minimum",
|
|
5326
|
+
expected: "(number | undefined)",
|
|
5327
|
+
value: input.minimum
|
|
5328
|
+
}), undefined === input.maximum || "number" === typeof input.maximum || _report(_exceptionable, {
|
|
5329
|
+
path: _path + ".maximum",
|
|
5330
|
+
expected: "(number | undefined)",
|
|
5331
|
+
value: input.maximum
|
|
5332
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
|
5333
|
+
path: _path + ".exclusiveMinimum",
|
|
5334
|
+
expected: "(number | undefined)",
|
|
5335
|
+
value: input.exclusiveMinimum
|
|
5336
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
|
5337
|
+
path: _path + ".exclusiveMaximum",
|
|
5338
|
+
expected: "(number | undefined)",
|
|
5339
|
+
value: input.exclusiveMaximum
|
|
5340
|
+
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
|
|
5341
|
+
path: _path + ".multipleOf",
|
|
5342
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
5343
|
+
value: input.multipleOf
|
|
5344
|
+
})) || _report(_exceptionable, {
|
|
5345
|
+
path: _path + ".multipleOf",
|
|
5346
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
5347
|
+
value: input.multipleOf
|
|
5348
|
+
}), "number" === input.type || _report(_exceptionable, {
|
|
5349
|
+
path: _path + ".type",
|
|
5350
|
+
expected: "\"number\"",
|
|
5351
|
+
value: input.type
|
|
5352
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5353
|
+
path: _path + ".description",
|
|
5354
|
+
expected: "string",
|
|
5355
|
+
value: input.description
|
|
5356
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv7.has(input.format) || _report(_exceptionable, {
|
|
5357
|
+
path: _path + ".format",
|
|
5358
|
+
expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
|
|
5359
|
+
value: input.format
|
|
5360
|
+
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
5361
|
+
path: _path + ".pattern",
|
|
5362
|
+
expected: "(string | undefined)",
|
|
5363
|
+
value: input.pattern
|
|
5364
|
+
}), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
|
|
5365
|
+
path: _path + ".contentMediaType",
|
|
5366
|
+
expected: "(string | undefined)",
|
|
5367
|
+
value: input.contentMediaType
|
|
5368
|
+
}), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || _report(_exceptionable, {
|
|
5369
|
+
path: _path + ".minLength",
|
|
5370
|
+
expected: "number & Type<\"uint64\">",
|
|
5371
|
+
value: input.minLength
|
|
5372
|
+
})) || _report(_exceptionable, {
|
|
5373
|
+
path: _path + ".minLength",
|
|
5374
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
5375
|
+
value: input.minLength
|
|
5376
|
+
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
|
|
5377
|
+
path: _path + ".maxLength",
|
|
5378
|
+
expected: "number & Type<\"uint64\">",
|
|
5379
|
+
value: input.maxLength
|
|
5380
|
+
})) || _report(_exceptionable, {
|
|
5381
|
+
path: _path + ".maxLength",
|
|
5382
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
5383
|
+
value: input.maxLength
|
|
5384
|
+
}), "string" === input.type || _report(_exceptionable, {
|
|
5385
|
+
path: _path + ".type",
|
|
5386
|
+
expected: "\"string\"",
|
|
5387
|
+
value: input.type
|
|
5388
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5389
|
+
path: _path + ".description",
|
|
5390
|
+
expected: "string",
|
|
5391
|
+
value: input.description
|
|
5392
|
+
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items || _report(_exceptionable, {
|
|
5393
|
+
path: _path + ".items",
|
|
5394
|
+
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)",
|
|
5395
|
+
value: input.items
|
|
5396
|
+
})) && _vu2(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
5397
|
+
path: _path + ".items",
|
|
5398
|
+
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)",
|
|
5399
|
+
value: input.items
|
|
5400
|
+
}), undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || _report(_exceptionable, {
|
|
5401
|
+
path: _path + ".uniqueItems",
|
|
5402
|
+
expected: "(boolean | undefined)",
|
|
5403
|
+
value: input.uniqueItems
|
|
5404
|
+
}), undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000 || _report(_exceptionable, {
|
|
5405
|
+
path: _path + ".minItems",
|
|
5406
|
+
expected: "number & Type<\"uint64\">",
|
|
5407
|
+
value: input.minItems
|
|
5408
|
+
})) || _report(_exceptionable, {
|
|
5409
|
+
path: _path + ".minItems",
|
|
5410
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
5411
|
+
value: input.minItems
|
|
5412
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000 || _report(_exceptionable, {
|
|
5413
|
+
path: _path + ".maxItems",
|
|
5414
|
+
expected: "number & Type<\"uint64\">",
|
|
5415
|
+
value: input.maxItems
|
|
5416
|
+
})) || _report(_exceptionable, {
|
|
5417
|
+
path: _path + ".maxItems",
|
|
5418
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
5419
|
+
value: input.maxItems
|
|
5420
|
+
}), "array" === input.type || _report(_exceptionable, {
|
|
5421
|
+
path: _path + ".type",
|
|
5422
|
+
expected: "\"array\"",
|
|
5423
|
+
value: input.type
|
|
5424
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5425
|
+
path: _path + ".description",
|
|
5426
|
+
expected: "string",
|
|
5427
|
+
value: input.description
|
|
5428
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000 || _report(_exceptionable, {
|
|
5429
|
+
path: _path + ".minimum",
|
|
5430
|
+
expected: "number & Type<\"int64\">",
|
|
5431
|
+
value: input.minimum
|
|
5432
|
+
})) || _report(_exceptionable, {
|
|
5433
|
+
path: _path + ".minimum",
|
|
5434
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
5435
|
+
value: input.minimum
|
|
5436
|
+
}), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || _report(_exceptionable, {
|
|
5437
|
+
path: _path + ".maximum",
|
|
5438
|
+
expected: "number & Type<\"int64\">",
|
|
5439
|
+
value: input.maximum
|
|
5440
|
+
})) || _report(_exceptionable, {
|
|
5441
|
+
path: _path + ".maximum",
|
|
5442
|
+
expected: "((number & Type<\"int64\">) | undefined)",
|
|
5443
|
+
value: input.maximum
|
|
5444
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
|
5445
|
+
path: _path + ".exclusiveMinimum",
|
|
5446
|
+
expected: "(number | undefined)",
|
|
5447
|
+
value: input.exclusiveMinimum
|
|
5448
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
|
5449
|
+
path: _path + ".exclusiveMaximum",
|
|
5450
|
+
expected: "(number | undefined)",
|
|
5451
|
+
value: input.exclusiveMaximum
|
|
5452
|
+
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || _report(_exceptionable, {
|
|
5453
|
+
path: _path + ".multipleOf",
|
|
5454
|
+
expected: "number & Type<\"uint64\">",
|
|
5455
|
+
value: input.multipleOf
|
|
5456
|
+
})) && (0 < input.multipleOf || _report(_exceptionable, {
|
|
5457
|
+
path: _path + ".multipleOf",
|
|
5458
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
5459
|
+
value: input.multipleOf
|
|
5460
|
+
})) || _report(_exceptionable, {
|
|
5461
|
+
path: _path + ".multipleOf",
|
|
5462
|
+
expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
|
|
5463
|
+
value: input.multipleOf
|
|
5464
|
+
}), "integer" === input.type || _report(_exceptionable, {
|
|
5465
|
+
path: _path + ".type",
|
|
5466
|
+
expected: "\"integer\"",
|
|
5467
|
+
value: input.type
|
|
5468
|
+
})].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
|
|
5469
|
+
path: _path + ".minimum",
|
|
5470
|
+
expected: "(number | undefined)",
|
|
5471
|
+
value: input.minimum
|
|
5472
|
+
}), undefined === input.maximum || "number" === typeof input.maximum || _report(_exceptionable, {
|
|
5473
|
+
path: _path + ".maximum",
|
|
5474
|
+
expected: "(number | undefined)",
|
|
5475
|
+
value: input.maximum
|
|
5476
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
|
5477
|
+
path: _path + ".exclusiveMinimum",
|
|
5478
|
+
expected: "(number | undefined)",
|
|
5479
|
+
value: input.exclusiveMinimum
|
|
5480
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
|
5481
|
+
path: _path + ".exclusiveMaximum",
|
|
5482
|
+
expected: "(number | undefined)",
|
|
5483
|
+
value: input.exclusiveMaximum
|
|
5484
|
+
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
|
|
5485
|
+
path: _path + ".multipleOf",
|
|
5486
|
+
expected: "number & ExclusiveMinimum<0>",
|
|
5487
|
+
value: input.multipleOf
|
|
5488
|
+
})) || _report(_exceptionable, {
|
|
5489
|
+
path: _path + ".multipleOf",
|
|
5490
|
+
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
|
5491
|
+
value: input.multipleOf
|
|
5492
|
+
}), "number" === input.type || _report(_exceptionable, {
|
|
5493
|
+
path: _path + ".type",
|
|
5494
|
+
expected: "\"number\"",
|
|
5495
|
+
value: input.type
|
|
5496
|
+
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv8.has(input.format) || _report(_exceptionable, {
|
|
5497
|
+
path: _path + ".format",
|
|
5498
|
+
expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
|
|
5499
|
+
value: input.format
|
|
5500
|
+
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
5501
|
+
path: _path + ".pattern",
|
|
5502
|
+
expected: "(string | undefined)",
|
|
5503
|
+
value: input.pattern
|
|
5504
|
+
}), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
|
|
5505
|
+
path: _path + ".contentMediaType",
|
|
5506
|
+
expected: "(string | undefined)",
|
|
5507
|
+
value: input.contentMediaType
|
|
5508
|
+
}), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || _report(_exceptionable, {
|
|
5509
|
+
path: _path + ".minLength",
|
|
5510
|
+
expected: "number & Type<\"uint64\">",
|
|
5511
|
+
value: input.minLength
|
|
5512
|
+
})) || _report(_exceptionable, {
|
|
5513
|
+
path: _path + ".minLength",
|
|
5514
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
5515
|
+
value: input.minLength
|
|
5516
|
+
}), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
|
|
5517
|
+
path: _path + ".maxLength",
|
|
5518
|
+
expected: "number & Type<\"uint64\">",
|
|
5519
|
+
value: input.maxLength
|
|
5520
|
+
})) || _report(_exceptionable, {
|
|
5521
|
+
path: _path + ".maxLength",
|
|
5522
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
5523
|
+
value: input.maxLength
|
|
5524
|
+
}), "string" === input.type || _report(_exceptionable, {
|
|
5525
|
+
path: _path + ".type",
|
|
5526
|
+
expected: "\"string\"",
|
|
5527
|
+
value: input.type
|
|
5528
|
+
})].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || _report(_exceptionable, {
|
|
5529
|
+
path: _path + "[\"const\"]",
|
|
5530
|
+
expected: "(boolean | number | string)",
|
|
5531
|
+
value: input["const"]
|
|
5532
|
+
})].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["boolean" === input.type || _report(_exceptionable, {
|
|
5533
|
+
path: _path + ".type",
|
|
5534
|
+
expected: "\"boolean\"",
|
|
5535
|
+
value: input.type
|
|
5536
|
+
})].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items || _report(_exceptionable, {
|
|
5537
|
+
path: _path + ".items",
|
|
5538
|
+
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)",
|
|
5539
|
+
value: input.items
|
|
5540
|
+
})) && _vu2(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
5541
|
+
path: _path + ".items",
|
|
5542
|
+
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)",
|
|
5543
|
+
value: input.items
|
|
5544
|
+
}), undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || _report(_exceptionable, {
|
|
5545
|
+
path: _path + ".uniqueItems",
|
|
5546
|
+
expected: "(boolean | undefined)",
|
|
5547
|
+
value: input.uniqueItems
|
|
5548
|
+
}), undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000 || _report(_exceptionable, {
|
|
5549
|
+
path: _path + ".minItems",
|
|
5550
|
+
expected: "number & Type<\"uint64\">",
|
|
5551
|
+
value: input.minItems
|
|
5552
|
+
})) || _report(_exceptionable, {
|
|
5553
|
+
path: _path + ".minItems",
|
|
5554
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
5555
|
+
value: input.minItems
|
|
5556
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000 || _report(_exceptionable, {
|
|
5557
|
+
path: _path + ".maxItems",
|
|
5558
|
+
expected: "number & Type<\"uint64\">",
|
|
5559
|
+
value: input.maxItems
|
|
5560
|
+
})) || _report(_exceptionable, {
|
|
5561
|
+
path: _path + ".maxItems",
|
|
5562
|
+
expected: "((number & Type<\"uint64\">) | undefined)",
|
|
5563
|
+
value: input.maxItems
|
|
5564
|
+
}), "array" === input.type || _report(_exceptionable, {
|
|
5565
|
+
path: _path + ".type",
|
|
5566
|
+
expected: "\"array\"",
|
|
5567
|
+
value: input.type
|
|
5568
|
+
})].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => [null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
5569
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
5570
|
+
expected: "(null | string | undefined)",
|
|
5571
|
+
value: input["x-autobe-prisma-schema"]
|
|
5572
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
5573
|
+
path: _path + ".properties",
|
|
5574
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
5575
|
+
value: input.properties
|
|
5576
|
+
})) && _vo2(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
5577
|
+
path: _path + ".properties",
|
|
5578
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
5579
|
+
value: input.properties
|
|
5580
|
+
}), (null !== input.additionalProperties || _report(_exceptionable, {
|
|
5581
|
+
path: _path + ".additionalProperties",
|
|
5582
|
+
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)",
|
|
5583
|
+
value: input.additionalProperties
|
|
5584
|
+
})) && (undefined === input.additionalProperties || false === input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties || _report(_exceptionable, {
|
|
5585
|
+
path: _path + ".additionalProperties",
|
|
5586
|
+
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)",
|
|
5587
|
+
value: input.additionalProperties
|
|
5588
|
+
})) && _vu2(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || _report(_exceptionable, {
|
|
5589
|
+
path: _path + ".additionalProperties",
|
|
5590
|
+
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)",
|
|
5591
|
+
value: input.additionalProperties
|
|
5592
|
+
})), (Array.isArray(input.required) || _report(_exceptionable, {
|
|
5593
|
+
path: _path + ".required",
|
|
5594
|
+
expected: "Array<string>",
|
|
5595
|
+
value: input.required
|
|
5596
|
+
})) && input.required.map((elem, _index9) => "string" === typeof elem || _report(_exceptionable, {
|
|
5597
|
+
path: _path + ".required[" + _index9 + "]",
|
|
5598
|
+
expected: "string",
|
|
5599
|
+
value: elem
|
|
5600
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5601
|
+
path: _path + ".required",
|
|
5602
|
+
expected: "Array<string>",
|
|
5603
|
+
value: input.required
|
|
5604
|
+
}), "object" === input.type || _report(_exceptionable, {
|
|
5605
|
+
path: _path + ".type",
|
|
5606
|
+
expected: "\"object\"",
|
|
5607
|
+
value: input.type
|
|
5608
|
+
})].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || _report(_exceptionable, {
|
|
5609
|
+
path: _path + ".$ref",
|
|
5610
|
+
expected: "string",
|
|
5611
|
+
value: input.$ref
|
|
5612
|
+
})].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
5613
|
+
path: _path + ".oneOf",
|
|
5614
|
+
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
5615
|
+
value: input.oneOf
|
|
5616
|
+
})) && input.oneOf.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5617
|
+
path: _path + ".oneOf[" + _index10 + "]",
|
|
5618
|
+
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)",
|
|
5619
|
+
value: elem
|
|
5620
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5621
|
+
path: _path + ".oneOf[" + _index10 + "]",
|
|
5622
|
+
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)",
|
|
5623
|
+
value: elem
|
|
5624
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5625
|
+
path: _path + ".oneOf",
|
|
5626
|
+
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
5627
|
+
value: input.oneOf
|
|
5628
|
+
}), undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || _report(_exceptionable, {
|
|
5629
|
+
path: _path + ".discriminator",
|
|
5630
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
5631
|
+
value: input.discriminator
|
|
5632
|
+
})) && _vo19(input.discriminator, _path + ".discriminator", true && _exceptionable) || _report(_exceptionable, {
|
|
5633
|
+
path: _path + ".discriminator",
|
|
5634
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
5635
|
+
value: input.discriminator
|
|
5636
|
+
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => ["null" === input.type || _report(_exceptionable, {
|
|
5637
|
+
path: _path + ".type",
|
|
5638
|
+
expected: "\"null\"",
|
|
5639
|
+
value: input.type
|
|
5640
|
+
})].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.propertyName || _report(_exceptionable, {
|
|
5641
|
+
path: _path + ".propertyName",
|
|
5642
|
+
expected: "string",
|
|
5643
|
+
value: input.propertyName
|
|
5644
|
+
}), undefined === input.mapping || ("object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) || _report(_exceptionable, {
|
|
5645
|
+
path: _path + ".mapping",
|
|
5646
|
+
expected: "(Record<string, string> | undefined)",
|
|
5647
|
+
value: input.mapping
|
|
5648
|
+
})) && _vo20(input.mapping, _path + ".mapping", true && _exceptionable) || _report(_exceptionable, {
|
|
5649
|
+
path: _path + ".mapping",
|
|
5650
|
+
expected: "(Record<string, string> | undefined)",
|
|
5651
|
+
value: input.mapping
|
|
5652
|
+
})].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
5653
|
+
const value = input[key];
|
|
5654
|
+
if (undefined === value)
|
|
5655
|
+
return true;
|
|
5656
|
+
return "string" === typeof value || _report(_exceptionable, {
|
|
5657
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5658
|
+
expected: "string",
|
|
5659
|
+
value: value
|
|
5660
|
+
});
|
|
5661
|
+
}).every(flag => flag)].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
5662
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
5663
|
+
expected: "(null | string | undefined)",
|
|
5664
|
+
value: input["x-autobe-prisma-schema"]
|
|
5665
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
5666
|
+
path: _path + ".properties",
|
|
5667
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
5668
|
+
value: input.properties
|
|
5669
|
+
})) && _vo2(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
5670
|
+
path: _path + ".properties",
|
|
5671
|
+
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
5672
|
+
value: input.properties
|
|
5673
|
+
}), (null !== input.additionalProperties || _report(_exceptionable, {
|
|
5674
|
+
path: _path + ".additionalProperties",
|
|
5675
|
+
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)",
|
|
5676
|
+
value: input.additionalProperties
|
|
5677
|
+
})) && (undefined === input.additionalProperties || false === input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties || _report(_exceptionable, {
|
|
5678
|
+
path: _path + ".additionalProperties",
|
|
5679
|
+
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)",
|
|
5680
|
+
value: input.additionalProperties
|
|
5681
|
+
})) && _vu2(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || _report(_exceptionable, {
|
|
5682
|
+
path: _path + ".additionalProperties",
|
|
5683
|
+
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)",
|
|
5684
|
+
value: input.additionalProperties
|
|
5685
|
+
})), (Array.isArray(input.required) || _report(_exceptionable, {
|
|
5686
|
+
path: _path + ".required",
|
|
5687
|
+
expected: "Array<string>",
|
|
5688
|
+
value: input.required
|
|
5689
|
+
})) && input.required.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
|
|
5690
|
+
path: _path + ".required[" + _index11 + "]",
|
|
5691
|
+
expected: "string",
|
|
5692
|
+
value: elem
|
|
5693
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5694
|
+
path: _path + ".required",
|
|
5695
|
+
expected: "Array<string>",
|
|
5696
|
+
value: input.required
|
|
5697
|
+
}), "object" === input.type || _report(_exceptionable, {
|
|
5698
|
+
path: _path + ".type",
|
|
5699
|
+
expected: "\"object\"",
|
|
5700
|
+
value: input.type
|
|
5701
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5702
|
+
path: _path + ".description",
|
|
5703
|
+
expected: "string",
|
|
5704
|
+
value: input.description
|
|
5705
|
+
})].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || _report(_exceptionable, {
|
|
5706
|
+
path: _path + ".$ref",
|
|
5707
|
+
expected: "string",
|
|
5708
|
+
value: input.$ref
|
|
5709
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5710
|
+
path: _path + ".description",
|
|
5711
|
+
expected: "string",
|
|
5712
|
+
value: input.description
|
|
5713
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
5714
|
+
path: _path + ".oneOf",
|
|
5715
|
+
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
5716
|
+
value: input.oneOf
|
|
5717
|
+
})) && input.oneOf.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5718
|
+
path: _path + ".oneOf[" + _index12 + "]",
|
|
5719
|
+
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)",
|
|
5720
|
+
value: elem
|
|
5721
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5722
|
+
path: _path + ".oneOf[" + _index12 + "]",
|
|
5723
|
+
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)",
|
|
5724
|
+
value: elem
|
|
5725
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5726
|
+
path: _path + ".oneOf",
|
|
5727
|
+
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
5728
|
+
value: input.oneOf
|
|
5729
|
+
}), undefined === input.discriminator || ("object" === typeof input.discriminator && null !== input.discriminator || _report(_exceptionable, {
|
|
5730
|
+
path: _path + ".discriminator",
|
|
5731
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
5732
|
+
value: input.discriminator
|
|
5733
|
+
})) && _vo19(input.discriminator, _path + ".discriminator", true && _exceptionable) || _report(_exceptionable, {
|
|
5734
|
+
path: _path + ".discriminator",
|
|
5735
|
+
expected: "(AutoBeOpenApi.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
|
5736
|
+
value: input.discriminator
|
|
5737
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5738
|
+
path: _path + ".description",
|
|
5739
|
+
expected: "string",
|
|
5740
|
+
value: input.description
|
|
5741
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => ["null" === input.type || _report(_exceptionable, {
|
|
5742
|
+
path: _path + ".type",
|
|
5743
|
+
expected: "\"null\"",
|
|
5744
|
+
value: input.type
|
|
5745
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
5746
|
+
path: _path + ".description",
|
|
5747
|
+
expected: "string",
|
|
5748
|
+
value: input.description
|
|
5749
|
+
})].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
5750
|
+
if ("number" === input.type)
|
|
5751
|
+
return _vo10(input, _path, true && _exceptionable);
|
|
5752
|
+
else if ("integer" === input.type)
|
|
5753
|
+
return _vo9(input, _path, true && _exceptionable);
|
|
5754
|
+
else if ("string" === input.type)
|
|
5755
|
+
return _vo11(input, _path, true && _exceptionable);
|
|
5756
|
+
else if (undefined !== input["const"])
|
|
5757
|
+
return _vo12(input, _path, true && _exceptionable);
|
|
5758
|
+
else if ("null" === input.type)
|
|
5759
|
+
return _vo18(input, _path, true && _exceptionable);
|
|
5760
|
+
else if ("boolean" === input.type)
|
|
5761
|
+
return _vo13(input, _path, true && _exceptionable);
|
|
5762
|
+
else if ("array" === input.type)
|
|
5763
|
+
return _vo14(input, _path, true && _exceptionable);
|
|
5764
|
+
else if ("object" === input.type)
|
|
5765
|
+
return _vo15(input, _path, true && _exceptionable);
|
|
5766
|
+
else if (undefined !== input.$ref)
|
|
5767
|
+
return _vo16(input, _path, true && _exceptionable);
|
|
5768
|
+
else
|
|
5769
|
+
return _report(_exceptionable, {
|
|
5770
|
+
path: _path,
|
|
5771
|
+
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)",
|
|
5772
|
+
value: input
|
|
5773
|
+
});
|
|
5774
|
+
})(); const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
5775
|
+
if (undefined !== input["const"])
|
|
5776
|
+
return _vo3(input, _path, true && _exceptionable);
|
|
5777
|
+
else if ("boolean" === input.type)
|
|
5778
|
+
return _vo4(input, _path, true && _exceptionable);
|
|
5779
|
+
else if ("number" === input.type)
|
|
5780
|
+
return _vo6(input, _path, true && _exceptionable);
|
|
5781
|
+
else if ("integer" === input.type)
|
|
5782
|
+
return _vo5(input, _path, true && _exceptionable);
|
|
5783
|
+
else if ("string" === input.type)
|
|
5784
|
+
return _vo7(input, _path, true && _exceptionable);
|
|
5785
|
+
else if ("array" === input.type)
|
|
5786
|
+
return _vo8(input, _path, true && _exceptionable);
|
|
5787
|
+
else if ("object" === input.type)
|
|
5788
|
+
return _vo21(input, _path, true && _exceptionable);
|
|
5789
|
+
else if (undefined !== input.$ref)
|
|
5790
|
+
return _vo22(input, _path, true && _exceptionable);
|
|
5791
|
+
else if (undefined !== input.oneOf)
|
|
5792
|
+
return _vo23(input, _path, true && _exceptionable);
|
|
5793
|
+
else if ("null" === input.type)
|
|
5794
|
+
return _vo24(input, _path, true && _exceptionable);
|
|
5795
|
+
else
|
|
5796
|
+
return _report(_exceptionable, {
|
|
5797
|
+
path: _path,
|
|
5798
|
+
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)",
|
|
5799
|
+
value: input
|
|
5800
|
+
});
|
|
5801
|
+
})(); const _vu2 = (input, _path, _exceptionable = true) => (() => {
|
|
5802
|
+
if ("number" === input.type)
|
|
5803
|
+
return _vo10(input, _path, true && _exceptionable);
|
|
5804
|
+
else if ("integer" === input.type)
|
|
5805
|
+
return _vo9(input, _path, true && _exceptionable);
|
|
5806
|
+
else if ("string" === input.type)
|
|
5807
|
+
return _vo11(input, _path, true && _exceptionable);
|
|
5808
|
+
else if (undefined !== input["const"])
|
|
5809
|
+
return _vo12(input, _path, true && _exceptionable);
|
|
5810
|
+
else if ("null" === input.type)
|
|
5811
|
+
return _vo18(input, _path, true && _exceptionable);
|
|
5812
|
+
else if ("boolean" === input.type)
|
|
5813
|
+
return _vo13(input, _path, true && _exceptionable);
|
|
5814
|
+
else if ("array" === input.type)
|
|
5815
|
+
return _vo14(input, _path, true && _exceptionable);
|
|
5816
|
+
else if ("object" === input.type)
|
|
5817
|
+
return _vo15(input, _path, true && _exceptionable);
|
|
5818
|
+
else if (undefined !== input.$ref)
|
|
5819
|
+
return _vo16(input, _path, true && _exceptionable);
|
|
5820
|
+
else if (undefined !== input.oneOf)
|
|
5821
|
+
return _vo17(input, _path, true && _exceptionable);
|
|
5822
|
+
else
|
|
5823
|
+
return _report(_exceptionable, {
|
|
5824
|
+
path: _path,
|
|
5825
|
+
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)",
|
|
5826
|
+
value: input
|
|
5827
|
+
});
|
|
5828
|
+
})(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
5829
|
+
if (false === __is(input)) {
|
|
5830
|
+
errors = [];
|
|
5831
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
5832
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
5833
|
+
path: _path + "",
|
|
5834
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
5835
|
+
value: input
|
|
5836
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
5837
|
+
path: _path + "",
|
|
5838
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
5839
|
+
value: input
|
|
5840
|
+
}))(input, "$input", true);
|
|
5841
|
+
const success = 0 === errors.length;
|
|
5842
|
+
return success ? {
|
|
5843
|
+
success,
|
|
5844
|
+
data: input
|
|
5845
|
+
} : {
|
|
5846
|
+
success,
|
|
5847
|
+
errors,
|
|
5848
|
+
data: input
|
|
5849
|
+
};
|
|
5850
|
+
}
|
|
5851
|
+
return {
|
|
5852
|
+
success: true,
|
|
5853
|
+
data: input
|
|
5854
|
+
};
|
|
5855
|
+
}; })()
|
|
5856
|
+
}
|
|
5857
|
+
]
|
|
5858
|
+
};
|
|
5859
|
+
__typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
|
|
5860
|
+
validate: {
|
|
5861
|
+
review: validate,
|
|
5862
|
+
},
|
|
5863
|
+
}), { equals: false }));
|
|
5864
|
+
return application;
|
|
5865
|
+
})(),
|
|
4211
5866
|
};
|
|
4212
5867
|
//# sourceMappingURL=orchestrateInterfaceSchemaReview.js.map
|