yuppi 1.3.6 → 1.3.7
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/main.js +1 -1
- package/dist/main.mjs +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -68,7 +68,7 @@ var convertToJSONSchema = (schema) => {
|
|
|
68
68
|
schema2 = base(schema2, key, config);
|
|
69
69
|
return schema2;
|
|
70
70
|
} else if (config.type === "date") {
|
|
71
|
-
schema2 = import_typebox.Type.String({ format: "date-time",
|
|
71
|
+
schema2 = import_typebox.Type.String({ format: "date-time", formatMinimum: config.min !== void 0 ? new Date(config.min).toISOString() : void 0, formatMaximum: config.max !== void 0 ? new Date(config.max).toISOString() : void 0, default: config.default });
|
|
72
72
|
schema2 = base(schema2, key, config);
|
|
73
73
|
return schema2;
|
|
74
74
|
} else if (config.type === "object") {
|
package/dist/main.mjs
CHANGED
|
@@ -37,7 +37,7 @@ var convertToJSONSchema = (schema) => {
|
|
|
37
37
|
schema2 = base(schema2, key, config);
|
|
38
38
|
return schema2;
|
|
39
39
|
} else if (config.type === "date") {
|
|
40
|
-
schema2 = Type.String({ format: "date-time",
|
|
40
|
+
schema2 = Type.String({ format: "date-time", formatMinimum: config.min !== void 0 ? new Date(config.min).toISOString() : void 0, formatMaximum: config.max !== void 0 ? new Date(config.max).toISOString() : void 0, default: config.default });
|
|
41
41
|
schema2 = base(schema2, key, config);
|
|
42
42
|
return schema2;
|
|
43
43
|
} else if (config.type === "object") {
|