phoenixnap / springmvc-raml-plugin

Spring MVC - RAML Spec Synchroniser Plugin. A Maven plugin designed to Generate Server & Client code in Spring from a RAML API descriptor and conversely, a RAML API document from the SpringMVC Server implementation.
Apache License 2.0
136 stars 84 forks source link

Generated client sends query param even if the value is null #236

Closed stojsavljevic closed 6 years ago

stojsavljevic commented 6 years ago

When using Spring4RestTemplateClientRule rule, generated client will add query parameter to the url even if the value is null. The problem is that a Spring controller will read the value as empty string in that case. We should omit query parameter if the value is null.