feign
feign copied to clipboard
Is there a way to validate response from feign client?
I tried using @Validated on class level and @Valid on method and it doesn't work for me. I'm not using Spring boot in my project.
This is outside of the scope of Feign. I suspect that you would be able to implement a custom Encoder
and Decoder
that could support Bean Validation. Automatic Method validation is typically done via AOP.
However, if there is enough interest, we may consider supporting Bean Validation in the future.