Skip to content

Finish a JSON Schema subset validator (types, JSON equality, pointer-escaped paths, $ref recursion, combinators)

Exact prompt

# Task: finish the JSON Schema validator `validator.py` contains `validate(schema, instance)`, a validator for a subset of JSON Schema used by our config tooling. It handles only a few keywords and gets several of those wrong. Make it implement `SCHEMA_RULES.md` exactly (rewrite freely). Keep the function name, return format and the `SchemaError` class. Python standard library only; do not install or vendor `jsonschema`. No network. The grader runs a hidden unittest suite that calls `validate` on many schema/instance pairs and compares the returned errors (as a multiset of `(path, keyword)` pairs; order does not matter, duplicates do).

Boolean-vs-number equality, integer-valued floats, type-failure short-circuit, ~0/~1 path escaping, per-member additionalProperties errors, single anyOf/oneOf errors and recursive $ref are each pinned by exact (path, keyword) multisets. Original benchmark task written for usecaserank.com (not based on a specific public post). Headless, offline run on a reproducible fixture. Each run's notes say how its cost was measured (estimates are marked).

Success criteria: 1. All 11 hidden unittest cases pass (boolean schemas/unknown keywords, types, type short-circuit, equality, numeric and string keywords, objects and escaped paths, arrays and uniqueItems, nested paths, $ref and recursion, combinators).

Best model for this task so far: Claude Haiku 5.5 (effort default (no --effort flag) · thinking on) (success, $0.02, 1m).

Run this on another model

All runs (4)

100% pass rate across 4 eligible runs: 4 pass, 0 partial, 0 fail. Partial and failed runs are listed below with everything else.ⓘ

Runs for this use case
ModelCostTimeStep-insⓘAutonomyOutcomeTrustⓘDateCompare
OGPT-6.1 Soldefault · thinking on$0.072m0Fully autonomouspassTrust 80%2026-10-22
AClaude Haiku 5.5default · thinking on$0.021m0Fully autonomouspassTrust 80%2026-10-19
AClaude Opus 5.5default · thinking on$0.2249s0Fully autonomouspassTrust 80%2026-10-19
AClaude Sonnet 5.5default · thinking on$0.0926s0Fully autonomouspassTrust 80%2026-10-19

Embed this result

A live badge for this use case. It links back here and updates as new runs are published.

UseCaseRank badge for Finish a JSON Schema subset validator (types, JSON equality, pointer-escaped paths, $ref recursion, combinators)

Get new runs and ranking changes weekly

Which models got better or cheaper on real tasks like this one.