Skip to content

Fix HV000271 - #1

Draft
keesvandaalen wants to merge 1 commit into
masterfrom
fix_HV000271
Draft

keesvandaalen wants to merge 1 commit into
masterfrom
fix_HV000271

Conversation

@keesvandaalen

@keesvandaalen keesvandaalen commented Aug 21, 2026

Copy link
Copy Markdown
Owner

In a spring boot 4 project this warning is logged: HV000271: Using @Valid on a container (java.util.List) is deprecated. You should apply the annotation on the type argument(s).

The @Valid-annotation will be skipped if the parameter is a container.

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

In a spring boot 4 project this warning is logged:
HV000271: Using `@Valid` on a container (java.util.List) is deprecated. You should apply the annotation on the type argument(s).

The @Valid-annotation will be skipped if the parameter is a container.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant