HV000271: Using @Valid on a container (java.util.List) is deprecated. You should apply the annotation on the type argument(s).

オープン
#954 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jiholee17 がすでに取り組んでいます。

2026年9月14日 から。

  • #958 @harshit6392 による — オープン

評価

この issue はまだ評価されていません。

説明

enhancement

When upgrading to spring boot 4.1, I encountered the warning that @Valid is deprecated on containers (https://docs.hibernate.org/validator/9.1/whats-new/en-US/html_single/#_jakarta_ee_11). I currently use annotations in my graphql schema as follows:

input WorkplaceInput
{
    employees: [EmployeeInput!]
    @annotate(name: "jakarta.validation.Valid")
}

input EmployeeInput
{
    name: String!
    @annotate(name: "jakarta.validation.constraints.Pattern", inputs: {regexp: "^[a-zA-Z]{2,64}$"})
}

Is there a way to achieve the same validation on employees without applying @Valid to the list of employees? Thanks!

主要言語
Kotlin
スター
220
フォーク
123
平均マージ
1日 6時間
マージ済み PR(30日)
23

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Netflix/dgs-codegen のほかの issue

Netflix/dgs-codegen の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。