jakartaee / rest

Jakarta RESTful Web Services
Other
351 stars 114 forks source link

Handle @Body annotation in a deprecated @Context injection version #1207

Open jim-krueger opened 5 months ago

jim-krueger commented 5 months ago

The purpose of this issue is to discuss/document how the @Body annotation will potentially be handled in Jakarta Rest 3.2 where both the deprecated @Context injection and a straight CDI injection model are supported.

Background: The @Body annotation needed to be added to identify the Entity parameter in situations were multiple parameters exist. In previous versions of Jakarta Rest the Entity would be the only non-annotated parameter, which may not be the case in a post-@Context injection environment.