Skip to content

暴露枚举值和inField没有提示语 #46

Description

@ZhangChengLin

'enum' => '{attr} must in ({value0})',
'notIn' => '{attr} cannot in ({value0})',

这个提示语等于暴露了允许的值。


inField 验证器没有提示语

public function inFieldValidator($val, string $anotherField): bool
{
if ($anotherField && $dict = $this->getByPath($anotherField)) {
return Validators::in($val, $dict);
}
return false;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions