{"library":"json-rest-schema","type":"library","category":null,"description":"A flexible schema validation library for JavaScript objects, designed for REST APIs and beyond. Version 1.0.16 supports Node >=18.0.0. Key features include type casting (e.g., string to number), data transformation (trimming whitespace), and a pluggable architecture for custom rules. Unlike many validators, it offers create/replace/patch semantics, nested object and array validation, recursive runtime validation, and adapters for React Hook Form, Vue+Vuetify, and VeeValidate. The library returns a flat error map with dotted paths for nested fields, making it easy to associate errors with UI components.","language":"javascript","status":"active","version":"1.0.16","tags":["javascript","schema","validation","json","rest-api","data-validation","type-casting","data-transformation","plugin"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install json-rest-schema","imports":["import { createSchema } from 'json-rest-schema'","import type { Schema } from 'json-rest-schema'","import type { ValidationResult } from 'json-rest-schema'"]},{"cmd":"yarn add json-rest-schema","imports":[]},{"cmd":"pnpm add json-rest-schema","imports":[]}],"homepage":"https://mobily-enterprises.github.io/json-rest-schema/","github":"https://github.com/mobily-enterprises/json-rest-schema","docs":null,"changelog":null,"pypi":null,"npm":"json-rest-schema","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}