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
On this page
Latest version 6.16.0, released November 27, 2026. MIT license. Source repository
Packages on Packagist run on PHP. PHP end of life dates.
justinrainbow/json-schema 6.0.0 breaking changes
- Behavior changed
Enum and const checks on objects are now stricter, which can reject values that previously passed. github.com - Behavior changed
The earlier change to email handling was reverted, so email format checks may behave differently than in 5.3.4. github.com - Behavior changed
Error handling was centralized, which may change how errors are collected or reported. github.com - Behavior changed
URIs that already have a scheme no longer get a file:// prefix added. github.com - Behavior changed
Sibling keywords next to $ref are now ignored, which can change validation results for such schemas. github.com - Behavior changed
Type coercion was improved, so values may be coerced differently than before. github.com - 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 - Signature changed
JsonSchema\Constraints\Constraint::incrementPath
Was protected function incrementPath(?JsonPointer $path, $i); now protected function incrementPath(JsonPointer $path = null, $i). packagist.org - 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 - 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 - Signature changed
JsonSchema\Constraints\TypeConstraint::validateType
Was protected function validateType(&$value, $type); now protected function validateType(&$value, $type, $coerce = false). packagist.org - 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 - Signature changed
JsonSchema\SchemaStorage::resolveRef
Was public function resolveRef($ref); now public function resolveRef($ref, $resolveStack = array()). packagist.org - Signature changed
JsonSchema\SchemaStorage::resolveRefSchema
Was public function resolveRefSchema($refSchema); now public function resolveRefSchema($refSchema, $resolveStack = array()). packagist.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.