Custom entity validation with SPI extension

Hi all,

I just want to ask if using Konform or Yavi or Valiktor for data class validation in custom spi extension is possible? Right now, I’m always getting class Uncaught server error: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Failed on call to getDeclareMethods() on class "", problem: (java.lang.NoClassDefFoundError) am/ik/yavi/constraint/CharSequenceConstraint".. So far, I don’t have any idea on how I can properly include it in the extension. I’m using Kotlin and data class as the representation model / DTO (for request body). I’m also not sure if creating custom exception mapper to capture library specific exception is possible since I can’t run the project when I have it. My end goal is return proper response as object with status code and message(s) based from the validation library.

Any suggestions on how to achieve it would be highly appreciated. Thank you in advance!