You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request body without required = true should not have the @NotNull annotation #293
Given a [request body(https://spec.openapis.org/oas/v3.0.3#request-body-object) with "required": false:
when generating JAX-RS code with OpenApi2JaxRs, method parameters representing the request body have the @NotNull annotation, as if they were required:
Activity
danilopiazza commentedon Jul 19, 2024
I don't know whether the code generator should add a
@Nullableannotation whenrequiredisfalse(or missing), or no annotation at all.