@forklaunch/validator 0.5.1 → 0.5.3
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/src/typebox/index.js +0 -10
- package/lib/src/typebox/index.mjs +0 -10
- package/package.json +2 -2
package/lib/src/typebox/index.js
CHANGED
|
@@ -374,16 +374,6 @@ var TypeboxSchemaValidator = class {
|
|
|
374
374
|
errors = Array.from(import_value.Value.Errors(schemified, value));
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
errors.forEach((error) => {
|
|
378
|
-
if (error.type === import_errors.ValueErrorType.Union && error.schema.errorType === "any of") {
|
|
379
|
-
error.errors.forEach((e, idx) => {
|
|
380
|
-
console.log({
|
|
381
|
-
p: [`Union Schema Variant ${idx}`, error.path],
|
|
382
|
-
message: Array.from(e)
|
|
383
|
-
});
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
377
|
return errors != null && errors.length === 0 ? {
|
|
388
378
|
ok: true,
|
|
389
379
|
value: conversion
|
|
@@ -327,16 +327,6 @@ var TypeboxSchemaValidator = class {
|
|
|
327
327
|
errors = Array.from(Value.Errors(schemified, value));
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
errors.forEach((error) => {
|
|
331
|
-
if (error.type === ValueErrorType.Union && error.schema.errorType === "any of") {
|
|
332
|
-
error.errors.forEach((e, idx) => {
|
|
333
|
-
console.log({
|
|
334
|
-
p: [`Union Schema Variant ${idx}`, error.path],
|
|
335
|
-
message: Array.from(e)
|
|
336
|
-
});
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
330
|
return errors != null && errors.length === 0 ? {
|
|
341
331
|
ok: true,
|
|
342
332
|
value: conversion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/validator",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Schema validator for ForkLaunch components.",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@anatine/zod-openapi": "^2.2.8",
|
|
62
62
|
"@sinclair/typebox": "^0.34.33",
|
|
63
63
|
"zod": "^3.24.3",
|
|
64
|
-
"@forklaunch/common": "0.2.
|
|
64
|
+
"@forklaunch/common": "0.2.10"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@eslint/js": "^9.24.0",
|