NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #203 most downloaded on Packagist
A library to validate a json schema.
Latest stable
6.14.0
Last release 29 days ago
24 Oct 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 54 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
83 releases · first in 2012
Drag across the ruler to compare, or tap a release to open it.
test: Remove JSON Schema Test Suite skips for cases that already pass
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix: Coerce quoted 0 and 1 to booleans
fix: Reject percent signs that do not introduce a hex triplet in relative references
Report additional property errors at the property path
fix: Handle null byte when validating date/time formats
Added feat: Add Draft-2019-09
fix: allow "#", "?", and "?#" as valid URI references per RFC 3986
Update to json schema test suite main branch
Bump actions/checkout from v4 to v5 was re-applied due to PR merge issues with GitHub
Deprecate Constraint::CHECK_MODE_NONE
v prefix from release tags and GitHub releases (#895)Constraint::CHECK_MODE_NONE (#896)⚠️ Changes from version 6.8.0 were lost. Please don't use this version. Update to version 6.8.1
Fix idn_to_ascii deprecation warning by using INTL_IDNA_VARIANT_UTS46
Fix TypeError in pattern property validation with integer keys
Enforce RFC 1035 hostname label length limits in draft 3/4
ci: Run workflows against 5.x.x branches by @DannyvdSluijs in https://github.com/jsonrainbow/json-schema/pull/859
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.6.3...6.6.4
Update php-enum dependency version to ^4.4 by @emodric in https://github.com/jsonrainbow/json-schema/pull/854
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.6.2...6.6.3
mark-mabe/php-enum dependency to ^4.4 due to lower versions emitting a warning on PHP 8 (#854)Allow underscore and tilde in URI hostnames as per RFC 3986 by @longwave in https://github.com/jsonrainbow/json-schema/pull/853
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.6.1...6.6.2
Don't skip ref expanding for property called enum when child of property called properties
Add lint check for class autoloading PSR compliance
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.5.2...6.6.0
Fix issue when http headers are already present
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.5.1...6.5.2
ci: Add PHP 8.5 to pipeline, ignoring dependencies and as experimental by @DannyvdSluijs in https://github.com/jsonrainbow/json-schema/pull/842
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.5.0...6.5.1
Fix PHP 8.5 $http_response_header deprecation by @DannyvdSluijs in https://github.com/jsonrainbow/json-schema/pull/841
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.4.2...6.5.0
Added extra breaking change to UPDATE-6.0.md regarding BaseConstraint::addError signature change
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.4.1...6.4.2
@nicolas-grekas made their first contribution in https://github.com/jsonrainbow/json-schema/pull/817
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.4.0...6.4.1
Run PHPStan using the lowest and highest php version
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.3.1...6.4.0
fix: ensure numeric issues in const are correctly evaluated by @DannyvdSluijs in https://github.com/jsonrainbow/json-schema/pull/805
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.3.0...6.3.1
only check minProperties or maxProperties on objects
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.2.1...6.3.0
allow items: true to pass validation
Welcome first time contributors
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/6.1.0...6.2.0
Resolve deprecations of optional parameter
README.md (#763)strict_types=1 to all classes in ./src (#758)Mark check() and coerce() as deprecated
composer.json (#505)sprintf for printf (#634)marc-mabe/php-enum v2.x and v3.x. (#464)marc-mabe/php-enum v4.x (#629).gitattributes (#687)friendsofphp/php-cs-fixer rules (#688)Mark check() and coerce() as deprecated
⚠️ This is a beta release for the upcoming version 6.0.0.
composer.json (#505)sprintf for printf (#634)marc-mabe/php-enum v2.x and v3.x. (#464)marc-mabe/php-enum v4.x (#629).gitattributes (#687)friendsofphp/php-cs-fixer rules (#688)Changes from 5.3.2 were lost in 5.3.3. This release restores the history from 5.3.2 and applies #900 again.
Full Changelog: 5.3.2...5.3.4
Add GitHub Actions CI for 5.x.x and fix curl_close deprecation on PHP 8+ by @DannyvdSluijs in #900
Full Changelog: 5.3.2...5.3.3
⚠️ Changes from version 5.3.2 were lost in version 5.3.3. Please don't use this version. Update to version 5.4.3
Fix issue when http headers are already present (#843) for 5.x.x branch by @DannyvdSluijs in https://github.com/jsonrainbow/json-schema/pull/893
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/5.3.1...5.3.2
Fix PHP 8.5 $http_response_header deprecation on 5.x.x by @gnutix in https://github.com/jsonrainbow/json-schema/pull/857
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/5.3.0...5.3.1
Fixed PHP 8.4 deprecation warnings https://github.com/jsonrainbow/json-schema/pull/731
Full Changelog: https://github.com/jsonrainbow/json-schema/compare/5.2.13...5.3.0
[Backport] Add attribute #[\AllowDynamicProperties] to allow applying defaults without deprecation warning
[Backport] Add attribute #[\AllowDynamicProperties] to allow applying defaults without deprecation warning (#695)
Backport Fix type validation failing for "any" and false-y type wording
https://github.com/justinrainbow/json-schema/pull/669 Backports PHP 8.1 support
#631 Backports for 5.2.10: Fixes in build process and PHP 8
#631 Backports for 5.2.10: Fixes in build process and PHP 8
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fresh tag to rectify 5.2.3 mistag.
Fresh tag to rectify 5.2.3 mistag.
Nothing published for this version
#431 Backports for 5.2.2 (Part 1) #432 Added property name in draft-3 required error #433 Backports for 5.2.2 (Part 2) #450 Backports for 5.2.2 (Part
#431 Backports for 5.2.2 (Part 1) #432 Added property name in draft-3 required error #433 Backports for 5.2.2 (Part 2) #450 Backports for 5.2.2 (Part 3)
#353 Validation of JSON-Schema #405 fix bug when applying defaults #408 SchemaStorage::addSchema() should call BaseConsstraint::arrayToObjectRecursive
#353 Validation of JSON-Schema #405 fix bug when applying defaults #408 SchemaStorage::addSchema() should call BaseConsstraint::arrayToObjectRecursive() on the provide schemas #409 [BUGFIX] Cast empty schema arrays to object #411 [BUGFIX] Split $objectDefinition into $schema and $properties #415 Issue-414: Allow The Option of T or space for Date time. #416 Testcase for minProperties with properties defined + Fix Test #419 [BUGFIX] Split "uri" format into "uri" & "uri-reference", fix meta-schema bug #421 [BUGFIX] Tweak phpdocumentor dependency to avoid install conflicts
#362 (package:// URIs and bundle local copy of the spec schemas) #372 (bugfix for issue #371) #378 (bugfix for #376, add provided schema under a dummy
#362 (package:// URIs and bundle local copy of the spec schemas) #372 (bugfix for issue #371) #378 (bugfix for #376, add provided schema under a dummy URI) #382 (add quiet / verbose options to CLI script) #383 (add CHECK_MODE_DISABLE_FORMAT) #366 (more unit tests) #389 (allow assoc array as schema) #398 (enable FILTER_FLAG_EMAIL_UNICODE if available) #394 (anyOf / oneOf exceptions - bugfix for #393) #365 (default recursion & bugfixes for #359 & #377, refactor defaults, other minor fixes) #357 (schema validation) #400 (remove stale files from #357)
#349 Add option to apply default values from the schema #354 Option to throw exceptions when an error is encountered #355 Make code-style more consist
#349 Add option to apply default values from the schema #354 Option to throw exceptions when an error is encountered #355 Make code-style more consistent
#347 Fix regex for Rfc3339 validation #351 Add new config option, refactor coerce feature to use this, and simplify the public API
#347 Fix regex for Rfc3339 validation #351 Add new config option, refactor coerce feature to use this, and simplify the public API
#335 Fix various details in README.md #336 Better coercion #339 Added SchemaStorageInterface #342 fix #341 validate-json command
#335 Fix various details in README.md #336 Better coercion #339 Added SchemaStorageInterface #342 fix #341 validate-json command
#322 handle coercion of multiple types #325 handle negative integers #326 update readme for 4.0.0 #328 add php lang tag to code block #330 [BUGFIX] Us
#322 handle coercion of multiple types #325 handle negative integers #326 update readme for 4.0.0 #328 add php lang tag to code block #330 [BUGFIX] Use unicode matching for patterns
#304 Return points, spelling and dead code #308 Add support for type coercion #310 performance improvements #314 Updated to check that $ref is a strin
#304 Return points, spelling and dead code #308 Add support for type coercion #310 performance improvements #314 Updated to check that $ref is a string #316 fix(NumberConstraint): force positive value on first arg #317 Add support for $ref on properties #318 chore(phpunit): ignore local phpunit.xml #319 feat(demo): add simple demo script
#306 Master is not 2.0.x anymore but 3.0.x
#306 Master is not 2.0.x anymore but 3.0.x
#234 Fix: allow explicit 0 secfracs in datetime format #276 use JsonPointer for path handling #277 New way of handling references #278 Exception inter
#234 Fix: allow explicit 0 secfracs in datetime format #276 use JsonPointer for path handling #277 New way of handling references #278 Exception interface #282 fix instancing wrong type, breaks inheritance #283 move MinMaxPropertiesTest to proper location #286 Support json_decode assoc #287 Updating to use more correct hostname regex. This fixes #129 #290 Cache the results of RefResolver::resolve() #292 Fix #291 failed tests with lestest PHP #294 Change error reporting for invalid types with multiple valid types
#272 chore(composer): remove version in favor of VCS tags #273 Throw ResourceNotFoundException outside of re-defined error-handler #275 Fix constraint
#272 chore(composer): remove version in favor of VCS tags
#273 Throw ResourceNotFoundException outside of re-defined error-handler
#275 Fix constraint of error
#271 Revert "Do not override error handler"
#271 Revert "Do not override error handler"
#262 Do not override error handler
#262 Do not override error handler
One column per quarter.