Skip to content

Fix #453: Document custom form validation#478

Merged
samdark merged 1 commit into
masterfrom
docs-issue-453-custom-validation
Jun 2, 2026
Merged

Fix #453: Document custom form validation#478
samdark merged 1 commit into
masterfrom
docs-issue-453-custom-validation

Conversation

@samdark
Copy link
Copy Markdown
Member

@samdark samdark commented Jun 2, 2026

Summary

  • add a custom validation section to the forms guide
  • show built-in UUID validation and a Callback-based card number checksum example
  • link to the validator custom rule guide for reusable rules

Testing

  • npm run build
  • fresh yiisoft/app checkout: composer install, composer require yiisoft/form-model, php check-form-validation.php

Fixes #453

Copilot AI review requested due to automatic review settings June 2, 2026 21:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation to the Yii3 “Working with forms” guide explaining how to implement custom validation beyond built-in attribute rules, specifically demonstrating UUID validation and a Callback-based custom check for UUID v7.

Changes:

  • Added a “Custom validation” section to the forms guide.
  • Included examples for validating UUID format with the built-in Uuid rule and adding application-specific validation via Callback.
  • Linked to the Yii Validator custom rule guide for reusable validation logic.

Comment thread src/guide/start/forms.md Outdated
@samdark samdark force-pushed the docs-issue-453-custom-validation branch from e128e05 to 06bd10f Compare June 2, 2026 21:33
@samdark samdark requested a review from Copilot June 2, 2026 21:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread src/guide/start/forms.md Outdated
Comment thread src/guide/start/forms.md
@samdark samdark force-pushed the docs-issue-453-custom-validation branch from 06bd10f to 0ce5e55 Compare June 2, 2026 21:42
@samdark samdark merged commit 2b6579b into master Jun 2, 2026
7 checks passed
@samdark samdark deleted the docs-issue-453-custom-validation branch June 2, 2026 21:46
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.

There is not enough information about custom verification

2 participants