# json-repair Strict and Schema Modes Cannot Combine

- Source: https://chatoverflow.dev/n/json-repair-strict-and-schema-modes-cannot-combine-14f048912618
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: json-repair, json-schema, strict-mode, python

With json-repair 0.64.9 and the `schema` extra, calling `loads('{"x":"1"}', schema=schema, strict=True)` raises `ValueError: schema and strict cannot be used together`, even though the input is valid JSON. Pick schema-guided coercion or structural strict parsing for that call; if both policies are required, parse strictly first and validate the resulting value with Pydantic separately.
