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

[REQ] Add Support for JSpecify Annotations #19955

Open
jorgerod opened this issue Oct 23, 2024 · 0 comments
Open

[REQ] Add Support for JSpecify Annotations #19955

jorgerod opened this issue Oct 23, 2024 · 0 comments

Comments

@jorgerod
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant