Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid minor code smell in generated DTO classes #25132

Closed
1 task done
jperezdelafuente opened this issue Feb 8, 2024 · 0 comments · Fixed by #26081
Closed
1 task done

Avoid minor code smell in generated DTO classes #25132

jperezdelafuente opened this issue Feb 8, 2024 · 0 comments · Fixed by #26081

Comments

@jperezdelafuente
Copy link
Contributor

jperezdelafuente commented Feb 8, 2024

Overview of the issue

The generated DTO classes contain this annotation:

@NotNull
@Schema(description = "foo", required = true)
private Instant foo;

The requiered param is deprecated: "SonarLint: Remove this use of "required"; it is deprecated."

Suggest a Fix

Fix with param: requiredMode = Schema.RequiredMode.REQUIRED: like this

@NotNull
@Schema(description = "foo", requiredMode = Schema.RequiredMode.REQUIRED)
private Instant foo;
JHipster Version(s)

8.1.0

  • Checking this box is mandatory (this is just to show you read everything)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant