@famgia/omnify-laravel 0.0.85 → 0.0.87
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/dist/{chunk-PCQM7JIA.js → chunk-YVVAJA3T.js} +9 -7
- package/dist/{chunk-PCQM7JIA.js.map → chunk-YVVAJA3T.js.map} +1 -1
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +8 -6
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
|
@@ -3549,7 +3549,14 @@ function mapTsTypeToOpenApi(tsType, fieldName) {
|
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
3551
|
function getOpenApiType(propDef, fieldName) {
|
|
3552
|
-
|
|
3552
|
+
switch (propDef.type) {
|
|
3553
|
+
case "Date":
|
|
3554
|
+
return { type: "string", format: "date" };
|
|
3555
|
+
case "DateTime":
|
|
3556
|
+
case "Timestamp":
|
|
3557
|
+
return { type: "string", format: "date-time" };
|
|
3558
|
+
}
|
|
3559
|
+
if (fieldName.includes("email") && !fieldName.endsWith("_at")) {
|
|
3553
3560
|
return { type: "string", format: "email" };
|
|
3554
3561
|
}
|
|
3555
3562
|
if (fieldName.includes("password")) {
|
|
@@ -3568,11 +3575,6 @@ function getOpenApiType(propDef, fieldName) {
|
|
|
3568
3575
|
return { type: "number" };
|
|
3569
3576
|
case "Boolean":
|
|
3570
3577
|
return { type: "boolean" };
|
|
3571
|
-
case "Date":
|
|
3572
|
-
return { type: "string", format: "date" };
|
|
3573
|
-
case "DateTime":
|
|
3574
|
-
case "Timestamp":
|
|
3575
|
-
return { type: "string", format: "date-time" };
|
|
3576
3578
|
case "Email":
|
|
3577
3579
|
return { type: "string", format: "email" };
|
|
3578
3580
|
case "UUID":
|
|
@@ -4378,4 +4380,4 @@ export {
|
|
|
4378
4380
|
getFactoryPath,
|
|
4379
4381
|
laravelPlugin
|
|
4380
4382
|
};
|
|
4381
|
-
//# sourceMappingURL=chunk-
|
|
4383
|
+
//# sourceMappingURL=chunk-YVVAJA3T.js.map
|