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

@NotNull vs @Schema(requiredMode = Schema.RequiredMode.REQUIRED) bei primitiven Datentypen #885

Open
1 task
MrSebastian opened this issue Mar 5, 2025 · 0 comments

Comments

@MrSebastian
Copy link
Member

Wir haben im Code eine Mischung bei primitiven Datentypen die erforderlich sind.
Variante 1: @NotNull boolean isValue
Variante 2: @Schema(requiredMode = Schema.RequiredMode.REQUIRED) boolean isValue

Todo

  • welche Variante sollte konsequent verwendet werden um den Code einheitlich zu gestalten

Fragen

  • hat @NoNull Vorteile bei einer automatischen Validierung
  • gibt es eine Empfehlung wann was zu verwenden ist?
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

No branches or pull requests

1 participant