#2645·ajv

JSON Schema improvement

Author: johnconstant99-devCreated Jul 7, 2026Updated Jul 14, 2026
Labelsenhancement

Summary

I would like to contribute a JSON Schema improvement to Ajv targeting Ajv v8 and JSON Schema draft 2020-12.

Version and scope

  1. Ajv version: v8.x
  2. Target draft: 2020-12
  3. Compatibility scope:
    • 2020-12 only
    • Also support 2019-09 where feasible
    • Also support draft-07 where feasible

Problem to solve

Proposed solution

Example schema/data

Schema

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object"
}

Data examples

json
{}
json
{"example": "replace-with-real-case"}

Expected behavior

  • Case A: should pass/fail because ...
  • Case B: should pass/fail because ...

Implementation plan

  • Add/adjust validation logic for the proposed behavior
  • Add tests for:
    • expected success cases
    • expected failure cases
    • edge cases
    • behavior when option is off / not provided (if introducing an option)
  • Add/update documentation
  • Run full test suite locally

Why this should be included

  • Benefits many users by ...
  • Performance impact: expected to be ...
  • Bundle size impact: expected to be ...

I can implement this

  • I would like to implement this contribution in a pull request.