Fix #15812: Wrong example code for custom validation functions