-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
Description
Following Spring Framework's decision to use JSpecify for nullability annotations, I think it would be very interesting to add this support to Openapi Generator.
TL;TR JSpecify
In Java code, whether an expression may evaluate to null is often documented only in natural language, if at all. JSpecify's nullness annotations let programmers express the nullness of Java code in a consistent and well-defined way.JSpecify defines annotations that describe whether a Java type contains the value null. Such annotations are useful to (for example):
- programmers reading the code,
- tools that help developers avoid NullPointerExceptions,
- tools that perform run-time checking and test generation, and
- documentation systems.
It would be possible to add an option in which it would be configurable the option to follow (jakarta or JSpecify).
What do you think?
fprochazka, agustinventura, ciscoo, juliojgd, ferblaca and 10 more