Skip to content

Conversation

@magnesj
Copy link
Member

@magnesj magnesj commented Feb 9, 2026

Introduce setCustomValidationCallback to PdmFieldHandle, allowing custom validation logic via user-provided lambdas or functions. The validate() method now invokes this callback if set, in addition to built-in checks. Includes comprehensive unit tests for custom and combined validation scenarios. Backward compatible: default behavior unchanged if no callback is set.

Introduce setCustomValidationCallback to PdmFieldHandle, allowing custom validation logic via user-provided lambdas or functions. The validate() method now invokes this callback if set, in addition to built-in checks. Includes comprehensive unit tests for custom and combined validation scenarios. Backward compatible: default behavior unchanged if no callback is set.
@magnesj magnesj requested a review from kriben February 9, 2026 13:49
Count field now requires even values and email must contain '@'.
Validation callbacks are used for both fields, and tooltips are updated to reflect new requirements. Object-level email validation is removed, and performValidation now reports email validation results.
Updates the vcpkg submodule to the latest version. This ensures that the project uses the most recent package definitions and build scripts from the vcpkg repository.
@magnesj magnesj merged commit cb8a069 into dev Feb 9, 2026
16 of 17 checks passed
@magnesj magnesj deleted the add-custom-validation-callback branch February 9, 2026 15:48
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.

2 participants