{"library":"tv4","type":"library","category":null,"description":"tv4 is an abandoned JavaScript library designed for validating data against JSON Schema Draft v4 exclusively. Its latest release, version 1.3.0, was published in August 2015, with no subsequent updates or active maintenance. The library differentiates itself by offering synchronous, single-error validation by default, with optional methods for collecting multiple errors (`validateMultiple`) or a structured result object (`validateResult`) to better support multi-threaded environments where global state (`tv4.error`, `tv4.missing`) is problematic. It also supports `$ref` for referencing external schemas and has an optional mechanism for handling cyclical JavaScript objects. Due to its strict adherence to Draft v4 and lack of updates, it does not support newer JSON Schema drafts (like Draft 6, 7, 2019-09, or 2020-12) and is not recommended for new projects requiring modern schema features or active support.","language":"javascript","status":"abandoned","version":"1.3.0","tags":["javascript","json-schema","schema","validator","tv4"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tv4","imports":["const tv4 = require('tv4');","const tv4 = require('tv4');\nconst isValid = tv4.validate(data, schema);","const tv4 = require('tv4');\ntv4.addSchema(url, schema);"]},{"cmd":"yarn add tv4","imports":[]},{"cmd":"pnpm add tv4","imports":[]}],"homepage":null,"github":"https://github.com/geraintluff/tv4","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tv4","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/tv4/compatibility"}}