docs(xpdo): use callable for schema validation type (en, ru) - #597
Merged
Merged
Conversation
Ibochkarev
marked this pull request as ready for review
August 15, 2026 16:46
The schema type must be callable (not callback), matching xPDOValidator in Revolution 3.x. Refresh the EN validators page, add a Russian translation, link it from the schema indexes, and fix broken backticks on the Object Validation page.
Ibochkarev
force-pushed
the
docs/issue-220-validator-callable
branch
from
August 17, 2026 09:21
9d88ee4 to
da6422d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Issue #220 reported that schema docs listed validator
typeascallback, while xPDO only acceptscallable(xPDOValidatorswitch in Revolution 3.x).The English
validators.mdpage already had the #277 wording on 3.x, but the issue stayed open (port request in comments). This PR:callable(notcallback) requirement explicit next to the attribute listcore/vendor/xpdo/...$this-?>validator)validators.mdcallable,preg_match, …)Checked against
core/vendor/xpdo/xpdo/src/xPDO/Validation/xPDOValidator.phpon Revolution 3.x.Affected versions
3.x docs. Same
callabletype applies on 2.x.Relevant issues
Fixes #220
Related earlier 2.x fix: #277