---
title: "justinrainbow/json-schema 6.0.0 Breaking Changes"
description: "What each justinrainbow/json-schema release removed, renamed or changed: 14 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/justinrainbow/json-schema
last_updated: 2026-12-04
---

# justinrainbow/json-schema breaking changes

justinrainbow/json-schema 6.0.0 (July 30, 2024) is its newest release with breaking changes, 14 of them. The first: Strict enum and const object checking in justinrainbow/json-schema 6.0.0. Every breaking API change we have recorded in justinrainbow/json-schema on Packagist: 14 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.16.0`, released November 27, 2026. MIT license. [Source repository](https://github.com/jsonrainbow/json-schema)

Packages on Packagist run on PHP. [PHP end of life dates](https://since.dev/calendar/php.md).

## justinrainbow/json-schema 6.0.0 breaking changes

justinrainbow/json-schema 6.0.0, released July 30, 2024: 14 breaking changes.

- **Behavior changed**  

Enum and const checks on objects are now stricter, which can reject values that previously passed. [github.com](https://github.com/jsonrainbow/json-schema/releases/tag/6.0.0)
- **Behavior changed**  

The earlier change to email handling was reverted, so email format checks may behave differently than in 5.3.4. [github.com](https://github.com/jsonrainbow/json-schema/releases/tag/6.0.0)
- **Behavior changed**  

Error handling was centralized, which may change how errors are collected or reported. [github.com](https://github.com/jsonrainbow/json-schema/releases/tag/6.0.0)
- **Behavior changed**  

URIs that already have a scheme no longer get a file:// prefix added. [github.com](https://github.com/jsonrainbow/json-schema/releases/tag/6.0.0)
- **Behavior changed**  

Sibling keywords next to $ref are now ignored, which can change validation results for such schemas. [github.com](https://github.com/jsonrainbow/json-schema/releases/tag/6.0.0)
- **Behavior changed**  

Type coercion was improved, so values may be coerced differently than before. [github.com](https://github.com/jsonrainbow/json-schema/releases/tag/6.0.0)
- **Signature changed** `JsonSchema\Constraints\BaseConstraint::addError`  

Was public function addError(?JsonPointer $path, $message, $constraint = '', ?array $more = null); now public function addError(ConstraintError $constraint, JsonPointer $path = null, array $more = array()). [packagist.org](https://packagist.org/packages/justinrainbow/json-schema#6.0.0)
- **Signature changed** `JsonSchema\Constraints\Constraint::incrementPath`  

Was protected function incrementPath(?JsonPointer $path, $i); now protected function incrementPath(JsonPointer $path = null, $i). [packagist.org](https://packagist.org/packages/justinrainbow/json-schema#6.0.0)
- **Signature changed** `JsonSchema\Constraints\ConstraintInterface::addError`  

Was public function addError(?JsonPointer $path, $message, $constraint='', ?array $more = null); now public function addError(ConstraintError $constraint, JsonPointer $path = null, array $more = array()). [packagist.org](https://packagist.org/packages/justinrainbow/json-schema#6.0.0)
- **Signature changed** `JsonSchema\Constraints\ObjectConstraint::validatePatternProperties`  

Was public function validatePatternProperties($element, ?JsonPointer $path, $patternProperties); now public function validatePatternProperties($element, JsonPointer $path = null, $patternProperties). [packagist.org](https://packagist.org/packages/justinrainbow/json-schema#6.0.0)
- **Signature changed** `JsonSchema\Constraints\TypeConstraint::validateType`  

Was protected function validateType(&$value, $type); now protected function validateType(&$value, $type, $coerce = false). [packagist.org](https://packagist.org/packages/justinrainbow/json-schema#6.0.0)
- **Signature changed** `JsonSchema\Constraints\TypeConstraint::validateTypesArray`  

Was protected function validateTypesArray(&$value, array $type, &$validTypesWording, &$isValid, $path); now protected function validateTypesArray(&$value, array $type, &$validTypesWording, &$isValid, $path, $coerce = false). [packagist.org](https://packagist.org/packages/justinrainbow/json-schema#6.0.0)
- **Signature changed** `JsonSchema\SchemaStorage::resolveRef`  

Was public function resolveRef($ref); now public function resolveRef($ref, $resolveStack = array()). [packagist.org](https://packagist.org/packages/justinrainbow/json-schema#6.0.0)
- **Signature changed** `JsonSchema\SchemaStorage::resolveRefSchema`  

Was public function resolveRefSchema($refSchema); now public function resolveRefSchema($refSchema, $resolveStack = array()). [packagist.org](https://packagist.org/packages/justinrainbow/json-schema#6.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
