@omnifyjp/omnify 2.1.10 → 2.1.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnifyjp/omnify",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.11",
|
|
4
4
|
"description": "Schema-driven code generation for Laravel, TypeScript, and SQL",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"zod": "^3.24.0"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@omnifyjp/omnify-darwin-arm64": "2.1.
|
|
40
|
-
"@omnifyjp/omnify-darwin-x64": "2.1.
|
|
41
|
-
"@omnifyjp/omnify-linux-x64": "2.1.
|
|
42
|
-
"@omnifyjp/omnify-linux-arm64": "2.1.
|
|
43
|
-
"@omnifyjp/omnify-win32-x64": "2.1.
|
|
39
|
+
"@omnifyjp/omnify-darwin-arm64": "2.1.11",
|
|
40
|
+
"@omnifyjp/omnify-darwin-x64": "2.1.11",
|
|
41
|
+
"@omnifyjp/omnify-linux-x64": "2.1.11",
|
|
42
|
+
"@omnifyjp/omnify-linux-arm64": "2.1.11",
|
|
43
|
+
"@omnifyjp/omnify-win32-x64": "2.1.11"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -224,12 +224,15 @@ function mergeValidationRules(rules, vr, type) {
|
|
|
224
224
|
const [a, b] = vr['digitsBetween'];
|
|
225
225
|
rules.push(`digits_between:${a},${b}`);
|
|
226
226
|
}
|
|
227
|
-
// Remove max
|
|
228
|
-
// max as numeric comparison instead of string length when numeric/digits present
|
|
227
|
+
// Remove max/min when numeric rules are present — Laravel interprets
|
|
228
|
+
// max/min as numeric comparison instead of string length when numeric/digits present
|
|
229
229
|
if (vr['numeric'] === true || vr['digits'] != null || vr['digitsBetween'] != null) {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
for (let i = rules.length - 1; i >= 0; i--) {
|
|
231
|
+
const r = rules[i];
|
|
232
|
+
if (typeof r === 'string' && (r.startsWith('max:') || r.startsWith('min:'))) {
|
|
233
|
+
rules.splice(i, 1);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
233
236
|
}
|
|
234
237
|
if (vr['startsWith'] != null) {
|
|
235
238
|
const v = vr['startsWith'];
|