{"library":"jest-json-schema","type":"library","category":null,"description":"A Jest matcher for validating objects against JSON Schema (draft-04, draft-06, draft-07, 2019-09, 2020-12 via Ajv). Version 6.1.0 supports Node ^12.13.0 || ^14.15.0 || >=15.0.0, with releases every few months. Provides `toMatchSchema` matcher and `matchersWithOptions` for advanced Ajv configuration (custom formats, keywords, Ajv class). Uses Ajv under the hood. Simpler than writing custom matchers, integrates seamlessly into Jest.","language":"javascript","status":"active","version":"6.1.0","tags":["javascript","jest","json","schema","matcher","test"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install jest-json-schema","imports":["import { matchers } from 'jest-json-schema'; expect.extend(matchers);","import { matchersWithOptions } from 'jest-json-schema'; expect.extend(matchersWithOptions({ AjvClass: Ajv2020 }));","import jestJsonSchema from 'jest-json-schema';"]},{"cmd":"yarn add jest-json-schema","imports":[]},{"cmd":"pnpm add jest-json-schema","imports":[]}],"homepage":"https://github.com/americanexpress/jest-json-schema#readme","github":"https://github.com/americanexpress/jest-json-schema","docs":null,"changelog":null,"pypi":null,"npm":"jest-json-schema","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}