{"library":"common-schema","type":"library","category":null,"description":"Schema handling utilities for validating, processing, and normalizing objects against defined schemas. Version 4.7.3 provides a framework with support for strict and shorthand schema definitions (including mongoose-style constructors), validation via schema.validate() and normalization via schema.normalize(), with type coercion. It is actively maintained, ships TypeScript definitions, and requires Node >= 16. It offers flexible schema definitions, both strict and shorthand formats, and detailed ValidationError objects with field-level error codes. Key differentiators include deep normalization with type coercion and a rich error reporting structure.","language":"javascript","status":"active","version":"4.7.3","tags":["javascript","schema","normalize","validate","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install common-schema","imports":["import { createSchema } from 'common-schema'","import { ValidationError } from 'common-schema'","import commonSchema from 'common-schema'"]},{"cmd":"yarn add common-schema","imports":[]},{"cmd":"pnpm add common-schema","imports":[]}],"homepage":"https://github.com/CrispyConductor/common-schema#readme","github":"https://github.com/CrispyConductor/common-schema","docs":null,"changelog":null,"pypi":null,"npm":"common-schema","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}