@honojs/validator
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -121,3 +121,3 @@ "use strict"; | ||
const data = (0, jsonpath_plus_1.JSONPath)({ path: key, json }); | ||
const value = `${data[0]}`; // Force converting to string | ||
const value = data[0]; // Do not stringify | ||
const message = (name) => `Invalid Value: the JSON body "${key}" is invalid - ${name}`; | ||
@@ -124,0 +124,0 @@ validate(field[key], value, message); |
{ | ||
"name": "@honojs/validator", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Validator Middleware for Hono", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19582