Skip to content

docs(xpdo): use callable for schema validation type (en, ru) - #597

Merged
Mark-H merged 1 commit into
modxorg:3.xfrom
Ibochkarev:docs/issue-220-validator-callable
Aug 17, 2026
Merged

docs(xpdo): use callable for schema validation type (en, ru)#597
Mark-H merged 1 commit into
modxorg:3.xfrom
Ibochkarev:docs/issue-220-validator-callable

Conversation

@Ibochkarev

Copy link
Copy Markdown
Collaborator

Description

Issue #220 reported that schema docs listed validator type as callback, while xPDO only accepts callable (xPDOValidator switch in Revolution 3.x).

The English validators.md page already had the #277 wording on 3.x, but the issue stayed open (port request in comments). This PR:

  • Makes the callable (not callback) requirement explicit next to the attribute list
  • Points at the 3.x Validation classes under core/vendor/xpdo/...
  • Fixes a corrupted custom-rule PHP sample ($this-?>validator)
  • Adds the missing Russian validators.md
  • Links Validation Rules from the EN/RU Defining a Schema indexes
  • Repairs broken backticks on the Object Validation rules list (callable, preg_match, …)

Checked against core/vendor/xpdo/xpdo/src/xPDO/Validation/xPDOValidator.php on Revolution 3.x.

Affected versions

3.x docs. Same callable type applies on 2.x.

Relevant issues

Fixes #220

Related earlier 2.x fix: #277

@Ibochkarev
Ibochkarev marked this pull request as ready for review August 15, 2026 16:46
@Ibochkarev
Ibochkarev requested a review from Mark-H 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
Ibochkarev force-pushed the docs/issue-220-validator-callable branch from 9d88ee4 to da6422d Compare August 17, 2026 09:21
@Mark-H
Mark-H merged commit 049d16c into modxorg:3.x Aug 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue on extending-modx/xpdo/custom-models/defining-a-schema/validators

2 participants