{"library":"z-schema-errors","type":"library","category":null,"description":"z-schema-errors normalizes error messages from Z-Schema JSON Schema validation reports. It transforms nested property paths (e.g., '#/items/[0]' → 'items[0]'), extracts first array params, and allows custom message formatting using macros like {message}, {path}, {description}, and {params[i]}. Supports global context messages and custom extractors for each macro. Version 0.2.1 is the latest; no recent updates. As a thin wrapper around Z-Schema, it only works with that validator. No TypeScript types are provided, and it uses CommonJS.","language":"javascript","status":"active","version":"0.2.1","tags":["javascript","json-schema","errors"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install z-schema-errors","imports":["const ZSchemaErrors = require('z-schema-errors');\nconst reporter = ZSchemaErrors.init();","const ZSchemaErrors = require('z-schema-errors');","const reporter = ZSchemaErrors.init(options);"]},{"cmd":"yarn add z-schema-errors","imports":[]},{"cmd":"pnpm add z-schema-errors","imports":[]}],"homepage":"https://github.com/dschenkelman/z-schema-errors","github":"ssh://git@github.com/dschenkelman/z-schema-errors","docs":null,"changelog":null,"pypi":null,"npm":"z-schema-errors","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}