-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IllegalArgumentException: Negated params are not supported #1134
Comments
I've noticed that Spring Cloud OpenFeign is already in maintenance mode and I should migrate to Spring Interface Clients. Is there any official guide how to perform migration? Does Spring Cloud OpenFeign support *Exchange annotations (e.g. @HttpExchange) so as a first step in migration I can change mapping descriptions in interfaces? |
Hello, @ragnor, thanks for creating the issue. We can consider it. Can you please provide a sample that illustrates your current scenario? |
@OlgaMaciaszek a simple example to reproduce the issue:
|
I'd like to contribute for this issue. My proposed solution is to add a configuration option to allow negated parameters while maintaining backward compatibility. @OlgaMaciaszek |
Hello @kssumin, thanks for reaching out. Feel free to create a PR. |
…cContract - Added 'allowNegatedParams' configuration option to FeignClientProperties - Modified SpringMvcContract to skip negated parameters when the feature is enabled - Added tests for both enabled and disabled cases - Updated documentation with usage examples
…cContract - Added 'allowNegatedParams' configuration option to FeignClientProperties - Modified SpringMvcContract to skip negated parameters when the feature is enabled - Added tests for both enabled and disabled cases - Updated documentation with usage examples
After updating from 4.0.x to 4.1.4 I've noticed that my services cannot startup due to:
Changes were introduced by c276f1c#diff-d7125c419c7e91db20fe7e903b744c180165b6271b6d68e5b966760eb1a3c067.
Is there any way to disable this check in SpringMvcContract?
I understand that feign doesn't use negated parameters but I use shared interfaces between server and client. Negated parameters are needed on server side to avoid ambiguous mappings.
The text was updated successfully, but these errors were encountered: