{"library":"gavel","type":"library","category":null,"description":"Gavel is a JavaScript library designed for validating actual HTTP messages against expected HTTP messages. It provides a detailed comparison, indicating discrepancies in status codes, headers, and body content. The library supports JSON Schema validation (Draft 4, 6, and 7) for defining complex body expectations. The current stable version is 10.0.4, last released in December 2021. Its release cadence appears infrequent, with recent updates primarily focused on security patches for internal dependencies rather than new feature development. Gavel differentiates itself by offering granular validation results, pinpointing exact failures, including specific error messages and locations within JSON Schema mismatches, making it a valuable tool for API contract testing and robust HTTP interaction validation.","language":"javascript","status":"maintenance","version":"10.0.4","tags":["javascript","http","validation","diff","request","response","gavel","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install gavel","imports":["import gavel from 'gavel';","import gavel from 'gavel'; const result = gavel.validate(expected, actual);","import type { GavelValidationResult } from 'gavel';"]},{"cmd":"yarn add gavel","imports":[]},{"cmd":"pnpm add gavel","imports":[]}],"homepage":null,"github":"https://github.com/apiaryio/gavel.js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gavel","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/gavel/compatibility"}}