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

Đang mở
#954 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@jiholee17 đang làm issue này rồi.

Từ ngày 14/9/2026.

  • #958 của @harshit6392 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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!

Ngôn ngữ chính
Kotlin
Star
220
Fork
123
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Netflix/dgs-codegen

Tất cả issue của Netflix/dgs-codegen

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.