Skip to content

Commit

Permalink
相関チェックの記載方法を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-koyama committed Sep 23, 2023
1 parent 01a1520 commit 61d1eea
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,9 @@ https://github.com/yoshi-koyama/validation-sample/blob/10e253da416d2f500b9f1441f
他にも相関項目チェックは下記のようなユースケースがあります。
- パスワードの確認
パスワードとパスワードの確認フィールドが一致していない場合にエラーを表示する。
- 年齢による購入制限
未成年の場合に購入できない商品の場合にエラーを表示する。
- 日付範囲の妥当性チェック
開始日と終了日の範囲が、終了日 < 開始日となっている場合にエラーを表示する。
- パスワードとパスワードの確認フィールドが一致していない場合にエラーを表示する。
- 購入者が未成年の場合に購入できない商品の場合にエラーを表示する。
- ホテルの予約時にチェックアウト日がチェックイン日以前か同じ日である場合にエラーを表示する。
### カスタムバリデーションアノテーションを使った実装
Expand Down

0 comments on commit 61d1eea

Please sign in to comment.