API Testing
JSON Schema Validation Testing: Catch API Bugs at the Contract Level
JSON Schema validation testing catches structural API bugs — missing required fields, wrong types, unexpected properties — at the contract level. This guide covers ajv (JavaScript), jsonschema (Python), and tv4 (legacy), with patterns for $ref composition, additionalProperties enforcement, and CI integration. Key Takeaways Structural bugs are the most common API bugs. A