REST API Response Schema Validator
Validates live API responses against JSON Schema definitions using Ajv (Another JSON Schema Validator). Supports OpenAPI 3.x schema extraction and detects undocumented fields or type mismatches.
Prerequisites
Node.js
Installation
Use the upstream install or setup path that matches your environment:
- npm install ajv
Requirements and caveats from upstream:
- The fastest JSON validator for Node.js and browser.
- Supports JSON Schema draft-04/06/07/2019-09/2020-12 (draft-04 support requires ajv-draft-04 package) and JSON Type Definition [RFC8927](https://datatracker.ietf.org/doc/...
- supports browsers and Node.js 18.x - current
Basic usage or getting-started notes:
To install version 8:
Getting started
Extracted from upstream docs: https://raw.githubusercontent.com/ajv-validator/ajv/HEAD/README.md
Documentation
Source
Source: agentskillexchange/skills — distributed by TomeVault.