Payload validation for custom JAX-RS services

Hello
Is there a way to implement a custom validation for JAX-RS API? (something similar to what we have in Spring @Valid & @Validated. I have some cases where the API is throwing 500 status code when instead of a list, I send a string, or I send a wrong enum value.

I couldn’t find anything here: RESTful JAX-RS Component Support - Bloomreach Experience Manager (PaaS/Self-Hosted) - The Fast and Flexible Headless CMS

Thank you
Cornelia