ユーザーが提供した画像内の人物・キャラクターを、黒いカプセル型の目を2つ持つ、ミニマルで丸みのある2D全身キャラクター1体として再解釈する。
特定の既存キャラクターや固有のデザイン名称は参照せず、以下の視覚仕様を基準とする。
| <?php | |
| $input = [ | |
| 'email' => 'taro@example.com', // valid | |
| 'age' => '17', // invalid: less than 18 | |
| 'title' => 'Hello', // sanitized | |
| 'message' => '', // invalid: empty string | |
| ]; | |
| $app_spec = [ |
| <?php | |
| declare(strict_types=1); | |
| require __DIR__ . '/filter_helpers.php'; | |
| $age = filter_validate_var('20', 'int', [ | |
| 'options' => [ | |
| 'min_range' => 18, | |
| 'max_range' => 120, |
| <?php | |
| $input = [ | |
| 'email' => 'taro@example.com', | |
| 'age' => '17', | |
| 'title' => '<b>Hello</b>', | |
| 'message' => '', | |
| ]; | |
| $app_spec = [ |
| <?php | |
| $input = [ | |
| 'email' => 'taro@example.com', | |
| 'age' => '17', | |
| 'message' => '', | |
| ]; | |
| $descriptors = array_replace( | |
| filter_validation_descriptors([ |