feign icon indicating copy to clipboard operation
feign copied to clipboard

Is there a way to validate response from feign client?

Open marezii opened this issue 3 years ago • 1 comments

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.

image

marezii avatar Feb 26 '21 13:02 marezii

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.

kdavisk6 avatar Mar 12 '21 16:03 kdavisk6