Closed Danack closed 4 years ago
We define a patch rule like this:
$rules = [ 'name' => [ new Patch($input, [PatchEntry::REPLACE]), new ExtractPatchPathValue(PatchEntry::REPLACE, '/name'), new Trim(), new MaxLength(128), new MinLength(4), new ValidCharacters('0-9a-zA-Z_\- ') ], ];
However.......'name' is almost meaningless here.
Patching is out of scope for this library for now.
We define a patch rule like this:
However.......'name' is almost meaningless here.