`\MediaWiki\Extension\EventLogging\EventLogging::schemaValidate()` allows the caller to validate an object against a JSONSchema. It's not clear which draft of JSONSchema it supports but [[ https://gerrit.wikimedia.org/g/mediawiki/extensions/EventLogging/+/a26e810dc6ca3520672ab9b8a8f5e93c6deb1803/includes/Libs/JsonSchemaValidation/JsonTreeRef.php#263 | one code comment suggests ]] that it's pre draft-03.
MediaWiki Core depends on/uses the justinrainbow/json-schema library for validating objects against JSONSchema in production.
[[ https://codesearch.wmcloud.org/search/?q=EventLogging%3A%3AschemaValidate | All known uses of ::schemaValidate() ]] should be migrated to use the justinrainbow/json-schema library, which supports draft-03 and draft-04, and then the method should be hard deprecated.
=== TODO
[] Update EventLogging's usage of `::schemaValidate()`
[] Update CollaborationKit's usage of `::schemaValidate()`
[] Update FileAnnotations' usage of `::schemaValidate()`
[] Update UploadWizard's usage `::schemaValidate()`
[] Hard deprecate `::schemaValidate()`
[] Remove `::schemaValidate()` and the code in `includes/Libs/JsonSchemaValidation` after the next MediaWiki release