cakephp/cakephp

Feature: Enum validation - subset

dereuromark opened this issue · 0 comments

Description

We already have enum() validation as a whole - #17403

But it would be nice if we could also more easily specify a subset of it being valid, e.g. for user vs admin views

Inspired by https://twitter.com/taylorotwell/status/1762521570264678650 maybe sth along those lines as only() addition
or 'only' options param or alike

cc @ndm2

CakePHP Version

5.x